Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Menu item is not showing in existing module?

Subscribe

Get notified when there's activity on this post

This question has been flagged
odoo9.0
7 Replies
31122 Views
Avatar
naveen

Hi,

I have created and added one menu item (i.e complaint) to maintenance module,this maintenance module is located in Administrator user.In this administrator user the maintenance module complaint menu item is working..If I create separate user for maintenance module then compalaint manu item is not showing..Here I am not getting any error...Here is the code


<record id="asset_complaint_tree" model="ir.ui.view">

            <field name="name">Asset Complaint</field>

            <field name="model">asset.complaint</field>

            <field name="type">tree</field>

            <field name="arch" type="xml">

                <tree string="Complaints">

                    <field name="asset_id"/>

                    <field name="product_id"/>

                    <field name="no_of_defected_products"/>

                    <field name="state"/>

                </tree>

            </field>

        </record>

  

  <record model="ir.actions.act_window" id="asset_complaint_action">

  <field name="name">Asset Complaint</field>

  <field name="res_model">asset.complaint</field>

  <field name="view_mode">tree,form</field>

  <field name="target">current</field>

  </record>

  

    

 <menuitem id="asset_complaint_menu" name="Complaints" action="asset_complaint_action" parent="asset.menu_maintenance_assets"/>

0
Avatar
Discard
Sehrish

Create Access Control List for the user from which you are testing.

Sehrish

Look how ACL works: https://goo.gl/4jAhtH

Avatar
Niyas Raphy (Walnut Software Solutions)
Best Answer

Hi Naveen,

You have to give the access right to the menu and models. First you have to add a group to menu like this, group of the employee , you can change it accordingly

<menuitem id="asset_complaint_menu" 
name="Complaints" action="asset_complaint_action" 
parent="asset.menu_maintenance_assets" groups="base.group_user"/>

Then you have to add a csv like this,

id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink 
access_asset_complaint,access.asset.complaint,model_asset_complaint,base.group_user,1,1,1,1

Then this menu can be seen for the other users.

Thanks

9
Avatar
Discard
naveen
Author

Thanks Raphy, In that code where I have to add the csv

Niyas Raphy (Walnut Software Solutions)

You can add a folder named security, inside that create a file named "ir.model.access.csv" then add the csv inside it, then specify this in the openerp file like this,`" 'security/ir.model.access.csv',"

naveen
Author

In that file I have this code: id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink

access_mrp_account_invoice_id,account.invoice,sale_stock.model_account_invoice,mrp.group_mrp_manager,1,0,0,0

naveen
Author

I added groups to that code and already I have above ir.model.access.csv code. Even I am not able to see the menu item

Niyas Raphy (Walnut Software Solutions)

Activate developer mode, then go settings -> Users -> open the respective user and check whether he is manager in the mrp, if not make him as the manager

Avatar
wizardz
Best Answer

so for every new menuitem you add in odoo, you need to make a security file to declare, that all users can see that?

0
Avatar
Discard
Perman Atayev (peat)

Rather for every model that is connected to the menu action as far as I understand

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
Is there any module for manage test cases in odoo?
odoo9.0
Avatar
Avatar
1
Dec 24
6849
How to hide duplicate button inside form view Odoo 9
odoo9.0
Avatar
Avatar
Avatar
Avatar
3
Aug 24
7643
how to know the odoo master password? Solved
odoo9.0
Avatar
Avatar
Avatar
Avatar
Avatar
4
Jul 24
42619
Default value in form view Solved
odoo9.0
Avatar
Avatar
Avatar
Avatar
5
Apr 23
100884
odoo 9 theme installed in addson are missing from app Solved
odoo9.0
Avatar
Avatar
Avatar
3
Nov 22
5153
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now