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

Messages Unavailable to User regardless of permission

Abonare

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

Această întrebare a fost marcată
permissionscalendar.eventmail.messageodoo9
6467 Vizualizări
Imagine profil
David Todd

In our Odoo 9 installation (hosted on a Debian 8 server), we have a use-case where we need to access the Messages stored by the system (Settings->Technical->Email->Messages if in debug mode). This has been made available to our normal users through use of a window action. I have one user who has very high permissions in the system, yet every time this user visits the Messages page, they get the following error.

The requested operation cannot be completed due to security restrictions. Please contact your system administrator.
(Document type: calendar.event, Operation: read)

The web console logs a trackback as well:

Server application error {"message":"Odoo Server Error","code":200,"data":{"debug":"Traceback (most recent call last):\n File \"/usr/lib/python2.7/dist-packages/openerp/http.py\", line 605, in _handle_exception\n return super(JsonRequest, self)._handle_exception(exception)\n File \"/usr/lib/python2.7/dist-packages/openerp/http.py\", line 642, in dispatch\n result = self._call_function(**self.params)\n File \"/usr/lib/python2.7/dist-packages/openerp/http.py\", line 316, in _call_function\n return checked_call(self.db, *args, **kwargs)\n File \"/usr/lib/python2.7/dist-packages/openerp/service/model.py\", line 118, in wrapper\n return f(dbname, *args, **kwargs)\n File \"/usr/lib/python2.7/dist-packages/openerp/http.py\", line 309, in checked_call\n result = self.endpoint(*a, **kw)\n File \"/usr/lib/python2.7/dist-packages/openerp/http.py\", line 893, in __call__\n return self.method(*args, **kw)\n File \"/usr/lib/python2.7/dist-packages/openerp/http.py\", line 471, in response_wrap\n response = f(*args, **kw)\n File \"/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py\", line 832, in search_read\n return self.do_search_read(model, fields, offset, limit, domain, sort)\n File \"/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py\", line 860, in do_search_read\n length = Model.search_count(domain, request.context)\n File \"/usr/lib/python2.7/dist-packages/openerp/http.py\", line 998, in proxy\n result = meth(cr, request.uid, *args, **kw)\n File \"/usr/lib/python2.7/dist-packages/openerp/api.py\", line 238, in wrapper\n return old_api(self, *args, **kwargs)\n File \"/usr/lib/python2.7/dist-packages/openerp/models.py\", line 1634, in search_count\n res = self.search(cr, user, args, context=context, count=True)\n File \"/usr/lib/python2.7/dist-packages/openerp/api.py\", line 238, in wrapper\n return old_api(self, *args, **kwargs)\n File \"/usr/lib/python2.7/dist-packages/openerp/addons/calendar/calendar.py\", line 1746, in search\n return super(mail_message, self).search(cr, uid, args, offset=offset, limit=limit, order=order, context=context, count=count)\n File \"/usr/lib/python2.7/dist-packages/openerp/api.py\", line 238, in wrapper\n return old_api(self, *args, **kwargs)\n File \"/usr/lib/python2.7/dist-packages/openerp/models.py\", line 1658, in search\n return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)\n File \"/usr/lib/python2.7/dist-packages/openerp/api.py\", line 238, in wrapper\n return old_api(self, *args, **kwargs)\n File \"/usr/lib/python2.7/dist-packages/openerp/api.py\", line 342, in old_api\n result = method(recs, *args, **kwargs)\n File \"/usr/lib/python2.7/dist-packages/openerp/addons/mail/models/mail_message.py\", line 661, in _search\n allowed_ids = self._find_allowed_doc_ids(model_ids)\n File \"/usr/lib/python2.7/dist-packages/openerp/api.py\", line 236, in wrapper\n return new_api(self, *args, **kwargs)\n File \"/usr/lib/python2.7/dist-packages/openerp/addons/mail/models/mail_message.py\", line 597, in _find_allowed_doc_ids\n allowed_ids |= self._find_allowed_model_wise(doc_model, doc_dict)\n File \"/usr/lib/python2.7/dist-packages/openerp/api.py\", line 236, in wrapper\n return new_api(self, *args, **kwargs)\n File \"/usr/lib/python2.7/dist-packages/openerp/api.py\", line 478, in new_api\n result = method(self._model, cr, uid, *args, **old_kwargs)\n File \"/usr/lib/python2.7/dist-packages/openerp/addons/calendar/calendar.py\", line 1753, in _find_allowed_model_wise\n for virtual_id in self.pool[doc_model].get_recurrent_ids(cr, uid, doc_dict.keys(), [], order=order, context=context):\n File \"/usr/lib/python2.7/dist-packages/openerp/api.py\", line 238, in wrapper\n return old_api(self, *args, **kwargs)\n File \"/usr/lib/python2.7/dist-packages/openerp/addons/calendar/calendar.py\", line 1153, in get_recurrent_ids\n if not ev.recurrency or not ev.rrule:\n File \"/usr/lib/python2.7/dist-packages/openerp/fields.py\", line 800, in __get__\n return record._cache[self]\n File \"/usr/lib/python2.7/dist-packages/openerp/models.py\", line 6089, in __getitem__\n return value.get() if isinstance(value, SpecialValue) else value\n File \"/usr/lib/python2.7/dist-packages/openerp/fields.py\", line 38, in get\n raise self.exception\nAccessError: (u'The requested operation cannot be completed due to security restrictions. Please contact your system administrator.\\n\\n(Document type: calendar.event, Operation: read)', None)\n","exception_type":"access_error","message":"The requested operation cannot be completed due to security restrictions. Please contact your system administrator.\n\n(Document type: calendar.event, Operation: read)\nNone","name":"openerp.exceptions.AccessError","arguments":["The requested operation cannot be completed due to security restrictions. Please contact your system administrator.\n\n(Document type: calendar.event, Operation: read)",null]}}

Looking at the trackback (This event doesn't get logged, even when the server is running with a debug log level), it appears to be checking which message IDs the user is allowed to access. As this is an administrative user, they should always have access to all messages as I do. The user account is exactly the same as mine, yet only that account experiences these problems.

What I've done so far:

  • Changed the permissions of the user

  • Removed the user all together and recreated it

  • Created access rules to specifically allow groups the user is in full access to calendar.event

  • Disabled all record rules relating to calendar.event and mail.message

  • Enabled Portal group on the user - This only allowed viewing of a couple messages, but not the ones we're interested in

  • Granting user to every option available on user page while in technical mode

All of these have resulted in no success. Would anyone have some ideas to point me in the right direction to get this working? This user MUST have an account in the software that works

1
Imagine profil
Abandonează
David Todd
Autor

I should also say that I don't want to go into these modules and remove the check. This isn't beneficial as it would remove a lot of the changes we've made through the interface (we're working on moving to a custom module for those changes, but that's a ways off)

David Todd
Autor

Apparently I can't update this post... UPDATE: I found what appears to be the cause of the issue, though I'm still quite confused. This error occurs if the user is set as a manager in Project and I'm apparently the exception because my account is set as a Project Manager, and I created an account with that as its only permission (that bore my name + test) and it worked. Creating the other user doesn't work however.

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
mail.message create send always a email, Can I change it?
email create send mail.message odoo9
Imagine profil
Imagine profil
1
feb. 24
7610
how can i give anonymous user as a group some permission in odoo? Rezolvat
permissions
Imagine profil
Imagine profil
Imagine profil
2
mar. 25
6683
Calendar.event user_id to be user_id of the related document
calendar.event
Imagine profil
0
mai 24
2442
Invite new users
mail.message
Imagine profil
Imagine profil
Imagine profil
Imagine profil
4
ian. 24
14683
How to get data n view using custom widget in odoo 9
odoo9
Imagine profil
0
sept. 23
2780
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