Skip to content

Commit

Permalink
Merge pull request #75 from unaiberis/16.0-repair_type
Browse files Browse the repository at this point in the history
[16.0][IMP] repair_type: Improve search view
  • Loading branch information
anajuaristi authored Jan 16, 2025
2 parents 3661f72 + 5c369c5 commit e35c078
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion repair_type/views/repair.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,30 @@
<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
name="repair_type_group"
string="Repair Type"
context="{'group_by': 'repair_type_id'}"
/>
</xpath>
</field>
</record>
</odoo>

0 comments on commit e35c078

Please sign in to comment.