Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
Otázka byla uzavřena pro důvod: not enough information given to provide help od Jodie Beernaut na 02.04.2024 09:39:22
1442 Zobrazení
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šit
Related Posts Odpovědi Zobrazení Aktivita
5
zář 25
22242
3
srp 25
3257
1
kvě 25
3105
1
dub 25
4077
1
dub 25
4942