Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
La domanda è stata chiusa con motivazione: not enough information given to provide help
da Jodie Beernaut - 02/04/2024 09:39:22
1234 Visualizzazioni
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
Abbandona
Post correlati Risposte Visualizzazioni Attività
3
ago 25
2250
1
mag 25
2517
1
apr 25
3502
1
apr 25
4335
1
apr 25
1803