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.sync.log.tree</field>
|
||||
<field name="model">woo.sync.log</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree create="0" edit="0" delete="0">
|
||||
<list create="0" edit="0" delete="0">
|
||||
<field name="create_date" string="Date"/>
|
||||
<field name="instance_id"/>
|
||||
<field name="sync_type"/>
|
||||
@@ -17,7 +17,7 @@
|
||||
decoration-danger="state == 'failed'"
|
||||
decoration-warning="state == 'conflict'"/>
|
||||
<field name="message"/>
|
||||
</tree>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
@@ -66,16 +66,15 @@
|
||||
<separator/>
|
||||
<filter name="today" string="Today"
|
||||
domain="[('create_date', '>=', (context_today()).strftime('%Y-%m-%d'))]"/>
|
||||
<group expand="1" string="Group By">
|
||||
<filter name="group_sync_type" string="Sync Type"
|
||||
context="{'group_by': 'sync_type'}"/>
|
||||
<filter name="group_direction" string="Direction"
|
||||
context="{'group_by': 'direction'}"/>
|
||||
<filter name="group_instance" string="Instance"
|
||||
context="{'group_by': 'instance_id'}"/>
|
||||
<filter name="group_state" string="State"
|
||||
context="{'group_by': 'state'}"/>
|
||||
</group>
|
||||
<separator/>
|
||||
<filter name="group_sync_type" string="Sync Type"
|
||||
context="{'group_by': 'sync_type'}"/>
|
||||
<filter name="group_direction" string="Direction"
|
||||
context="{'group_by': 'direction'}"/>
|
||||
<filter name="group_instance" string="Instance"
|
||||
context="{'group_by': 'instance_id'}"/>
|
||||
<filter name="group_state" string="State"
|
||||
context="{'group_by': 'state'}"/>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
@@ -84,7 +83,7 @@
|
||||
<record id="action_woo_sync_log" model="ir.actions.act_window">
|
||||
<field name="name">Sync Logs</field>
|
||||
<field name="res_model">woo.sync.log</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
<field name="search_view_id" ref="woo_sync_log_view_search"/>
|
||||
</record>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user