diff options
| author | Can Tecim <can.tecim@gmail.com> | 2018-07-30 18:09:33 +0300 |
|---|---|---|
| committer | Xavier Morel <xmo@odoo.com> | 2018-07-31 10:05:30 +0200 |
| commit | bf332e2e08ebe8533c91f39aa5b24e9dc297af67 (patch) | |
| tree | 27a9a901b9fece1aade0df99968ef61b43ae9d64 | |
| parent | 47acea1523e1e27306d15cce21d8499825b3173a (diff) | |
[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.
| -rw-r--r-- | addons/purchase/models/stock.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
