Ir al contenido
Menú
Se marcó esta pregunta

Is it possible to open a wizard after I save a new contact in res.partner?

My code is not working, any help?


@api.multi @api.constrains('unique_contacts') def check_unique_contacts(self): view_id = self.env.ref('unique_partner.test_form').id return { 'name': 'Warning Message', 'context': self.env.context, 'view_type': 'form', 'view_mode': 'form', 'view_id': view_id, 'res_model': 'res.partner', 'type': 'ir.action.act_window', 'target': 'new',

}

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
oct 23
1596
1
jun 23
3977
8
abr 23
18285
1
jun 22
5822
1
nov 18
7046