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:
@@ -63,7 +63,6 @@ class FpProcessNode(models.Model):
|
||||
)
|
||||
parent_path = fields.Char(
|
||||
index=True,
|
||||
unaccent=False,
|
||||
)
|
||||
child_ids = fields.One2many(
|
||||
'fusion.plating.process.node',
|
||||
|
||||
@@ -123,29 +123,25 @@
|
||||
<field name="name">fusion.plating.process.node.search</field>
|
||||
<field name="model">fusion.plating.process.node</field>
|
||||
<field name="arch" type="xml">
|
||||
<search string="Process Nodes">
|
||||
<field name="name" string="Name"
|
||||
filter_domain="['|', ('name', 'ilike', self), ('code', 'ilike', self)]"/>
|
||||
<search>
|
||||
<field name="name"/>
|
||||
<field name="code"/>
|
||||
<field name="process_type_id"/>
|
||||
<field name="work_center_id"/>
|
||||
<separator/>
|
||||
<filter name="recipes_only" string="Recipes"
|
||||
domain="[('node_type', '=', 'recipe')]"/>
|
||||
<filter name="sub_processes" string="Sub-Processes"
|
||||
domain="[('node_type', '=', 'sub_process')]"/>
|
||||
<filter name="operations" string="Operations"
|
||||
domain="[('node_type', '=', 'operation')]"/>
|
||||
<separator/>
|
||||
<filter name="archived" string="Archived"
|
||||
domain="[('active', '=', False)]"/>
|
||||
<group expand="0" string="Group By">
|
||||
<filter name="group_type" string="Type"
|
||||
context="{'group_by': 'node_type'}"/>
|
||||
<filter name="group_process" string="Process Type"
|
||||
context="{'group_by': 'process_type_id'}"/>
|
||||
<filter name="group_wc" string="Work Centre"
|
||||
context="{'group_by': 'work_center_id'}"/>
|
||||
</group>
|
||||
<filter name="group_type" string="Type"
|
||||
context="{'group_by': 'node_type'}"/>
|
||||
<filter name="group_process" string="Process Type"
|
||||
context="{'group_by': 'process_type_id'}"/>
|
||||
<filter name="group_wc" string="Work Centre"
|
||||
context="{'group_by': 'work_center_id'}"/>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user