Skip to Content
मेन्यू
This question has been flagged
The question has been closed for reason: not enough information given to provide help
by Jodie Beernaut on मंगलवार 02 अप्रैल 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
Discard
Related Posts Replies Views Activity
3
अग॰ 25
2238
1
मई 25
2511
1
अप्रैल 25
3499
1
अप्रैल 25
4329
1
अप्रैल 25
1801