You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.2 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="view_repair_order_form_agreement" model="ir.ui.view">
  4. <field name="name">mrp.repair.form.agreement</field>
  5. <field name="model">mrp.repair</field>
  6. <field name="inherit_id" ref="mrp_repair.view_repair_order_form"/>
  7. <field name="arch" type="xml">
  8. <xpath expr="//field[@name='product_id']" position="before">
  9. <field name="agreement_id"/>
  10. <field name="serviceprofile_id"
  11. domain="[('agreement_id', '=', agreement_id)]"/>
  12. </xpath>
  13. </field>
  14. </record>
  15. <!-- Inherit mrp repair search view-->
  16. <record id="view_repair_order_form_filter_agreement" model="ir.ui.view">
  17. <field name="name">mrp.repair.select.agreement</field>
  18. <field name="model">mrp.repair</field>
  19. <field name="inherit_id" ref="mrp_repair.view_repair_order_form_filter"/>
  20. <field name="arch" type="xml">
  21. <xpath expr="//group" position="inside">
  22. <filter string="Service Profile" domain="[]"
  23. context="{'group_by':'serviceprofile_id'}"/>
  24. </xpath>
  25. </field>
  26. </record>
  27. </odoo>