Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
A pergunta foi fechada por motivo: not enough information given to provide help
por Jodie Beernaut em 02/04/2024 09:39:22
1567 Visualizações
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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
5
set. 25
23478
3
ago. 25
3533
1
mai. 25
3427
1
abr. 25
4315
1
abr. 25
5121