Skip to Content
Odoo Menu
  • Zaloguj się
  • Wypróbuj za darmo
  • Aplikacje
    Finanse
    • Księgowość
    • Fakturowanie
    • Wydatki
    • Arkusz kalkulacyjny (BI)
    • Dokumenty
    • Podpisy
    Sprzedaż
    • CRM
    • Sprzedaż
    • PoS Sklep
    • PoS Restauracja
    • Subskrypcje
    • Wypożyczalnia
    Strony Internetowe
    • Kreator Stron Internetowych
    • eCommerce
    • Blog
    • Forum
    • Czat na Żywo
    • eLearning
    Łańcuch dostaw
    • Magazyn
    • Produkcja
    • PLM
    • Zakupy
    • Konserwacja
    • Jakość
    Zasoby Ludzkie
    • Pracownicy
    • Rekrutacja
    • Urlopy
    • Ocena pracy
    • Polecenia Pracownicze
    • Flota
    Marketing
    • Marketing Społecznościowy
    • E-mail Marketing
    • SMS Marketing
    • Wydarzenia
    • Automatyzacja Marketingu
    • Ankiety
    Usługi
    • Projekt
    • Ewidencja czasu pracy
    • Usługi Terenowe
    • Helpdesk
    • Planowanie
    • Spotkania
    Produktywność
    • Dyskusje
    • Zatwierdzenia
    • IoT
    • VoIP
    • Baza wiedzy
    • WhatsApp
    Aplikacje trzecich stron Studio Odoo Odoo Cloud Platform
  • Branże
    Sprzedaż detaliczna
    • Księgarnia
    • Sklep odzieżowy
    • Sklep meblowy
    • Sklep spożywczy
    • Sklep z narzędziami
    • Sklep z zabawkami
    Żywienie i hotelarstwo
    • Bar i Pub
    • Restauracja
    • Fast Food
    • Pensjonat
    • Dystrybutor napojów
    • Hotel
    Agencja nieruchomości
    • Agencja nieruchomości
    • Biuro architektoniczne
    • Budowa
    • Zarządzanie nieruchomościami
    • Ogrodnictwo
    • Stowarzyszenie właścicieli nieruchomości
    Doradztwo
    • Biuro księgowe
    • Partner Odoo
    • Agencja marketingowa
    • Kancelaria prawna
    • Agencja rekrutacyjna
    • Audyt i certyfikacja
    Produkcja
    • Tekstylia
    • Metal
    • Meble
    • Jedzenie
    • Browar
    • Prezenty firmowe
    Zdrowie & Fitness
    • Klub sportowy
    • Salon optyczny
    • Centrum fitness
    • Praktycy Wellness
    • Apteka
    • Salon fryzjerski
    Transakcje
    • Złota rączka
    • Wsparcie Sprzętu IT
    • Systemy energii słonecznej
    • Szewc
    • Firma sprzątająca
    • Usługi HVAC
    Inne
    • Organizacja non-profit
    • Agencja Środowiskowa
    • Wynajem billboardów
    • Fotografia
    • Leasing rowerów
    • Sprzedawca oprogramowania
    Przeglądaj wszystkie branże
  • Community
    Ucz się
    • Samouczki
    • Dokumentacja
    • Certyfikacje
    • Szkolenie
    • Blog
    • Podcast
    Pomóż w nauce innym
    • Program Edukacyjny
    • Scale Up! Gra biznesowa
    • Odwiedź Odoo
    Skorzystaj z oprogramowania
    • Pobierz
    • Porównaj edycje
    • Wydania
    Współpracuj
    • Github
    • Forum
    • Wydarzenia
    • Tłumaczenia
    • Zostań partnerem
    • Usługi dla partnerów
    • Zarejestruj swoją firmę rachunkową
    Skorzystaj z usług
    • Znajdź partnera
    • Znajdź księgowego
    • Spotkaj się z doradcą
    • Usługi wdrożenia
    • Opinie klientów
    • Wsparcie
    • Aktualizacje
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Zaplanuj demo
  • Cennik
  • Pomoc

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

  • CRM
  • e-Commerce
  • Księgowość
  • Zapasy
  • PoS
  • Projekt
  • MRP
All apps
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Pomoc

Allow users to change their own data

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
configurationhr
3 Odpowiedzi
930 Widoki
Awatar
David Preuss

I have a problem in understanding access rights in Odoo 18 Community. Following is the situation:

I have users that are linked to employees. I want the users to be able to change their own private data for example the emergency contact. 

When activating the option in the employee settings menue, and checking with a test user, I found a few things that I do not understand.

1. The employee can also edit their department, approver etc. which is a bit weird as this is not "their" data.

2. I also saw that the user can change the company details which also seems weird as I don't want a normal employee being able to change contact details or VAT numbers, address of the company (which I guess is related to the standard data that has write permissions for internal users.)

My question is: 

  • What am I misunderstanding or doing wrong possibly?
  • If the behavior is as expected (which I can't seriously believe), how can I restrict access to company details (I tried already removing write access on standard data which did not yield a result) and give write access to own data, basically the tab private information in the users profile but not the work related information?

Thank you for your help

David


0
Awatar
Odrzuć
Awatar
Gon Garcia
Najlepsza odpowiedź

Hello! until a better answer arrives, I'd suggest checking the permisions at Settings - General settings - "Manage Users" 


through there you can edit "USERS", which is not the same as employees and Contacts.
to give them more or less permissons to edit, you need to check your users and groups access rights. 


Those are a bit tricky. I'd suggest having a look at:
https://www.odoo.com/documentation/18.0/applications/general/users/access_rights.html


0
Awatar
Odrzuć
Awatar
Cybrosys Techno Solutions Pvt.Ltd
Najlepsza odpowiedź

Hi,


Why employees can edit department, approvers, and company data


* When you give an employee’s user permission to edit their own record, Odoo applies the general “write” rights on the hr.employee model.

* By default, this model has no distinction between private information (emergency contact, bank account, etc.) and work-related information (department, manager, job position). Both are just fields of the same model. That’s why users suddenly see and can edit fields you don’t want them to.

* The same applies to the res.company model: internal users often get write access by default to company contact details, which is why normal employees can change company VAT, phone number, or address.


How to solve it

To achieve your requirement (employees edit their private data, but not work/company details), you need to refine access control:


1- Record Rules:

Create a rule so that employees can only see/write their own employee record (['|',('user_id','=',user.id),('address_home_id.user_id','=',user.id)]).


2- Field-level security (requires customization):

In Odoo Community, you can’t natively restrict editing certain fields only. That feature (field-level ACLs) is more present in Enterprise + Studio. In Community, the workaround is to hide or readonly fields with groups in views.

Example: make the “Department”, “Manager”, “Company” fields attrs="{'readonly': [('id','!=',user.employee_id.id)]}" or restrict with groups_id.


3- Remove company write access:

Go to Settings → Technical → Security → Access Control Lists and adjust permissions on the res.company model so normal employees don’t have write rights. Usually, only “Settings” users should be able to edit company info.



You’re not doing anything wrong, it’s just that Odoo 18 CE doesn’t separate private vs work fields in the hr.employee model. To fix it, you’ll need to add a record rule limiting employees to their own record and adjust views/security groups so they can edit only private fields while company and work-related fields stay read-only.


Hope it helps.

0
Awatar
Odrzuć
Awatar
David Preuss
Autor Najlepsza odpowiedź

Dear Gon,

thanks for the advice. This is basically the route that I have taken before. 

The Test User has no rights except his own ones in the profile. Yet he is able to change the mentioned data. The individual access rights and record rules in the groups setting have not been touched by me so far.

Thanks a lot anyway for the URL to the documentation.

0
Awatar
Odrzuć
Podoba Ci się ta dyskusja? Dołącz do niej!

Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!

Zarejestruj się
Powiązane posty Odpowiedzi Widoki Czynność
Odoo Integration with Zkteco
configuration hr
Awatar
Awatar
1
lis 25
273
I can't find hr_payroll in addons when I install Odoo 18 locally Rozwiązane
configuration hr
Awatar
Awatar
1
kwi 25
1402
Automating Attendance Correction by Manager
configuration hr
Awatar
0
lis 24
1309
Managing default users' permissions v16 - v18
configuration hr service
Awatar
0
kwi 25
17
Linking employees to user accounts Rozwiązane
configuration accounting hr
Awatar
Awatar
1
mar 25
2053
Społeczność
  • Samouczki
  • Dokumentacja
  • Forum
Open Source
  • Pobierz
  • Github
  • Runbot
  • Tłumaczenia
Usługi
  • Hosting Odoo.sh
  • Wsparcie
  • Aktualizacja
  • Indywidualne rozwiązania
  • Edukacja
  • Znajdź księgowego
  • Znajdź partnera
  • Zostań partnerem
O nas
  • Nasza firma
  • Zasoby marki
  • Skontaktuj się z nami
  • Oferty pracy
  • Wydarzenia
  • Podcast
  • Blog
  • Klienci
  • Informacje prawne • Prywatność
  • Bezpieczeństwo Odoo
الْعَرَبيّة 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 to pakiet aplikacji biznesowych typu open source, które zaspokoją wszystkie potrzeby Twojej firmy: CRM, eCommerce, księgowość, inwentaryzacja, punkt sprzedaży, zarządzanie projektami itp.

Unikalną wartością Odoo jest to, że jest jednocześnie bardzo łatwe w użyciu i w pełni zintegrowane.

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