[FIX] stock_picking_batch: autobatch group-by layout
Hides the empty label the same way as the group-by field if it doesn't need to be shown (no default_location_dest_id/default_location_src_id). Part of task-2985735 closes odoo/odoo#102759 X-original-commit: 6030147e12b628e8759700058b8ac3c3889007a8 Signed-off-by: Bouvy Damien (dbo) <dbo@odoo.com> Signed-off-by: Quentin Wolfs (quwo) <quwo@odoo.com>
This commit is contained in:
@@ -19,12 +19,12 @@
|
||||
<field name="batch_group_by_destination"/>
|
||||
<label for="batch_group_by_destination"/>
|
||||
</div>
|
||||
<span attrs="{'invisible':[('auto_batch', '=', False)]}" groups="stock.group_stock_multi_locations"/>
|
||||
<span attrs="{'invisible':['|', ('auto_batch', '=', False), ('default_location_src_id', '=', False)]}" groups="stock.group_stock_multi_locations"/>
|
||||
<div name="batch_source_location" class="o_row" attrs="{'invisible':['|', ('auto_batch', '=', False), ('default_location_src_id', '=', False)]}" groups="stock.group_stock_multi_locations">
|
||||
<field name="batch_group_by_src_loc"/>
|
||||
<label for="batch_group_by_src_loc"/>
|
||||
</div>
|
||||
<span attrs="{'invisible':[('auto_batch', '=', False)]}" groups="stock.group_stock_multi_locations"/>
|
||||
<span attrs="{'invisible':['|', ('auto_batch', '=', False), ('default_location_dest_id', '=', False)]}" groups="stock.group_stock_multi_locations"/>
|
||||
<div name="batch_dest_subloc" class="o_row" attrs="{'invisible':['|', ('auto_batch', '=', False), ('default_location_dest_id', '=', False)]}" groups="stock.group_stock_multi_locations">
|
||||
<field name="batch_group_by_dest_loc"/>
|
||||
<label for="batch_group_by_dest_loc"/>
|
||||
|
||||
Reference in New Issue
Block a user