Compare commits

1 Commits

Author SHA1 Message Date
jscampucci
f46d339c76 [WIP] test pre-commit
Some checks failed
pre-commit / pre-commit (pull_request) Failing after 1m26s
[WIP] test pre-commit

[WIP] test pre-commit readme

[WIP] test readme generation

[WIP] precommit test

[WIP] test pre commit

[WIP] test pre-commit

[WIP] cache tests

[WIP] remove cache from pre-commit

[WIP] clean pre commit

[CLN] clean readme

[CLN] remove generated readme
2025-09-17 16:52:27 +02:00
3 changed files with 39 additions and 26 deletions

View File

@@ -1,2 +1,2 @@
*.*~ *.*~
*pyc *pyc

View File

@@ -5,14 +5,16 @@
"name": "crm usability misc", "name": "crm usability misc",
"version": "16.0.1.0.0", "version": "16.0.1.0.0",
"author": "Elabore", "author": "Elabore",
"website": "https://elabore.coop", "website": "https://git.elabore.coop/elabore/crm-tools",
"maintainer": "Elabore", "maintainer": "Elabore",
"license": "AGPL-3", "license": "AGPL-3",
"category": "CRM", "category": "CRM",
"summary": "Various modifications of CRM app", "summary": "Various modifications of CRM app",
# any module necessary for this one to work correctly # any module necessary for this one to work correctly
"depends": [ "depends": [
"base","crm","sales_team", "base",
"crm",
"sales_team",
], ],
# always loaded # always loaded
"data": [ "data": [
@@ -23,4 +25,4 @@
# and independently installed. Used for synergetic or glue modules. # and independently installed. Used for synergetic or glue modules.
"auto_install": False, "auto_install": False,
"application": False, "application": False,
} }

View File

@@ -1,24 +1,35 @@
<?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
<xpath expr="//page[@name='lead']//field[@name='campaign_id']/ancestor::group[1]" position="replace" /> expr="//page[@name='lead']//field[@name='campaign_id']/ancestor::group[1]"
<!-- move source_id and referred fields under Tags field --> position="replace"
<xpath expr="//field[@name='tag_ids']" position="after" > />
<field name="source_id"/> <!-- move source_id and referred fields under Tags field -->
<field name="referred"/> <xpath expr="//field[@name='tag_ids']" position="after">
</xpath> <field name="source_id" />
<!-- move team_id under Phone field --> <field name="referred" />
<xpath expr="//group[@name='Misc']//field[@name='team_id']" position="replace" /> </xpath>
<xpath expr="//group[@name='opportunity_partner']//field[@name='lost_reason_id']" position="before" > <!-- move team_id under Phone field -->
<field name="team_id" options="{'no_open': True, 'no_create': True}" context="{'kanban_view_ref' : 'sales_team.crm_team_view_kanban'}"/> <xpath
</xpath> expr="//group[@name='Misc']//field[@name='team_id']"
</field> position="replace"
</record> />
</data> <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>
</odoo> </odoo>