[IMP] stock: added attrs in removal strategy field

In this commit:
==================
Invisible the 'Removal strategy' field when selecting the other
location type except Internal location.

task-3555853

closes odoo/odoo#157888

X-original-commit: f24a77d073d609b03c0ff686f843db10218ad1b7
Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>
This commit is contained in:
temo-odoo
2024-03-28 12:19:07 +00:00
parent dc7b75f9fb
commit 3acb79bf2c
+1 -1
View File
@@ -48,7 +48,7 @@
<field name="next_inventory_date" invisible="not active"/>
</group>
<group string="Logistics" groups="stock.group_adv_location">
<field name="removal_strategy_id" options="{'no_create': True}"/>
<field name="removal_strategy_id" options="{'no_create': True}" invisible="usage in ('supplier', 'customer', 'inventory', 'production') or scrap_location or usage == 'transit' and not company_id"/>
</group>
</group>
<field name="comment" placeholder="External note..."/>