Se rendre au contenu
Odoo Menu
  • Se connecter
  • Essai gratuit
  • Applications
    Finance
    • Comptabilité
    • Facturation
    • Notes de frais
    • Feuilles de calcul (BI)
    • Documents
    • Signature
    Ventes
    • CRM
    • Ventes
    • PdV Boutique
    • PdV Restaurant
    • Abonnements
    • Location
    Sites web
    • Site Web
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Chaîne d'approvisionnement
    • Inventaire
    • Fabrication
    • PLM
    • Achats
    • Maintenance
    • Qualité
    Ressources Humaines
    • Employés
    • Recrutement
    • Congés
    • Évaluations
    • Recommandations
    • Parc automobile
    Marketing
    • Marketing Social
    • E-mail Marketing
    • SMS Marketing
    • Événements
    • Marketing Automation
    • Sondages
    Services
    • Projet
    • Feuilles de temps
    • Services sur Site
    • Assistance
    • Planification
    • Rendez-vous
    Productivité
    • Discussion
    • Validations
    • Internet des Objets
    • VoIP
    • Connaissances
    • WhatsApp
    Applications tierces Odoo Studio Plateforme Cloud d'Odoo
  • Industries
    Commerce de détail
    • Librairie
    • Magasin de vêtements
    • Magasin de meubles
    • Épicerie
    • Quincaillerie
    • Magasin de jouets
    Food & Hospitality
    • Bar et Pub
    • Restaurant
    • Fast-food
    • Maison d’hôtes
    • Distributeur de boissons
    • Hôtel
    Immobilier
    • Agence immobilière
    • Cabinet d'architecture
    • Construction
    • Gestion immobilière
    • Jardinage
    • Association de copropriétaires
    Consultance
    • Cabinet d'expertise comptable
    • Partenaire Odoo
    • Agence Marketing
    • Cabinet d'avocats
    • Aquisition de talents
    • Audit & Certification
    Fabrication
    • Textile
    • Métal
    • Meubles
    • Alimentation
    • Brewery
    • Cadeaux d'entreprise
    Santé & Fitness
    • Club de sports
    • Opticien
    • Salle de fitness
    • Praticiens bien-être
    • Pharmacie
    • Salon de coiffure
    Trades
    • Bricoleur
    • Matériel informatique et support
    • Systèmes photovoltaïques
    • Cordonnier
    • Services de nettoyage
    • Services CVC
    Autres
    • Organisation à but non lucratif
    • Agence environnementale
    • Location de panneaux d'affichage
    • Photographie
    • Leasing de vélos
    • Revendeur de logiciel
    Browse all Industries
  • Communauté
    Apprenez
    • Tutoriels
    • Documentation
    • Certifications
    • Formation
    • Blog
    • Podcast
    Renforcer l'éducation
    • Programme éducatif
    • Business Game Scale-Up!
    • Rendez-nous visite
    Obtenir le logiciel
    • Téléchargement
    • Comparez les éditions
    • Versions
    Collaborer
    • Github
    • Forum
    • Événements
    • Traductions
    • Devenez partenaire
    • Services for Partners
    • Enregistrer votre cabinet comptable
    Nos Services
    • Trouver un partenaire
    • Trouver un comptable
    • Rencontrer un conseiller
    • Services de mise en œuvre
    • Références clients
    • Assistance
    • Mises à niveau
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obtenir une démonstration
  • Tarification
  • Aide

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

  • CRM
  • e-Commerce
  • Comptabilité
  • Inventaire
  • PoS
  • Projet
  • MRP
All apps
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Aide

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

S'inscrire

Recevez une notification lorsqu'il y a de l'activité sur ce poste

Cette question a été signalée
fieldreadonlybuttonsOdooStudio
4 Réponses
4112 Vues
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
Ignorer
Avatar
azlam
Auteur Meilleure réponse

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
Ignorer
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)
Meilleure réponse

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
Ignorer
Avatar
Vinsinfo Pvt Ltd
Meilleure réponse

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
Ignorer
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Meilleure réponse

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
Ignorer
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !

Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !

S'inscrire
Publications associées Réponses Vues Activité
Set readonly on a button
readonly buttons
Avatar
Avatar
2
mars 15
12326
Odoo Studio - Send Email Button Include Pdf report
buttons OdooStudio SendEmails odooonline
Avatar
0
juil. 24
2027
Change Base Field Properties in a New Module: Résolu
module field readonly basefield
Avatar
Avatar
Avatar
Avatar
Avatar
4
janv. 23
18145
How to define a read only field
field qweb readonly odooV8
Avatar
Avatar
Avatar
5
févr. 16
9704
Read only fields on products and customers in v7?
field user customer readonly
Avatar
Avatar
Avatar
2
mars 15
4177
Communauté
  • Tutoriels
  • Documentation
  • Forum
Open Source
  • Téléchargement
  • Github
  • Runbot
  • Traductions
Services
  • Hébergement Odoo.sh
  • Assistance
  • Migration
  • Développements personnalisés
  • Éducation
  • Trouver un comptable
  • Trouver un partenaire
  • Devenez partenaire
À propos
  • Notre société
  • Actifs de la marque
  • Contactez-nous
  • Emplois
  • Événements
  • Podcast
  • Blog
  • Clients
  • Informations légales • Confidentialité
  • Sécurité.
الْعَرَبيّة 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 est une suite d'applications open source couvrant tous les besoins de votre entreprise : CRM, eCommerce, Comptabilité, Inventaire, Point de Vente, Gestion de Projet, etc.

Le positionnement unique d'Odoo est d'être à la fois très facile à utiliser et totalement intégré.

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