跳至内容
菜单
此问题已终结
该问题已被关闭 原因: not enough information given to provide help
Jodie Beernaut2024年04月02日 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?

形象
丢弃
相关帖文 回复 查看 活动
1
5月 25
2482
1
4月 25
3490
1
4月 25
4319
1
4月 25
1793
4
3月 25
6915