Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Schvalovania
    • IoT
    • VoIP
    • Znalosti
    • 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 Managament
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and 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
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Help

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

  • CRM
  • e-Commerce
  • Účtovníctvo
  • Sklady
  • PoS
  • Projektové riadenie
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

Make field readonly after save it and only user creator and administrator can edit it.

Odoberať

Get notified when there's activity on this post

This question has been flagged
fieldreadonlybuttonsOdooStudio
4 Replies
4090 Zobrazenia
Avatar
azlam

Hi...


i'm using Odoo Studio 17 , and make form for Jobs Report. For now, if i click save (icon cloud save), the form is still can edit by every user.

how to make it readonly for other user and only me can edit it ?


or 


how to make all fields in the form to be readonly after it save and how to make an EDIT & SAVE button for change it.


Thank you

0
Avatar
Zrušiť
Avatar
azlam
Autor Best Answer

Thank you for all answer but i'm sorry i can mention or reply becuase new user in this forum.

The poin is i must create new user GROUP :

1. make access right full permission 

2. creat record rules for set other user only read my record and can not edit.


i'm still dont understand about domain while i create new record rules for point no. 2 above. i try using here :

Record Rules Name : Jobs Report Team

domain : [(1, '=', 1)] and accest right is checkils only in READ

the result is other user can see my record ✅ but they still can edit. ❌


i try others :


Record Rules Name : Jobs Report Team

domain : [('create_uid', '=', user.id)] and accest right is checkils only in READ

the result is other user can not see my record. ❌


please advice me for make all user can view all records but only owner record can edit it.

0
Avatar
Zrušiť
Niyas Raphy (Walnut Software Solutions)

[('create_uid', '=', user.id)] after applying the domain it is expected for the user to see only his records

Avatar
Niyas Raphy (Walnut Software Solutions)
Best Answer

Hi,
its good to implement the record rules for you model. You can design as follows by expecting there is two levels of users permission, lets say User in Jobs Report and Administrator in Jobs report.

* So create two user groups, which can be done from groups menu
* Add record rules for the both the groups for the model
* For user grand only permission to see his own records
* Administrator of the group can see all the record

Inside the rule, adjust the domain so that user will see his created records and admin will see all

Thanks

0
Avatar
Zrušiť
Avatar
Vinsinfo Pvt Ltd
Best Answer

Hi

You can make your form uneditable once the form is created by changing the view properties in Studio.

Steps:

  1. Get into the form and click the Studio icon.
  2. Click the View tab in the top left corner of the Studio screen and uncheck the Can Edit option.


This will make the form uneditable for all users once the form is created.

If you want to make the form read-only for other users but editable by the owner, then change the user access for that module to "User: Own Documents Only" in Settings -> Users -> [the user you want to restrict].


Thanks.



0
Avatar
Zrušiť
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Best Answer

Hi,

To make a form readonly for other users and editable only for you in Odoo Studio 17, you'll need to implement access rights and record rules. For that, you need to create a new user group.Then, modify the model's access rights to give full permissions to this group. Create a record rule that allows only the creator to edit the records. Adjust other users' access rights to read-only. Finally, update your form view in Odoo Studio to include a domain filter that shows only records created by the current user. This approach ensures that you alone can edit the form while others can view it but not make changes.

Hope it helps.

0
Avatar
Zrušiť
Enjoying the discussion? Don't just read, join in!

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

Registrácia
Related Posts Replies Zobrazenia Aktivita
Set readonly on a button
readonly buttons
Avatar
Avatar
2
mar 15
12304
Odoo Studio - Send Email Button Include Pdf report
buttons OdooStudio SendEmails odooonline
Avatar
0
júl 24
2007
Change Base Field Properties in a New Module: Solved
module field readonly basefield
Avatar
Avatar
Avatar
Avatar
Avatar
4
jan 23
18124
How to define a read only field
field qweb readonly odooV8
Avatar
Avatar
Avatar
5
feb 16
9687
Read only fields on products and customers in v7?
field user customer readonly
Avatar
Avatar
Avatar
2
mar 15
4173
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة 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 je sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

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