stock_scrap_views.xml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="stock_scrap_view_form2_mrp_inherit_mrp" model="ir.ui.view">
  4. <field name="name">stock.scrap.view.form2.inherit.mrp</field>
  5. <field name="model">stock.scrap</field>
  6. <field name="inherit_id" ref="stock.stock_scrap_form_view2"/>
  7. <field name="arch" type="xml">
  8. <field name="owner_id" position="after">
  9. <field name="workorder_id" invisible="1"/>
  10. <field name="production_id" invisible="1"/>
  11. </field>
  12. </field>
  13. </record>
  14. <record id="stock_scrap_view_form_mrp_inherit_mrp" model="ir.ui.view">
  15. <field name="name">stock.scrap.view.form.inherit.mrp</field>
  16. <field name="model">stock.scrap</field>
  17. <field name="inherit_id" ref="stock.stock_scrap_form_view"/>
  18. <field name="arch" type="xml">
  19. <field name="owner_id" position="after">
  20. <field name="workorder_id" domain="[('production_id', '=', product_id)]" attrs="{'invisible': [('workorder_id', '=', False)]}"/>
  21. <field name="production_id" domain="[('company_id', '=', company_id)]" attrs="{'invisible': [('production_id', '=', False)]}"/>
  22. </field>
  23. </field>
  24. </record>
  25. <record id="stock_scrap_search_view_inherit_mrp" model="ir.ui.view">
  26. <field name="name">stock.scrap.search.inherit.mrp</field>
  27. <field name="model">stock.scrap</field>
  28. <field name="inherit_id" ref="stock.stock_scrap_search_view"/>
  29. <field name="arch" type="xml">
  30. <xpath expr="//filter[@name='transfer']" position="after">
  31. <filter string="Manufacturing Order" name="production_id" domain="[]" context="{'group_by':'production_id'}"/>
  32. </xpath>
  33. </field>
  34. </record>
  35. </odoo>