Skip to Content
Odoo Menu
  • Log ind
  • Prøv gratis
  • Apps
    Økonomi
    • Bogføring
    • Fakturering
    • Udgifter
    • Regneark (BI)
    • Dokumenter
    • e-Signatur
    Salg
    • CRM
    • Salg
    • POS Butik
    • POS Restaurant
    • Abonnementer
    • Udlejning
    Hjemmeside
    • Hjemmesidebygger
    • e-Handel
    • Blog
    • Forum
    • LiveChat
    • e-Læring
    Forsyningskæde
    • Lagerbeholdning
    • Produktion
    • PLM
    • Indkøb
    • Vedligeholdelse
    • Kvalitet
    HR
    • Medarbejdere
    • Rekruttering
    • Fravær
    • Medarbejdersamtaler
    • Anbefalinger
    • Flåde
    Marketing
    • Markedsføring på sociale medier
    • E-mailmarketing
    • SMS-marketing
    • Arrangementer
    • Automatiseret marketing
    • Spørgeundersøgelser
    Tjenester
    • Projekt
    • Timesedler
    • Udkørende Service
    • Kundeservice
    • Planlægning
    • Aftaler
    Produktivitet
    • Dialog
    • Godkendelser
    • IoT
    • VoIP
    • Vidensdeling
    • WhatsApp
    Tredjepartsapps Odoo Studio Odoo Cloud-platform
  • Brancher
    Detailhandel
    • Boghandel
    • Tøjforretning
    • Møbelforretning
    • Dagligvarebutik
    • Byggemarked
    • Legetøjsforretning
    Mad og værtsskab
    • Bar og pub
    • Restaurant
    • Fastfood
    • Gæstehus
    • Drikkevareforhandler
    • Hotel
    Ejendom
    • Ejendomsmægler
    • Arkitektfirma
    • Byggeri
    • Ejendomsadministration
    • Havearbejde
    • Boligejerforening
    Rådgivning
    • Regnskabsfirma
    • Odoo-partner
    • Marketingbureau
    • Advokatfirma
    • Rekruttering
    • Audit & certificering
    Produktion
    • Tekstil
    • Metal
    • Møbler
    • Fødevareproduktion
    • Bryggeri
    • Firmagave
    Heldbred & Fitness
    • Sportsklub
    • Optiker
    • Fitnesscenter
    • Kosmetolog
    • Apotek
    • Frisør
    Håndværk
    • Handyman
    • IT-hardware og support
    • Solenergisystemer
    • Skomager
    • Rengøringsservicer
    • VVS- og ventilationsservice
    Andet
    • Nonprofitorganisation
    • Miljøagentur
    • Udlejning af billboards
    • Fotografi
    • Cykeludlejning
    • Softwareforhandler
    Gennemse alle brancher
  • Community
    Få mere at vide
    • Tutorials
    • Dokumentation
    • Certificeringer
    • Oplæring
    • Blog
    • Podcast
    Bliv klogere
    • Udannelselsesprogram
    • Scale Up!-virksomhedsspillet
    • Besøg Odoo
    Få softwaren
    • Download
    • Sammenlign versioner
    • Udgaver
    Samarbejde
    • Github
    • Forum
    • Arrangementer
    • Oversættelser
    • Bliv partner
    • Tjenester til partnere
    • Registrér dit regnskabsfirma
    Modtag tjenester
    • Find en partner
    • Find en bogholder
    • Kontakt en rådgiver
    • Implementeringstjenester
    • Kundereferencer
    • Support
    • Opgraderinger
    Github Youtube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Få en demo
  • Prissætning
  • Hjælp

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

  • CRM
  • e-Commerce
  • Bogføring
  • Lager
  • PoS
  • Projekt
  • MRP
All apps
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Hjælp

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

Tilmeld

Få besked, når der er aktivitet på dette indlæg

Dette spørgsmål er blevet anmeldt
odooOdoo13.0
4 Besvarelser
25482 Visninger
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
Kassér
Madara
Forfatter

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
Bedste svar

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
Kassér
Avatar
Ashish Hirpara
Bedste svar

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
Kassér
Avatar
Carlos Aguda
Bedste svar

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
Kassér
Avatar
Naitik Vithalani
Bedste svar

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
Kassér
Enjoying the discussion? Don't just read, join in!

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

Tilmeld dig
Related Posts Besvarelser Visninger Aktivitet
Add New Operation Type in Warehouse Løst
odoo Odoo13.0
Avatar
Avatar
Avatar
2
dec. 24
5210
Unable to use TensorFlow in Odoo module Løst
odoo Odoo13.0
Avatar
Avatar
1
nov. 25
4077
how to get values from a res config settings field Løst
odoo Odoo13.0
Avatar
Avatar
Avatar
2
apr. 23
19819
Getting password reset invitation mail for inactive user in Odoo13? Løst
odoo Odoo13.0
Avatar
Avatar
1
mar. 23
3292
Asset value depreciated but it's stage still running and can't dispose
odoo Odoo13.0
Avatar
0
dec. 21
3260
Community
  • Tutorials
  • Dokumentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Oversættelser
Tjenester
  • Odoo.sh-hosting
  • Support
  • Opgradere
  • Individuelt tilpasset udvikling
  • Uddannelse
  • Find en bogholder
  • Find en partner
  • Bliv partner
Om os
  • Vores virksomhed
  • Brandaktiver
  • Kontakt os
  • Stillinger
  • Arrangementer
  • Podcast
  • Blog
  • Kunder
  • Juridiske dokumenter • Privatlivspolitik
  • Sikkerhedspolitik
الْعَرَبيّة 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 er en samling open source-forretningsapps, der dækker alle dine virksomhedsbehov – lige fra CRM, e-handel og bogføring til lagerstyring, POS, projektledelse og meget mere.

Det unikke ved Odoo er, at systemet både er brugervenligt og fuldt integreret.

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