Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
4353 Weergaven

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

Avatar
Annuleer
Beste antwoord

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

Avatar
Annuleer
Beste antwoord

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

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
aug. 23
3098
0
aug. 23
2535
1
aug. 23
1699
2
jul. 24
1354
1
aug. 23
2383