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.

54 lines
2.1 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="stock_picking_form_view_agreement" model="ir.ui.view">
  4. <field name="name">stock.picking.form.agreement</field>
  5. <field name="model">stock.picking</field>
  6. <field name="inherit_id" ref="stock.view_picking_form"/>
  7. <field name="arch" type="xml">
  8. <field name="origin" position="before">
  9. <field name="agreement_id"/>
  10. </field>
  11. </field>
  12. </record>
  13. <record id="view_move_form_agreement" model="ir.ui.view">
  14. <field name="name">stock.move.form.agreement</field>
  15. <field name="model">stock.move</field>
  16. <field name="inherit_id" ref="stock.view_move_form"/>
  17. <field name="arch" type="xml">
  18. <field name="origin" position="before">
  19. <field name="agreement_id"/>
  20. </field>
  21. </field>
  22. </record>
  23. <record id="view_production_lot_form_agreement" model="ir.ui.view">
  24. <field name="name">stock.production.lot.form.agreement</field>
  25. <field name="model">stock.production.lot</field>
  26. <field name="inherit_id" ref="stock.view_production_lot_form"/>
  27. <field name="arch" type="xml">
  28. <xpath expr="//group[@name='main_group']" position="inside">
  29. <group>
  30. <field name="agreement_id"/>
  31. <field name="serviceprofile_id"
  32. domain="[('agreement_id', '=', agreement_id)]"/>
  33. </group>
  34. </xpath>
  35. </field>
  36. </record>
  37. <!-- Inherit stock lot search view-->
  38. <record id="search_product_lot_filter_agreement" model="ir.ui.view">
  39. <field name="name">stock.production.lot.select.agreement</field>
  40. <field name="model">stock.production.lot</field>
  41. <field name="inherit_id" ref="stock.search_product_lot_filter"/>
  42. <field name="arch" type="xml">
  43. <xpath expr="//group" position="inside">
  44. <filter string="Service Profile" domain="[]"
  45. context="{'group_by':'serviceprofile_id'}"/>
  46. </xpath>
  47. </field>
  48. </record>
  49. </odoo>