[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:
Raphael Collet 2014-02-11 17:27:36 +01:00
parent 6185dbf5a2
commit 9f7c687dec
1 changed files with 1 additions and 1 deletions

View File

@ -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,