[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) <whe@odoo.com>
This commit is contained in:
Miquel Raïch
2023-11-13 14:38:28 +00:00
parent 1ae10492df
commit dcbeb6419e
+2
View File
@@ -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