Skip to content

Commit

Permalink
[IMP] repair_type: Improve search view
Browse files Browse the repository at this point in the history
  • Loading branch information
unaiberis committed Dec 27, 2024
1 parent 3661f72 commit 5db7419
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion repair_type/views/repair.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,26 @@
<field name="inherit_id" ref="repair.view_repair_order_form" />
<field name="arch" type="xml">
<field name="product_id" position="after">
<field name="repair_type_id" />
<field name="repair_type_id" />
</field>
</field>
</record>

<record id="view_repair_order_form_filter_inherit" model="ir.ui.view">
<field name="name">repair.select.inherit</field>
<field name="model">repair.order</field>
<field name="inherit_id" ref="repair.view_repair_order_form_filter" />
<field name="arch" type="xml">
<xpath expr="//search" position="inside">
<filter
string="Repair Type"
name="repair_type"
domain="[('repair_type_id', '!=', False)]"
/>
</xpath>
<xpath expr="//group" position="inside">
<filter string="Repair Type" context="{'group_by': 'repair_type_id'}" />
</xpath>
</field>
</record>
</odoo>

0 comments on commit 5db7419

Please sign in to comment.