hide menu based on current company in odoo

Job ID: 33698712

Budget: $10 – $30 USD

I want to hide menus based on the current company the user he is in when he have multiple companies, I have already written some codes but I'm stock on one point where the computed field is not getting computed until I show it in the views and enter into the user
Related categories: Python Software Architecture ERP Odoo