From bf332e2e08ebe8533c91f39aa5b24e9dc297af67 Mon Sep 17 00:00:00 2001 From: Can Tecim Date: Mon, 30 Jul 2018 18:09:33 +0300 Subject: [PATCH] [FIX] purchase: P3-style super call 3869cdf7d8202c8157c1134d74549b3096758253 merged a fix which used a P3-style super call, which is not compatible with Python 2. While 11.0 is not really exactly officially supported on Python 2, we originally decided not to break compatibility unless there were very good reasons to do so. --- addons/purchase/models/stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/purchase/models/stock.py b/addons/purchase/models/stock.py index 8f6c1e58fcb..f312fa91c6d 100644 --- a/addons/purchase/models/stock.py +++ b/addons/purchase/models/stock.py @@ -190,6 +190,6 @@ class PushedFlow(models.Model): _inherit = "stock.location.path" def _prepare_move_copy_values(self, move_to_copy, new_date): - res = super()._prepare_move_copy_values(move_to_copy, new_date) + res = super(PushedFlow, self)._prepare_move_copy_values(move_to_copy, new_date) res['purchase_line_id'] = None return res