Skip to Content
Menu
This question has been flagged
The question has been closed priežastis: not enough information given to provide help
by Jodie Beernaut nuo 2024-04-02 09:39:22
1470 Rodiniai
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?

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
5
rugs. 25
22321
3
rugp. 25
3265
1
geg. 25
3119
1
bal. 25
4092
1
bal. 25
4959