Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
คำถามนี้ถูกปิดแล้ว เนื่องจาก: not enough information given to provide help โดย Jodie Beernaut เมื่อ 02/04/2024 09:39:22
1463 มุมมอง
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?

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
5
ก.ย. 25
22282
3
ส.ค. 25
3261
1
พ.ค. 25
3112
1
เม.ย. 25
4087
1
เม.ย. 25
4947