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.

34 lines
1.4 KiB

  1. <!-- # Copyright (C) 2018 Pavlov Media
  2. # Copyright (C) 2019 Open Source Integrators
  3. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
  4. <odoo>
  5. <record id="maintenance_request_form_view_agreement" model="ir.ui.view">
  6. <field name="name">maintenance.request.form.agreement</field>
  7. <field name="model">maintenance.request</field>
  8. <field name="inherit_id"
  9. ref="maintenance.hr_equipment_request_view_form"/>
  10. <field name="arch" type="xml">
  11. <field name="priority" position="before">
  12. <field name="agreement_id"/>
  13. <field name="serviceprofile_id"
  14. domain="[('agreement_id', '=', agreement_id)]"/>
  15. </field>
  16. </field>
  17. </record>
  18. <!-- Inherit maintenance request search view-->
  19. <record id="view_maintenance_request_filter_agreement" model="ir.ui.view">
  20. <field name="name">maintenance.request.select.agreement</field>
  21. <field name="model">maintenance.request</field>
  22. <field name="inherit_id"
  23. ref="maintenance.hr_equipment_request_view_search"/>
  24. <field name="arch" type="xml">
  25. <xpath expr="//group" position="inside">
  26. <filter string="Service Profile" name="serviceprofile_id" domain="[]"
  27. context="{'group_by':'serviceprofile_id'}"/>
  28. </xpath>
  29. </field>
  30. </record>
  31. </odoo>