OSV method's return statement given
In OpenERP, an OSV object can return something which can open a new view or activate an action. For instance, sale.order has manual_invoice method which returns the following: return { 'name': _('Customer Invoices'), 'view_type': 'form', 'view_mode': 'form', 'view_id': [res_id], 'res_model': 'account.invoice', 'context': "{'type':'out_invoice'}", 'type': 'ir.actions.act_window', 'nodestroy': True, 'target': 'current', 'res_id': inv_ids and inv_ids[0] or False, } and it opens an invoice form view in the same window. I've seen 'view_id': [res_id], being changed to 'views': [(id2, 'form')], and o
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.