[FIX] don't 'double tap' when applying view inheritance
iter(exclude_base=False) would add the base view (being extended) to the sequence, and thus start by extending the base view with itself. bzr revid: xmo@openerp.com-20130423100845-ryumkx12cwv60pc1
This commit is contained in:
parent
980e01d386
commit
b0f2d3044a
|
@ -2152,7 +2152,7 @@ class BaseModel(object):
|
|||
return reduce(
|
||||
lambda s, descendant: apply_inheritance_specs(
|
||||
cr, user, self._name, inherit_id, s, *descendant, context=context),
|
||||
self.pool['ir.ui.view'].iter(cr, user, inherit_id, self._name, context=context),
|
||||
self.pool['ir.ui.view'].iter(cr, user, inherit_id, self._name, exclude_base=True, context=context),
|
||||
source)
|
||||
|
||||
result = {'type': view_type, 'model': self._name}
|
||||
|
|
Loading…
Reference in New Issue