Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
Pertanyaan sudah ditutup untuk alasan: not enough information given to provide help
oleh Jodie Beernaut pada 02/04/2024 09:39:22
1214 Tampilan
try:
instance, partner_company_id, partner_id = request.env['wizard.create.instance'].create_instance(kwargs)
except Exception as e:
return {
'error': str(e)
}

on the model i have an @api.constraints that raise an error but this is ingnored if the function it's inside a try except and it's created anyway. How rollback in case of raised Error?

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Mei 25
2490
1
Apr 25
3494
1
Apr 25
4322
1
Apr 25
1796
4
Mar 25
6919