[FIX] ir_ui_view: in context dict, put model name instead of model itself
bzr revid: rco@openerp.com-20140211162736-hgkwjk336ldkjej6
This commit is contained in:
parent
6185dbf5a2
commit
9f7c687dec
|
@ -557,7 +557,7 @@ class view(osv.osv):
|
|||
if f.tag in ('form', 'tree', 'graph', 'kanban', 'calendar'):
|
||||
node.remove(f)
|
||||
ctx = context.copy()
|
||||
ctx['base_model_name'] = Model
|
||||
ctx['base_model_name'] = model
|
||||
xarch, xfields = self.postprocess_and_fields(cr, user, column._obj or None, f, view_id, ctx)
|
||||
views[str(f.tag)] = {
|
||||
'arch': xarch,
|
||||
|
|
Loading…
Reference in New Issue