sale_view.xml 1.1 KB

1234567891011121314151617181920212223
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record model="ir.ui.view" id="view_order_stock_form">
  5. <field name="name">sale.order.form.inherit</field>
  6. <field name="model">sale.order</field>
  7. <field name="inherit_id" ref="sale.view_order_form"/>
  8. <field name="arch" type="xml">
  9. <xpath expr="//field[@name='order_line']/tree/field[@name='product_uom_qty']" position="after">
  10. <field name="virtual_available_boolean" groups="sale_stock_availability.see_stock_boolean"/>
  11. <field name="virtual_available" groups="sale_stock_availability.see_stock_value"/>
  12. </xpath>
  13. <xpath expr="//field[@name='order_line']/form//label[@for='product_uos_qty']" position="before">
  14. <field name="virtual_available_boolean" groups="sale_stock_availability.see_stock_boolean" attrs="{'invisible':[('state','!=','draft')]}"/>
  15. <field name="virtual_available" groups="sale_stock_availability.see_stock_value" attrs="{'invisible':[('state','!=','draft')]}"/>
  16. </xpath>
  17. </field>
  18. </record>
  19. </data>
  20. </openerp>