projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5735236
)
[FIX] models: fixes #1017; do not update list in place in the construction of _depend...
author
Raphael Collet
<rco@openerp.com>
Wed, 30 Jul 2014 09:50:57 +0000
(11:50 +0200)
committer
Olivier Dony
<odo@openerp.com>
Wed, 30 Jul 2014 11:59:14 +0000
(13:59 +0200)
openerp/models.py
patch
|
blob
|
history
diff --git
a/openerp/models.py
b/openerp/models.py
index
c4c7f69
..
8c86f2e
100644
(file)
--- a/
openerp/models.py
+++ b/
openerp/models.py
@@
-591,7
+591,7
@@
class BaseModel(object):
depends = dict(parent_class._depends)
for m, fs in cls._depends.iteritems():
- depends.setdefault(m, []).extend(fs)
+ depends[m] = depends.get(m, []) + fs
old_constraints = parent_class._constraints
new_constraints = cls._constraints