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

I tried adding a model constraint of type 'u' from Settings -> Database Structure -> Model constraints to res.partner's base module. But there was no way to specify column/field name to which the constraint should apply ?

I hope there is a way to add constraint without altering any Odoo code. 

Any suggestions ?

아바타
취소

I think there is no option to add constraint from back end.

작성자

Will adding/updating ir.model.constraint work without creating any other issue ?

베스트 답변

Hi

To add this you must go to the code

It can not be increased by the user interface

because you deserve to restart the server odoo 

look this code 

https://stackoverflow.com/questions/31513326/what-is-the-correct-format-to-use-unique-in-sql-constraints-in-openerp

아바타
취소
관련 게시물 답글 화면 활동
4
3월 15
11866
1
3월 15
7724
2
8월 25
3039
1
2월 22
3611
1
11월 24
19969