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.

47 lines
2.0 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_equipment_form_view_agreement" model="ir.ui.view">
  6. <field name="name">maintenance.equipment.form.agreement</field>
  7. <field name="model">maintenance.equipment</field>
  8. <field name="inherit_id"
  9. ref="maintenance.hr_equipment_view_form"/>
  10. <field name="arch" type="xml">
  11. <field name="owner_user_id" position="after">
  12. <field name="agreement_id"/>
  13. </field>
  14. <xpath expr="//notebook" position="inside">
  15. <page string="Services" id="services">
  16. <field name="serviceprofile_ids"
  17. domain="[('active', '=', True),
  18. ('equipment_id', '=', False)]"
  19. widget="many2many">
  20. <tree>
  21. <field name="name"/>
  22. <field name="partner_id"/>
  23. <field name="product_id"/>
  24. <field name="stage_id"/>
  25. </tree>
  26. </field>
  27. </page>
  28. </xpath>
  29. </field>
  30. </record>
  31. <!-- Inherit maintenance equipment search view-->
  32. <record id="view_maintenance_equipment_filter_agreement" model="ir.ui.view">
  33. <field name="name">maintenance.equipment.select.agreement</field>
  34. <field name="model">maintenance.equipment</field>
  35. <field name="inherit_id"
  36. ref="maintenance.hr_equipment_view_search"/>
  37. <field name="arch" type="xml">
  38. <xpath expr="//group" position="inside">
  39. <filter string="Agreement" name="agreement_id" domain="[]"
  40. context="{'group_by': 'agreement_id'}"/>
  41. </xpath>
  42. </field>
  43. </record>
  44. </odoo>