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.

30 lines
1.2 KiB

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