[FIX] product: remove missing field reference from label wizard
The label wizard is extended from product to stock, so we can print labels even when stock isn't installed (e.g. only purchase or sales installed). Therefore we shouldn't reference a field that's introduced in the stock extension (i.e. label wizard will throw a stack trace when stock is not installed). Noticed during task: 2678336 X-original-commit: 9aeba3668e89f14bcfa4ea37861f33ad9add86d8 Part-of: odoo/odoo#80079
This commit is contained in:
@@ -55,7 +55,6 @@ class ProductLabelLayout(models.TransientModel):
|
||||
|
||||
# Build data to pass to the report
|
||||
data = {
|
||||
'picking_quantity': self.picking_quantity,
|
||||
'active_model': active_model,
|
||||
'quantity_by_product': {p: self.custom_quantity for p in products},
|
||||
'layout_wizard': self.id,
|
||||
|
||||
Reference in New Issue
Block a user