[IMP] ir.actions.act_window: explicitly support res_id attribute

This attribute was allowed for inline action
definitions, but was not supported in the data
model, which is inconsistent. It also prevented
persisting an action with a res_id, or defining
on in module data files.

bzr revid: odo@openerp.com-20120627124136-wf50siad4qujodgl
This commit is contained in:
Olivier Dony 2012-06-27 14:41:36 +02:00
parent 73edcb97f9
commit 7093b6f504
1 changed files with 3 additions and 2 deletions

View File

@ -222,9 +222,10 @@ class act_window(osv.osv):
help="Optional domain filtering of the destination data, as a Python expression"),
'context': fields.char('Context Value', size=250, required=True,
help="Context dictionary as Python expression, empty by default (Default: {})"),
'res_model': fields.char('Object', size=64, required=True,
'res_id': fields.integer('Record ID', help="Database ID of record to open in form view, when ``view_mode`` is set to 'form' only"),
'res_model': fields.char('Destination Model', size=64, required=True,
help="Model name of the object to open in the view window"),
'src_model': fields.char('Source Object', size=64,
'src_model': fields.char('Source Model', size=64,
help="Optional model name of the objects on which this action should be visible"),
'target': fields.selection([('current','Current Window'),('new','New Window'),('inline','Inline')], 'Target Window'),
'view_type': fields.selection((('tree','Tree'),('form','Form')), string='View Type', required=True,