Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
4173 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
srp 23
2870
0
srp 23
2377
1
srp 23
1472
2
čvc 24
1156
1
srp 23
2231