[FIX] base, ir.ui.view: added a default value for 'type' field as it's a required functional field without fnct_inv (thus not possible to enter a value). This is needed in order to let people create their views manually via the menuitem

bzr revid: qdp-launchpad@openerp.com-20130327160258-jev32y4t99vj6b5s
This commit is contained in:
Quentin (OpenERP) 2013-03-27 17:02:58 +01:00
parent 9259457b4a
commit 72efeaa44f
1 changed files with 2 additions and 1 deletions

View File

@ -83,7 +83,8 @@ class view(osv.osv):
}
_defaults = {
'arch': '<?xml version="1.0"?>\n<tree string="My view">\n\t<field name="name"/>\n</tree>',
'priority': 16
'priority': 16,
'type': 'tree',
}
_order = "priority,name"