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.
 
 
 
 
 

25 lines
1.2 KiB

<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Stock Picking -->
<record id="view_picking_form" model="ir.ui.view">
<field name="name">stock.picking.view.form.inherit.cw.stock</field>
<field name="model">stock.picking</field>
<field name="inherit_id" ref="stock.view_picking_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='product_id']" position="after">
<field name="cw_hide" column_invisible="True"/>
<field name="show_operations" column_invisible="True"/>
<field name="cw_demand"
readonly="is_initial_demand_editable == False or show_operations == True and is_locked == True and is_initial_demand_editable == False"/>
<field name="cw_reserved"
column_invisible="parent.state in ['draft', 'done'] or parent.picking_type_code != 'outgoing' "/>
<field name="cw_done"
readonly="product_id == False"
column_invisible="parent.state =='draft'"
/>
<field name="category_id" column_invisible="1"/>
<field name="cw_uom_id"/>
</xpath>
</field>
</record>
</odoo>