[FIX] sale_stock: hide effective_date when empty
task-2125070 closes odoo/odoo#40412 X-original-commit: 965ef8ea1b2dcf3415e3f002248c8fb68cbfdfb6 Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
<field name="picking_policy" required="True"/>
|
||||
</xpath>
|
||||
<xpath expr="//group[@name='sale_shipping']" position="inside">
|
||||
<field name="effective_date"/>
|
||||
<field name="effective_date" attrs="{'invisible': [('effective_date', '=', False)]}"/>
|
||||
</xpath>
|
||||
<xpath expr="//page/field[@name='order_line']/form/group/group/field[@name='price_unit']" position="before">
|
||||
<field name="product_packaging" attrs="{'invisible': [('product_id', '=', False)]}" context="{'default_product_id': product_id, 'tree_view_ref':'product.product_packaging_tree_view', 'form_view_ref':'product.product_packaging_form_view'}" domain="[('product_id','=',product_id)]" groups="product.group_stock_packaging" />
|
||||
|
||||
Reference in New Issue
Block a user