콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
3262 화면

hello guys. i want to ask some questions about SQL constraints when importing data in odoo

let's say i have 1 field (name) and I've added SQL constraints unique to that field.. what happens if we importing 2 rows with the same name?


for example:
rows 1: test123
rows 2: test123


do the validation sql constraints pop up shows or we keep importing the data but only the last row (row 2)? thanks


아바타
취소
베스트 답변

Hi,
The SQL constraints do work while importing data.
Regards

아바타
취소
베스트 답변

You can check importing with sample date.

I think import will fail due to constraint error. Once remove duplicate row, then only import success.

아바타
취소
관련 게시물 답글 화면 활동
@api.constrains 해결 완료
2
12월 23
3384
0
6월 21
2694
1
11월 20
4527
2
3월 24
5739
1
7월 23
1731