تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
2077 أدوات العرض

Hi, sorry to bother you.
In a database there are 6 companies, 3 companies are from Mexico and 3 companies are from Colombia.
In this case, when you are in the Mexican company, sub menus of accounting reports that belong to Colombia appear.
How can I hide the sub menus and only show the ones that belong to their respective country?

I want to do this through a checkbox (Boolean field) if the company is Mexico hide the accounting reports of Colombia and only leave those of Mexico, in case the company is Colombia, hide the accounting reports that are from Mexico and only leave those from Colombia...
I want to do this through code, I already have the checkbox, but I don't know how to call the menus to hide them.
all this in odoo 15.
Again, sorry for the inconvenience.

الصورة الرمزية
إهمال
أفضل إجابة

Hi Andrian Porras,

I think its better to manage those with access rights instead of changing the code part as changing the code for this will be bit complex. You can create 2 groups one for Mexico and the other for Colombia and add the menus respectively.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
سبتمبر 24
888
0
مارس 23
1054
0
مارس 18
3168
0
يوليو 17
7295
1
نوفمبر 16
2409