Skip to content

Commit

Permalink
Reload fields of parent inherits, fixes odoo#5398
Browse files Browse the repository at this point in the history
  • Loading branch information
guewen committed Feb 24, 2015
1 parent 461c930 commit 608e58c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openerp/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2896,6 +2896,7 @@ def _inherits_reload(cls):
cls._inherit_fields = struct = {}
for parent_model, parent_field in cls._inherits.iteritems():
parent = cls.pool[parent_model]
parent._inherits_reload()
for name, column in parent._columns.iteritems():
struct[name] = (parent_model, parent_field, column, parent_model)
for name, source in parent._inherit_fields.iteritems():
Expand Down

0 comments on commit 608e58c

Please sign in to comment.