From 0d9fd71de345a32f766e1188e036be957c8a5b32 Mon Sep 17 00:00:00 2001 From: clesgow Date: Fri, 22 Mar 2024 15:44:45 +0100 Subject: [PATCH] [FIX] stock: set print_label on picking types In a1f32fafa85b300e2d656a57797b8dbde6e3f065, various onchanges from the picking types were changed into computes. However, the compute for the `print_label` field was forgotten and never linked to its field. closes odoo/odoo#158869 Signed-off-by: Arnold Moyaux (arm) --- addons/stock/models/stock_picking.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/models/stock_picking.py b/addons/stock/models/stock_picking.py index d628bc1587d..9d3361100ac 100644 --- a/addons/stock/models/stock_picking.py +++ b/addons/stock/models/stock_picking.py @@ -60,7 +60,7 @@ class PickingType(models.Model): compute='_compute_use_existing_lots', store=True, readonly=False, help="If this is checked, you will be able to choose the Lots/Serial Numbers. You can also decide to not put lots in this operation type. This means it will create stock with no lot or not put a restriction on the lot taken. ") print_label = fields.Boolean( - 'Print Label', + 'Print Label', compute="_compute_print_label", store=True, readonly=False, help="If this checkbox is ticked, label will be print in this operation.") # TODO: delete this field `show_operations` show_operations = fields.Boolean(