From dcbeb6419e10583f95e79c94ae12dba52c7a179e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miquel=20Ra=C3=AFch?= Date: Wed, 20 Sep 2023 14:53:39 +0200 Subject: [PATCH] [FIX] mrp: add super() to some compute methods Due to commit https://github.com/odoo/odoo/commit/31861330642c7cab116f14694cd1f85b2ccd6e98, the cases where code == 'incoming' are not handled if you have mrp module installed. closes odoo/odoo#136021 Signed-off-by: William Henrotin (whe) --- addons/mrp/models/stock_picking.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/mrp/models/stock_picking.py b/addons/mrp/models/stock_picking.py index 828e484b04c..3e1b84b0282 100644 --- a/addons/mrp/models/stock_picking.py +++ b/addons/mrp/models/stock_picking.py @@ -56,12 +56,14 @@ class StockPickingType(models.Model): @api.depends('code') def _compute_use_create_lots(self): + super()._compute_use_create_lots() for picking_type in self: if picking_type.code == 'mrp_operation': picking_type.use_create_lots = True @api.depends('code') def _compute_use_existing_lots(self): + super()._compute_use_existing_lots() for picking_type in self: if picking_type.code == 'mrp_operation': picking_type.use_existing_lots = True