Skip to content

Commit

Permalink
[IMP] repair_type: Add repair_type_id in tree view
Browse files Browse the repository at this point in the history
  • Loading branch information
unaiberis committed Jan 17, 2025
1 parent 7db44ca commit d25ef29
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions repair_type/views/repair.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="view_repair_order_tree_inherit" model="ir.ui.view">
<field name="name">repair.order.tree.inherit</field>
<field name="model">repair.order</field>
<field name="inherit_id" ref="repair.view_repair_order_tree"/>
<field name="arch" type="xml">
<xpath expr="//tree/field[1]" position="before">
<field name="repair_type_id" optional="show" />
</xpath>
</field>
</record>

<record id="repair_type_form_inherit" model="ir.ui.view">
<field name="name">repair.type.inherit</field>
<field name="model">repair.order</field>
Expand All @@ -17,18 +28,10 @@
<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)]"
/>
<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'}"
/>
<filter name="repair_type_group" string="Repair Type" context="{'group_by': 'repair_type_id'}" />
</xpath>
</field>
</record>
Expand Down

0 comments on commit d25ef29

Please sign in to comment.