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! :)
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
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
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
1
thg 8 23
|
3111 | ||
|
0
thg 8 23
|
2551 | ||
|
1
thg 8 23
|
1708 | ||
|
2
thg 7 24
|
1387 | ||
|
1
thg 8 23
|
2389 |