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

When I update the modules I get this error message: 
Table 'crm_lead': unable to set NOT NULL on column 'partner_id'

What should I do to prevent it?
 
Thank you in advance! :) 

아바타
취소
베스트 답변

Hi,

Probably you have some records in the database, which violates this constrains, ie, there will be few records in db that doesn't have a partner set in it.

If you need to remove this message from log, update existing leads in the db by setting a partner to it. Or move the required attribute you have added in the model level or to the view level.


Thanks

아바타
취소
베스트 답변

Hi,

There is no required or NOT NULL on crm.lead's partner_id field in Odoo default code. So you probably have custom modules changing that.

Hope it helps

아바타
취소
관련 게시물 답글 화면 활동
1
8월 23
3163
0
8월 23
2579
1
8월 23
1723
2
7월 24
1411
1
8월 23
2422