Skip to Content
Menú
This question has been flagged
S'ha tancat la pregunta per raó: not enough information given to provide help
per Jodie Beernaut en 02/04/2024 09:39:22
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
Descartar
Related Posts Respostes Vistes Activitat
1
de maig 25
2466
1
d’abr. 25
3490
1
d’abr. 25
4319
1
d’abr. 25
1793
4
de març 25
6915