Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Estate Managament
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

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

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

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

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
odooOdoo13.0
4 Răspunsuri
25654 Vizualizări
Imagine profil
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
Imagine profil
Abandonează
Madara
Autor

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']

Imagine profil
Begineer
Cel mai bun răspuns

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
Imagine profil
Abandonează
Imagine profil
Ashish Hirpara
Cel mai bun răspuns

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
Imagine profil
Abandonează
Imagine profil
Carlos Aguda
Cel mai bun răspuns

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
Imagine profil
Abandonează
Imagine profil
Naitik Vithalani
Cel mai bun răspuns

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
Imagine profil
Abandonează
Enjoying the discussion? Don't just read, join in!

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

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
Add New Operation Type in Warehouse Rezolvat
odoo Odoo13.0
Imagine profil
Imagine profil
Imagine profil
2
dec. 24
5327
Unable to use TensorFlow in Odoo module Rezolvat
odoo Odoo13.0
Imagine profil
Imagine profil
1
nov. 25
4179
how to get values from a res config settings field Rezolvat
odoo Odoo13.0
Imagine profil
Imagine profil
Imagine profil
2
apr. 23
20066
Getting password reset invitation mail for inactive user in Odoo13? Rezolvat
odoo Odoo13.0
Imagine profil
Imagine profil
1
mar. 23
3411
Asset value depreciated but it's stage still running and can't dispose
odoo Odoo13.0
Imagine profil
0
dec. 21
3325
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة 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 este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

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