stock_rule_views.xml 740 B

123456789101112131415161718
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <data>
  4. <!-- Stock rules -->
  5. <record id="view_stock_rule_form_stock_inherit_purchase_stock" model="ir.ui.view">
  6. <field name="name">stock.rule.form.stock.inherit.purchase_stock</field>
  7. <field name="model">stock.rule</field>
  8. <field name="inherit_id" ref="stock.view_stock_rule_form"/>
  9. <field name="arch" type="xml">
  10. <field name="location_src_id" position="attributes">
  11. <attribute name="attrs">{'required': [('action', 'in', ['pull', 'push', 'pull_push'])], 'invisible': [('action', '=', 'buy')]}</attribute>
  12. </field>
  13. </field>
  14. </record>
  15. </data>
  16. </odoo>