[IMP] remove deprecated explicit setting of type on views

bzr revid: xmo@openerp.com-20130423154456-wt4aeb6yr963jbye
This commit is contained in:
Xavier Morel 2013-04-23 17:44:56 +02:00
parent d40ec67c2d
commit 3ac47a587e
2 changed files with 1 additions and 2 deletions

View File

@ -2068,7 +2068,7 @@ class BaseModel(object):
root_view_id = View.get_root_ancestor(
cr, user, view_id, self._name, view_type, context=context)
root_view = View.read_combined(cr, user, root_view_id, fields=[
'id', 'name', 'field_parent', 'type', 'model'
'id', 'name', 'field_parent', 'type', 'model', 'arch'
], model=self._name, context=context)
if root_view:
result.update(

View File

@ -105,7 +105,6 @@ class TestViewInheritance(common.TransactionCase):
'name': name,
'arch': self.view_for(name),
'inherit_id': parent,
'type': 'form',
})
self.ids[name] = view_id
return view_id