Skip to content

Instantly share code, notes, and snippets.

@erickgnavar
Created April 22, 2015 15:12
Show Gist options
  • Save erickgnavar/b14d18493d571055a86d to your computer and use it in GitHub Desktop.
Save erickgnavar/b14d18493d571055a86d to your computer and use it in GitHub Desktop.
@api.v7
def select_objects(self, cr, uid, ids, context=None):
record = self.browse(cr, uid, ids[0], context=context)
return {
'type': 'ir.actions.act_window',
'res_model': 'hacom.select.object.for.installation',
'name': 'wizard',
'view_mode': 'form',
'view_type': 'form',
'target': 'new',
'context': {
'default_client_id': record.client_id.id,
'default_installation_id': record.id
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment