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.

28 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" domain="[('agreement_id', '=', agreement_id)]"/>
  11. </xpath>
  12. </field>
  13. </record>
  14. <!-- Inherit mrp production search view-->
  15. <record id="view_mrp_production_filter_agreement" model="ir.ui.view">
  16. <field name="name">mrp.production.select.agreement</field>
  17. <field name="model">mrp.production</field>
  18. <field name="inherit_id" ref="mrp.view_mrp_production_filter"/>
  19. <field name="arch" type="xml">
  20. <xpath expr="//group" position="inside">
  21. <filter string="Service Profile" domain="[]" context="{'group_by':'serviceprofile_id'}"/>
  22. </xpath>
  23. </field>
  24. </record>
  25. </odoo>