Se rendre au contenu
Menu
Cette question a été signalée
La question est close pour la raison suivante : not enough information given to provide help
par Jodie Beernaut le 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
Ignorer
Publications associées Réponses Vues Activité
3
août 25
2225
1
mai 25
2506
1
avr. 25
3496
1
avr. 25
4323
1
avr. 25
1799