[IMP] indentation

bzr revid: abo@openerp.com-20120919145110-81ucvhpf9jcf867y
This commit is contained in:
Antonin Bourguignon 2012-09-19 16:51:10 +02:00
parent bc9decbe45
commit 6d7c30af85
1 changed files with 9 additions and 8 deletions

View File

@ -88,11 +88,12 @@ class crm_contact_us(osv.TransientModel):
def submit(self, cr, uid, ids, context=None): def submit(self, cr, uid, ids, context=None):
""" When the form is submitted, redirect the user to a "Thanks" message """ """ When the form is submitted, redirect the user to a "Thanks" message """
return {'type': 'ir.actions.act_window', return {
'view_mode': 'form', 'type': 'ir.actions.act_window',
'view_type': 'form', 'view_mode': 'form',
'res_model': self._name, 'view_type': 'form',
'res_id': ids[0], 'res_model': self._name,
'view_id': self.pool.get('ir.model.data').get_object_reference(cr, uid, 'portal_crm', 'wizard_contact_form_view_thanks')[1], 'res_id': ids[0],
'target': 'inline' 'view_id': self.pool.get('ir.model.data').get_object_reference(cr, uid, 'portal_crm', 'wizard_contact_form_view_thanks')[1],
} 'target': 'inline',
}