This commit is contained in:
@@ -15,14 +15,14 @@ jobs:
|
|||||||
python-version: "3.11"
|
python-version: "3.11"
|
||||||
- name: Get python version
|
- name: Get python version
|
||||||
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
|
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
|
||||||
- uses: actions/cache@v4
|
# - uses: actions/cache@v4
|
||||||
with:
|
# with:
|
||||||
path: ~/.cache/pre-commit
|
# path: ~/.cache/pre-commit
|
||||||
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
|
# key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
|
||||||
- name: Install pre-commit
|
- name: Install pre-commit
|
||||||
run: pip install pre-commit
|
run: pip install pre-commit
|
||||||
- name: Run pre-commit
|
- name: Run pre-commit
|
||||||
run: pre-commit run --all-files --show-diff-on-failure --color=always
|
run: pre-commit run --all-files --show-diff-on-failure --color=always --verbose=true
|
||||||
env:
|
env:
|
||||||
# Consider valid a PR that changes README fragments but doesn't
|
# Consider valid a PR that changes README fragments but doesn't
|
||||||
# change the README.rst file itself. It's not really a problem
|
# change the README.rst file itself. It's not really a problem
|
||||||
|
@@ -1,37 +1,22 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<odoo>
|
<odoo>
|
||||||
<data>
|
<record id="crm_lead_form_inherit_usability_misc" model="ir.ui.view">
|
||||||
<record id="crm_lead_form_inherit_usability_misc" model="ir.ui.view">
|
<field name="name">crm.lead.form.inherit.usability.misc</field>
|
||||||
<field name="name">crm.lead.form.inherit.usability.misc</field>
|
<field name="model">crm.lead</field>
|
||||||
<field name="model">crm.lead</field>
|
<field name="inherit_id" ref="crm.crm_lead_view_form" />
|
||||||
<field name="inherit_id" ref="crm.crm_lead_view_form" />
|
<field name="arch" type="xml">
|
||||||
<field name="arch" type="xml">
|
<!-- remove chapter Marketing in page Extra Information -->
|
||||||
<!-- remove chapter Marketing in page Extra Information -->
|
<xpath expr="//page[@name='lead']//field[@name='campaign_id']/ancestor::group[1]" position="replace" />
|
||||||
<xpath
|
<!-- move source_id and referred fields under Tags field -->
|
||||||
expr="//page[@name='lead']//field[@name='campaign_id']/ancestor::group[1]"
|
<xpath expr="//field[@name='tag_ids']" position="after">
|
||||||
position="replace"
|
<field name="source_id" />
|
||||||
/>
|
<field name="referred" />
|
||||||
<!-- move source_id and referred fields under Tags field -->
|
</xpath>
|
||||||
<xpath expr="//field[@name='tag_ids']" position="after">
|
<!-- move team_id under Phone field -->
|
||||||
<field name="source_id" />
|
<xpath expr="//group[@name='Misc']//field[@name='team_id']" position="replace" />
|
||||||
<field name="referred" />
|
<xpath expr="//group[@name='opportunity_partner']//field[@name='lost_reason_id']" position="before">
|
||||||
</xpath>
|
<field name="team_id" options="{'no_open': True, 'no_create': True}" context="{'kanban_view_ref' : 'sales_team.crm_team_view_kanban'}" />
|
||||||
<!-- move team_id under Phone field -->
|
</xpath>
|
||||||
<xpath
|
</field>
|
||||||
expr="//group[@name='Misc']//field[@name='team_id']"
|
</record>
|
||||||
position="replace"
|
|
||||||
/>
|
|
||||||
<xpath
|
|
||||||
expr="//group[@name='opportunity_partner']//field[@name='lost_reason_id']"
|
|
||||||
position="before"
|
|
||||||
>
|
|
||||||
<field
|
|
||||||
name="team_id"
|
|
||||||
options="{'no_open': True, 'no_create': True}"
|
|
||||||
context="{'kanban_view_ref' : 'sales_team.crm_team_view_kanban'}"
|
|
||||||
/>
|
|
||||||
</xpath>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
</data>
|
|
||||||
</odoo>
|
</odoo>
|
||||||
|
Reference in New Issue
Block a user