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.

32 lines
1.3 KiB

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