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:
9ca58db
)
[FIX] models: only check existance of inverse_field for one2many fields
author
Christophe Simonis
<chs@odoo.com>
Mon, 22 Sep 2014 15:05:07 +0000
(17:05 +0200)
committer
Christophe Simonis
<chs@odoo.com>
Mon, 22 Sep 2014 15:05:07 +0000
(17:05 +0200)
openerp/models.py
patch
|
blob
|
history
diff --git
a/openerp/models.py
b/openerp/models.py
index
5423060
..
6647502
100644
(file)
--- a/
openerp/models.py
+++ b/
openerp/models.py
@@
-3000,7
+3000,7
@@
class BaseModel(object):
if partial and field.manual and \
field.relational and \
(field.comodel_name not in self.pool or \
- field.inverse_name not in self.pool[field.comodel_name]._fields):
+ (field.type == 'one2many' and field.inverse_name not in self.pool[field.comodel_name]._fields)):
# do not set up manual fields that refer to unknown models
continue
field.setup(self.env)