[FIX] incorrect views spec in relational fields 'more info' action, spotted by odo

bzr revid: xmo@openerp.com-20121008132054-y57mg2rhxg6hkx2s
This commit is contained in:
Xavier Morel 2012-10-08 15:20:54 +02:00
parent 53786034e3
commit 00c7d9f4c0
2 changed files with 2 additions and 2 deletions

View File

@ -199,7 +199,7 @@ class ir_fields_converter(orm.Model):
warnings = []
action = {'type': 'ir.actions.act_window', 'target': 'new',
'view_mode': 'tree,form', 'view_type': 'form',
'views': [(False, 'tree', (False, 'form'))],
'views': [(False, 'tree'), (False, 'form')],
'help': _(u"See all possible values")}
if subfield is None:
action['res_model'] = column._obj

View File

@ -18,7 +18,7 @@ def moreaction(**kwargs):
target='new',
view_mode='tree,form',
view_type='form',
views=[(False, 'tree', (False, 'form'))],
views=[(False, 'tree'), (False, 'form')],
help=u"See all possible values")
def values(seq, field='value'):