Skip to Content
मेन्यू
This question has been flagged

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
Discard
Related Posts Replies Views Activity
0
अक्तू॰ 23
1609
1
जून 23
4025
8
अप्रैल 23
18351
1
जून 22
5839
1
नव॰ 18
7053