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.

40 lines
1.6 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">repair.order.form.agreement</field>
  5. <field name="model">repair.order</field>
  6. <field name="inherit_id" ref="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">repair.order.select.agreement</field>
  26. <field name="model">repair.order</field>
  27. <field name="inherit_id"
  28. ref="repair.view_repair_order_form_filter"/>
  29. <field name="arch" type="xml">
  30. <xpath expr="//group" position="inside">
  31. <filter string="Service Profile" name="serviceprofile_id"
  32. domain="[]"
  33. context="{'group_by':'serviceprofile_id'}"/>
  34. </xpath>
  35. </field>
  36. </record>
  37. </odoo>