fix: Odoo 19 compatibility — tree→list views, remove search group wrappers, remove numbercall
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<field name="name">woo.conflict.tree</field>
|
||||
<field name="model">woo.conflict</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree>
|
||||
<list>
|
||||
<field name="instance_id"/>
|
||||
<field name="conflict_type"/>
|
||||
<field name="field_name"/>
|
||||
@@ -15,7 +15,7 @@
|
||||
<field name="resolution" widget="badge"
|
||||
decoration-warning="resolution == 'pending'"
|
||||
decoration-success="resolution != 'pending'"/>
|
||||
</tree>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
@@ -69,14 +69,13 @@
|
||||
domain="[('resolution', '=', 'pending')]"/>
|
||||
<filter name="resolved" string="Resolved"
|
||||
domain="[('resolution', '!=', 'pending')]"/>
|
||||
<group expand="1" string="Group By">
|
||||
<filter name="group_type" string="Type"
|
||||
context="{'group_by': 'conflict_type'}"/>
|
||||
<filter name="group_instance" string="Instance"
|
||||
context="{'group_by': 'instance_id'}"/>
|
||||
<filter name="group_resolution" string="Resolution"
|
||||
context="{'group_by': 'resolution'}"/>
|
||||
</group>
|
||||
<separator/>
|
||||
<filter name="group_type" string="Type"
|
||||
context="{'group_by': 'conflict_type'}"/>
|
||||
<filter name="group_instance" string="Instance"
|
||||
context="{'group_by': 'instance_id'}"/>
|
||||
<filter name="group_resolution" string="Resolution"
|
||||
context="{'group_by': 'resolution'}"/>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
@@ -85,7 +84,7 @@
|
||||
<record id="action_woo_conflict" model="ir.actions.act_window">
|
||||
<field name="name">Sync Conflicts</field>
|
||||
<field name="res_model">woo.conflict</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
<field name="search_view_id" ref="woo_conflict_view_search"/>
|
||||
</record>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user