From 5e58ac16c3cae2d5c45e7c9f746ed810b835a65d Mon Sep 17 00:00:00 2001 From: Can Tecim Date: Wed, 25 Jul 2018 11:24:18 +0300 Subject: [PATCH] [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 --- odoo/models.py | 1 + 1 file changed, 1 insertion(+) 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