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.

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