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.instance.tree</field>
|
||||
<field name="model">woo.instance</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree>
|
||||
<list>
|
||||
<field name="name"/>
|
||||
<field name="url"/>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
@@ -15,7 +15,7 @@
|
||||
decoration-success="state == 'connected'"
|
||||
decoration-warning="state == 'draft'"
|
||||
decoration-danger="state == 'error'"/>
|
||||
</tree>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
</page>
|
||||
<page string="Product Mappings" name="product_maps">
|
||||
<field name="product_map_ids">
|
||||
<tree editable="bottom">
|
||||
<list editable="bottom">
|
||||
<field name="product_id"/>
|
||||
<field name="woo_product_name"/>
|
||||
<field name="woo_sku"/>
|
||||
@@ -105,22 +105,22 @@
|
||||
decoration-success="state == 'mapped'"
|
||||
decoration-warning="state == 'conflict'"
|
||||
decoration-danger="state == 'error'"/>
|
||||
</tree>
|
||||
</list>
|
||||
</field>
|
||||
</page>
|
||||
<page string="Orders" name="orders">
|
||||
<field name="order_ids">
|
||||
<tree>
|
||||
<list>
|
||||
<field name="woo_order_number"/>
|
||||
<field name="sale_order_id"/>
|
||||
<field name="woo_status"/>
|
||||
<field name="state" widget="badge"/>
|
||||
</tree>
|
||||
</list>
|
||||
</field>
|
||||
</page>
|
||||
<page string="Sync Log" name="sync_log">
|
||||
<field name="sync_log_ids" readonly="1">
|
||||
<tree>
|
||||
<list>
|
||||
<field name="create_date"/>
|
||||
<field name="sync_type"/>
|
||||
<field name="direction"/>
|
||||
@@ -130,7 +130,7 @@
|
||||
decoration-danger="state == 'failed'"
|
||||
decoration-warning="state == 'conflict'"/>
|
||||
<field name="message"/>
|
||||
</tree>
|
||||
</list>
|
||||
</field>
|
||||
</page>
|
||||
</notebook>
|
||||
@@ -154,12 +154,11 @@
|
||||
domain="[('state', '=', 'draft')]"/>
|
||||
<filter name="error" string="Error"
|
||||
domain="[('state', '=', 'error')]"/>
|
||||
<group expand="1" string="Group By">
|
||||
<filter name="group_state" string="State"
|
||||
context="{'group_by': 'state'}"/>
|
||||
<filter name="group_company" string="Company"
|
||||
context="{'group_by': 'company_id'}"/>
|
||||
</group>
|
||||
<separator/>
|
||||
<filter name="group_state" string="State"
|
||||
context="{'group_by': 'state'}"/>
|
||||
<filter name="group_company" string="Company"
|
||||
context="{'group_by': 'company_id'}"/>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
@@ -168,7 +167,7 @@
|
||||
<record id="action_woo_instance" model="ir.actions.act_window">
|
||||
<field name="name">WooCommerce Instances</field>
|
||||
<field name="res_model">woo.instance</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
<field name="search_view_id" ref="woo_instance_view_search"/>
|
||||
</record>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user