Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
3283 มุมมอง

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


อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
odoo application update แก้ไขแล้ว
5
พ.ย. 22
3756
0
มี.ค. 22
2929
0
ก.พ. 22
2308
0
ธ.ค. 21
1831
0
พ.ย. 21
1627