1234567891011121314151617181920212223 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <record model="ir.ui.view" id="view_order_stock_form">
- <field name="name">sale.order.form.inherit</field>
- <field name="model">sale.order</field>
- <field name="inherit_id" ref="sale.view_order_form"/>
- <field name="arch" type="xml">
- <xpath expr="//field[@name='order_line']/tree/field[@name='product_uom_qty']" position="after">
- <field name="virtual_available_boolean" groups="sale_stock_availability.see_stock_boolean"/>
- <field name="virtual_available" groups="sale_stock_availability.see_stock_value"/>
- </xpath>
-
- <xpath expr="//field[@name='order_line']/form//label[@for='product_uos_qty']" position="before">
- <field name="virtual_available_boolean" groups="sale_stock_availability.see_stock_boolean" attrs="{'invisible':[('state','!=','draft')]}"/>
- <field name="virtual_available" groups="sale_stock_availability.see_stock_value" attrs="{'invisible':[('state','!=','draft')]}"/>
- </xpath>
- </field>
- </record>
- </data>
- </openerp>
|