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

Sorry, you are not allowed to access documents of type 'Unknown' (_unknown). No group currently allows this operation. - (Operation: read, User: 2)

Subscribe

Get notified when there's activity on this post

This question has been flagged
odooOdoo13.0
4 Replies
25591 Views
Avatar
Madara

hi all,


I have created a new model with two fields and gave permissions too in the CSV file but I am able to access only one field of that model not able to access the second field of that model 

code:


class ChangeUserAssignedd(models.TransientModel):

    _name = 'change.user.assignedd'


    user_id = fields.Many2one('res.users',string="Assigned To")

    project_id = fields.Many2one('project.project',string="Project")


csv file :

access_change_user_assignedd_user,change.user.assignedd,model_change_user_assignedd,base.group_user,1,1,1,1

access_change_user_assignedd_manager,change.user.assignedd,model_change_user_assignedd,base.group_erp_manager,1,1,1,1


i can access user_id field but not the project field when I try to access its showing this error:


Sorry, you are not allowed to access documents of type 'Unknown' (_unknown). No group currently allows this operation. - (Operation: read, User: 2)


 



3
Avatar
Discard
Madara
Author

those objects relation is showing as unknown

Begineer

Hi Guna,

The problem is dependency error

In your module, manifest file add this in depends,

'depends': ['project']

Avatar
Begineer
Best Answer

Hi Guna,

        To access the project.project model in your custom module , you should give access in the csv of your custom module for the user related to that group and as i said don't forget to give depends in your manifest file

access_project_project_bu      project.project      project.model_project_project      base.group_user     1    0    0    0

Check this if you have doubts in creating access rights for custom modules and also inheriting for default modules
https://www.odoo.yenthevg.com/creating-security-groups-odoo/






0
Avatar
Discard
Avatar
Ashish Hirpara
Best Answer

To access the project_id field in the ChangeUserAssignedd model, you need to give the appropriate permissions to the group that you are using. In the CSV file, you have given the permissions for the base.group_user and base.group_erp_manager groups for the user_id field, but not for the project_id field. You need to add another line to the CSV file to give the appropriate permissions for the project_id field for the group that you want to use.

For example, if you want to give read and write access to the project_id field for the base.group_erp_manager group, you can add the following line to the CSV file:

access_change_user_assignedd_manager,change.user.assignedd,field_change_user_assignedd_project,base.group_erp_manager,1,1,1,1

This will give the base.group_erp_manager group read and write access to the project_id field in the ChangeUserAssignedd model. You can adjust the permissions as needed for your use case.

-1
Avatar
Discard
Avatar
Carlos Aguda
Best Answer

This could be also raised by a many2one field without comodel_name attribute set.

In your specific case it's clearly a dependency to module project issue.

-1
Avatar
Discard
Avatar
Naitik Vithalani
Best Answer

Does it seem like you created a new model 'TransientModel' which means you are trying to create a wizard object or a normal object?

If trying to create a normal object your need to create a class with 

class ChangeUserAssignedd(models.Model):

If trying to create a wizard object you do not need to provide a CSV file for access rights.

Please take quick look again at your code or explain in details or let me know in case of any further help.

Thanks.

-1
Avatar
Discard
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
Add New Operation Type in Warehouse Solved
odoo Odoo13.0
Avatar
Avatar
Avatar
2
Dec 24
5274
Unable to use TensorFlow in Odoo module Solved
odoo Odoo13.0
Avatar
Avatar
1
Nov 25
4140
how to get values from a res config settings field Solved
odoo Odoo13.0
Avatar
Avatar
Avatar
2
Apr 23
19974
Getting password reset invitation mail for inactive user in Odoo13? Solved
odoo Odoo13.0
Avatar
Avatar
1
Mar 23
3366
Asset value depreciated but it's stage still running and can't dispose
odoo Odoo13.0
Avatar
0
Dec 21
3294
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