mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
s_packaging_calculator: contained mapping depends on lang
Otherwise translations won't be taken into account.
This commit is contained in:
committed by
Thierry Ducrest
parent
45e3e2e137
commit
a2134f26ac
@@ -24,6 +24,7 @@ class Product(models.Model):
|
||||
help="Technical field to store contained packaging. ",
|
||||
)
|
||||
|
||||
@api.depends_context("lang")
|
||||
@api.depends("packaging_ids.qty")
|
||||
def _compute_packaging_contained_mapping(self):
|
||||
for rec in self:
|
||||
|
||||
Reference in New Issue
Block a user