Ir al contenido
Odoo Menú
  • Iniciar sesión
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • PdV para tiendas
    • PdV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en vivo
    • eLearning
    Cadena de suministro
    • Inventario
    • Manufactura
    • PLM
    • Compras
    • Mantenimiento
    • Calidad
    Recursos humanos
    • Empleados
    • Reclutamiento
    • Vacaciones
    • Evaluaciones
    • Referencias
    • Flotilla
    Marketing
    • Redes sociales
    • Marketing por correo
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyectos
    • Registro de horas
    • Servicio externo
    • Soporte al cliente
    • Planeación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Artículos
    • WhatsApp
    Aplicaciones externas Studio de Odoo Plataforma de Odoo en la nube
  • Industrias
    Venta minorista
    • Librería
    • Tienda de ropa
    • Mueblería
    • Tienda de abarrotes
    • Ferretería
    • Juguetería
    Alimentos y hospitalidad
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidora de bebidas
    • Hotel
    Bienes inmuebles
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión de bienes inmuebles
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Firma contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Manufactura
    • Textil
    • Metal
    • Muebles
    • Comida
    • Cervecería
    • Regalos corporativos
    Salud y ejercicio
    • Club deportivo
    • Óptica
    • Gimnasio
    • Especialistas en bienestar
    • Farmacia
    • Peluquería
    Trades
    • Personal de mantenimiento
    • Hardware y soporte de TI
    • Sistemas de energía solar
    • Zapateros y fabricantes de calzado
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin fines de lucro
    • Agencia para la protección del medio ambiente
    • Alquiler de anuncios publicitarios
    • Fotografía
    • Alquiler de bicicletas
    • Distribuidor de software
    Descubre todas las industrias
  • Odoo Community
    Aprende
    • Tutoriales
    • Documentación
    • Certificaciones
    • Capacitación
    • Blog
    • Podcast
    Fortalece la educación
    • Programa educativo
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtén el software
    • Descargar
    • Compara ediciones
    • Versiones
    Colabora
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Conviértete en partner
    • Servicios para partners
    • Registra tu firma contable
    Obtén servicios
    • Encuentra un partner
    • Encuentra un contador
    • Contacta a un consultor
    • Servicios de implementación
    • Referencias de clientes
    • Soporte
    • Actualizaciones
    GitHub YouTube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicita una demostración
  • Precios
  • Ayuda

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

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyectos
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

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

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
fieldreadonlybuttonsOdooStudio
4 Respuestas
4086 Vistas
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
Descartar
Avatar
azlam
Autor Mejor respuesta

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
Descartar
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)
Mejor respuesta

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
Descartar
Avatar
Vinsinfo Pvt Ltd
Mejor respuesta

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
Descartar
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Mejor respuesta

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
Descartar
¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Registrarse
Publicaciones relacionadas Respuestas Vistas Actividad
Set readonly on a button
readonly buttons
Avatar
Avatar
2
mar 15
12302
Odoo Studio - Send Email Button Include Pdf report
buttons OdooStudio SendEmails odooonline
Avatar
0
jul 24
2000
Change Base Field Properties in a New Module: Resuelto
module field readonly basefield
Avatar
Avatar
Avatar
Avatar
Avatar
4
ene 23
18122
How to define a read only field
field qweb readonly odooV8
Avatar
Avatar
Avatar
5
feb 16
9684
Read only fields on products and customers in v7?
field user customer readonly
Avatar
Avatar
Avatar
2
mar 15
4173
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento en Odoo.sh
  • Soporte
  • Actualizaciones del software
  • Desarrollos personalizados
  • Educación
  • Encuentra un contador
  • Encuentra un partner
  • Conviértete en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contáctanos
  • Empleos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Legal • Privacidad
  • Seguridad
الْعَرَبيّة 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 es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y estar totalmente integrado.

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