fusion_plating: fix search view for Odoo 19 + remove unaccent param (v19.0.2.0.1)

Odoo 19 search views: removed <group string="..."> wrapper (invalid),
removed string attr from <search>, removed filter_domain on name field.
Removed unaccent=False from parent_path (unknown param in this version).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsinghpal
2026-04-12 14:41:33 -04:00
parent a7d224899a
commit b38310709a
2 changed files with 9 additions and 14 deletions

View File

@@ -63,7 +63,6 @@ class FpProcessNode(models.Model):
) )
parent_path = fields.Char( parent_path = fields.Char(
index=True, index=True,
unaccent=False,
) )
child_ids = fields.One2many( child_ids = fields.One2many(
'fusion.plating.process.node', 'fusion.plating.process.node',

View File

@@ -123,29 +123,25 @@
<field name="name">fusion.plating.process.node.search</field> <field name="name">fusion.plating.process.node.search</field>
<field name="model">fusion.plating.process.node</field> <field name="model">fusion.plating.process.node</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<search string="Process Nodes"> <search>
<field name="name" string="Name" <field name="name"/>
filter_domain="['|', ('name', 'ilike', self), ('code', 'ilike', self)]"/> <field name="code"/>
<field name="process_type_id"/> <field name="process_type_id"/>
<field name="work_center_id"/> <field name="work_center_id"/>
<separator/>
<filter name="recipes_only" string="Recipes" <filter name="recipes_only" string="Recipes"
domain="[('node_type', '=', 'recipe')]"/> domain="[('node_type', '=', 'recipe')]"/>
<filter name="sub_processes" string="Sub-Processes" <filter name="sub_processes" string="Sub-Processes"
domain="[('node_type', '=', 'sub_process')]"/> domain="[('node_type', '=', 'sub_process')]"/>
<filter name="operations" string="Operations" <filter name="operations" string="Operations"
domain="[('node_type', '=', 'operation')]"/> domain="[('node_type', '=', 'operation')]"/>
<separator/>
<filter name="archived" string="Archived" <filter name="archived" string="Archived"
domain="[('active', '=', False)]"/> domain="[('active', '=', False)]"/>
<group expand="0" string="Group By"> <filter name="group_type" string="Type"
<filter name="group_type" string="Type" context="{'group_by': 'node_type'}"/>
context="{'group_by': 'node_type'}"/> <filter name="group_process" string="Process Type"
<filter name="group_process" string="Process Type" context="{'group_by': 'process_type_id'}"/>
context="{'group_by': 'process_type_id'}"/> <filter name="group_wc" string="Work Centre"
<filter name="group_wc" string="Work Centre" context="{'group_by': 'work_center_id'}"/>
context="{'group_by': 'work_center_id'}"/>
</group>
</search> </search>
</field> </field>
</record> </record>