콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
질문이 마감되었습니다 이유 : not enough information given to provide help
작성자 Jodie Beernaut 있음 2024년 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?

아바타
취소
관련 게시물 답글 화면 활동
3
8월 25
2538
1
5월 25
2598
1
4월 25
3568
1
4월 25
4418
1
4월 25
1879