From 7bda571cd7a7ca386a6b8c5ce728076dd1069df6 Mon Sep 17 00:00:00 2001 From: "Tiffany Chang (tic)" Date: Fri, 5 Nov 2021 09:14:09 +0000 Subject: [PATCH] [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 --- addons/product/wizard/product_label_layout.py | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/product/wizard/product_label_layout.py b/addons/product/wizard/product_label_layout.py index 6233f2db79e..2fc90fe61e9 100644 --- a/addons/product/wizard/product_label_layout.py +++ b/addons/product/wizard/product_label_layout.py @@ -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,