[IMP] big refactoring :

use event_type instead of product_product
This commit is contained in:
clementthomas
2024-01-09 11:55:20 +01:00
parent a47ac870c1
commit c3acf2065e
7 changed files with 22 additions and 26 deletions

View File

@@ -6,10 +6,10 @@
<field name="model">crm.lead</field>
<field name="arch" type="xml">
<filter name="salesperson" position="before">
<filter string="Event product" name="event_product" context="{'group_by':'event_products_ids'}" />
<filter string="Event type" name="event_type" context="{'group_by':'event_type_ids'}" />
</filter>
<field name="tag_ids" position="before">
<field name="event_products_ids" />
<field name="event_type_ids" />
</field>
</field>
</record>
@@ -37,9 +37,7 @@
</div>
<field name="survey_user_input_id" position="after">
<field
name="event_products_ids"
readonly="1"
attrs="{'invisible': [('event_products_ids', '=', False)]}"
name="event_type_ids"
widget="many2many_tags"
/>
</field>
@@ -54,8 +52,10 @@
<field name="inherit_id" ref="crm.crm_case_tree_view_oppor" />
<field name="arch" type="xml">
<field name="name" position="after">
<field name="event_products_ids" widget="many2many_tags" />
<field name="event_type_ids" widget="many2many_tags" />
</field>
</field>
</record>
</odoo>