Skip to Content
Menu
This question has been flagged
The question has been closed z dôvodu: not enough information given to provide help pomocou Jodie Beernaut na 02.04.2024 09:39:22
1251 Zobrazenia
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
Zrušiť
Related Posts Replies Zobrazenia Aktivita
3
aug 25
2453
1
máj 25
2578
1
apr 25
3540
1
apr 25
4387
1
apr 25
1850