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.

38 lines
1.5 KiB

6 years ago
  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. <notebook position="inside">
  9. <page string="Agreement">
  10. <group>
  11. <group id="agreement-left">
  12. <field name="agreement_id"
  13. domain="[('partner_id', '=', partner_id)]"/>
  14. <field name="serviceprofile_id"
  15. domain="[('agreement_id', '=', agreement_id)]"/>
  16. </group>
  17. <group id="agreement-right"/>
  18. </group>
  19. </page>
  20. </notebook>
  21. </field>
  22. </record>
  23. <!-- Inherit mrp repair search view-->
  24. <record id="view_repair_order_form_filter_agreement" model="ir.ui.view">
  25. <field name="name">mrp.repair.select.agreement</field>
  26. <field name="model">mrp.repair</field>
  27. <field name="inherit_id" ref="mrp_repair.view_repair_order_form_filter"/>
  28. <field name="arch" type="xml">
  29. <xpath expr="//group" position="inside">
  30. <filter string="Service Profile" domain="[]"
  31. context="{'group_by':'serviceprofile_id'}"/>
  32. </xpath>
  33. </field>
  34. </record>
  35. </odoo>