Remove required on model of ir.ui.view for board

issue2691
review410002
This commit is contained in:
Cédric Krier committed 2012-07-01 19:38:14 +02:00
1 parent 2188fc3c6c
commit 22df654265
1 file changed
+6 -1
+6 -1
View File
@@ -19,7 +19,9 @@ class View(ModelSQL, ModelView):
_name = 'ir.ui.view'
_description = __doc__
_rec_name = 'model'
model = fields.Char('Model', required=True, select=True)
model = fields.Char('Model', select=True, states={
'required': Eval('type').in_([None, 'tree', 'form', 'graph']),
})
priority = fields.Integer('Priority', required=True, select=True)
type = fields.Selection([
(None, ''),
@@ -56,6 +58,9 @@ class View(ModelSQL, ModelView):
# Migration from 1.0 arch no more required
table.not_null_action('arch', action='remove')
# Migration from 2.4 model no more required
table.not_null_action('model', action='remove')
def default_arch(self):
return '<?xml version="1.0"?>'