We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0db5d38 commit f67b9d9Copy full SHA for f67b9d9
stock_quant_package_dimension/models/stock_quant_package.py
@@ -61,7 +61,7 @@ class StockQuantPackage(models.Model):
61
weight_uom_name = fields.Char(
62
# Same as product.packing
63
string="Weight unit of measure label",
64
- readonly=True,
+ compute="_compute_weight_uom_name",
65
)
66
67
volume_uom_id = fields.Many2one(
@@ -84,7 +84,7 @@ class StockQuantPackage(models.Model):
84
readonly=True,
85
86
87
- @api.depends("weight_uom_id.name")
+ @api.depends("weight_uom_id", "weight_uom_id.name")
88
def _compute_weight_uom_name(self):
89
# Don't use a related here as the original default value
90
# causes warnings (Redundant default on related fields are not wanted)
0 commit comments