diff options
| author | Can Tecim <can.tecim@gmail.com> | 2018-07-25 11:24:18 +0300 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2018-07-26 09:58:29 +0200 |
| commit | 5e58ac16c3cae2d5c45e7c9f746ed810b835a65d (patch) | |
| tree | 80ef68074d9148e55e181d9efea553a3c8e63ffd | |
| parent | 4b9d6387b82395721f7c01148acb0963a221abbf (diff) | |
[FIX] models.py: onchange in python2 with 2054b59
Without the call to `super`, with at least two level off expected
onchange return data (eg. `invoice_lines.name`) we have an error in
python2, python3 python implementation of OrderedDict and possibly other
python implementation.
So this worked most often (with python3 CPython C implementation of
OrderedDict) by chance.
closes #25960
| -rw-r--r-- | odoo/models.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/odoo/models.py b/odoo/models.py index 6c094e54687..1daef4cb6fc 100644 --- a/odoo/models.py +++ b/odoo/models.py @@ -5058,6 +5058,7 @@ class BaseModel(MetaModel('DummyModel', (object,), {'_register': False})): } """ def __init__(self, model, dotnames): + super(PrefixTree, self).__init__() if not dotnames: return # group dotnames by prefix |
