跳至内容
菜单
此问题已终结
2 回复
4351 查看

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
3097
0
8月 23
2533
1
8月 23
1698
2
7月 24
1351
1
8月 23
2381