Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
4394 Widoki

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! :) 

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
sie 23
3158
0
sie 23
2577
1
sie 23
1721
2
lip 24
1409
1
sie 23
2421