Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
3274 Weergaven

I backing up my database from my VPS, then restore it to my local database.


But, I getting this error after users login:

ValueError: Invalid field ir.ui.menu.restrict_user_ids in leaf ('restrict_user_ids', 'not in', 2) - - -

This is the full log of the error:

https://paste.opensuse.org/93283853

I have tried upgrade all of my modules using this command:
./odoo-bin -c debian/odoo.conf -d dbname -u all

But still getting the same error.


So, how should I do to fix this problem?, is there anyone facing this issue before?


Thanks,

Tri


Avatar
Annuleer
Auteur Beste antwoord

I solved this by going to ir.rule models, then find all domain_force that contain restrict_user_ids in ir.rule.

Go tou your postgree database, then select your database.


Then run this query:


SELECT * FROM public.ir_rule WHERE domain_force LIKE '%restrict_user_ids%';

If we found it, then delete it:


DELETE FROM public.ir_rule WHERE domain_force LIKE '%restrict_user_ids%';



then upgrade all modules using this command:


./odoo-bin -c debian/odoo.conf -d dbname -u all

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
5
nov. 22
3751
0
mrt. 22
2926
0
feb. 22
2305
0
dec. 21
1829
0
nov. 21
1627