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.

56 lines
2.2 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. domain="[('partner_id', '=', partner_id)]"/>
  11. </field>
  12. </field>
  13. </record>
  14. <record id="view_move_form_agreement" model="ir.ui.view">
  15. <field name="name">stock.move.form.agreement</field>
  16. <field name="model">stock.move</field>
  17. <field name="inherit_id" ref="stock.view_move_form"/>
  18. <field name="arch" type="xml">
  19. <field name="origin" position="before">
  20. <field name="agreement_id"/>
  21. </field>
  22. </field>
  23. </record>
  24. <record id="view_production_lot_form_agreement" model="ir.ui.view">
  25. <field name="name">stock.production.lot.form.agreement</field>
  26. <field name="model">stock.production.lot</field>
  27. <field name="inherit_id" ref="stock.view_production_lot_form"/>
  28. <field name="arch" type="xml">
  29. <xpath expr="//group[@name='main_group']" position="inside">
  30. <group>
  31. <field name="agreement_id"/>
  32. <field name="serviceprofile_id"
  33. domain="[('agreement_id', '=', agreement_id)]"/>
  34. </group>
  35. </xpath>
  36. </field>
  37. </record>
  38. <!-- Inherit stock lot search view-->
  39. <record id="search_product_lot_filter_agreement" model="ir.ui.view">
  40. <field name="name">stock.production.lot.select.agreement</field>
  41. <field name="model">stock.production.lot</field>
  42. <field name="inherit_id" ref="stock.search_product_lot_filter"/>
  43. <field name="arch" type="xml">
  44. <xpath expr="//group" position="inside">
  45. <filter string="Service Profile" name="serviceprofile_id"
  46. domain="[]"
  47. context="{'group_by':'serviceprofile_id'}"/>
  48. </xpath>
  49. </field>
  50. </record>
  51. </odoo>