コンテンツへスキップ
メニュー
この質問にフラグが付けられました
質問は終了しました 理由: not enough information given to provide help
次により: Jodie Beernaut on 2024年04月02日 09時39分22秒
1210 ビュー
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
2489
1
4月 25
3494
1
4月 25
4322
1
4月 25
1796
4
3月 25
6919