跳至內容
選單
此問題已被標幟
問題已關閉 原因: not enough information given to provide help
Jodie Beernaut2024年04月02日 09時39分22秒
1216 瀏覽次數
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?

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
8月 25
2224
1
5月 25
2505
1
4月 25
3496
1
4月 25
4323
1
4月 25
1799