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

Custom access permissions

Suscribirse

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

Se marcó esta pregunta
securitycustomizegroupspermissionsquickstart
2512 Vistas
Avatar
Guillermo Joaquín Urquidi Campuzano (gjuc)

At times, Odoo’s safety levels may not cover our customers' expectations. This may be due to previous experiences in dealing with security issues, or for various reasons that lead them to restrict certain information, either to their employees in general or to a specific group of them.


It can also happen that users have a function that requires viewing information from several areas but in a restricted way, this in Odoo may need permissions from two or more applications to cover with their activities. Many times this causes that some tabs are shown by default with the most basic permission so customers don’t like it.


I share with you a standard flow that does not need Studio, which will allow you to make some modifications to the views of different menus or even an entire module using groups.


  • Logic and tools
  • Use case
  • Good practices

Logic and tools
  1. Activate the developer mode
  2. Menu items


Use case

A customer requires to hide the product menu in the sales app and the whole inventory application for all their sales people so they cannot see the raw materials and their costs, and not be able to see the warehouse operations. They know the SKU of all of their products so they don’t need to check the catalog on Odoo.


They are assigned with the permission of "View only own documents" in sales and the “User” configuration for the inventory. This allows them to see the delivery order whenever they confirm a quotation, but the issue is that it enables the inventory module and this generates conflict with the customer permissions.


They require that they can only see the delivery order shown through the smart button in the sale order but the sales people cannot see the inventory operations.




These are the tabs that are allowed with those permissions.



As mentioned above, the customer requires to hide the product menu and inventory application.



How to make it standard?


In sales:


Go to menu items -> search for "Sales" -> select "Sales" option


Once this option is selected, you must go to submenus.




Select the option "products".


As you can see, Odoo has default visibility for the "View only own documents" group.


This should be changed by the group that has the necessary permissions to review this menu.


Example: 


Only administrators and those who can view all commands will have access to this view.


Result:



To hide the Inventory module you must follow the same logic above. 


Go to menu items - > search for "inventory" -> select the option "Inventory" -> under the tab "Visibility" define that only administrators or some customized group can view the entire module. 


Result: 


The sales people assigned with this permissions now does not have the Inventory module available.



Good practices

It is crucial to consider the full flow of the customers to assess the feasibility of the restrictions.


In addition, it is essential to understand the database interface to determine whether hiding a menu or a complete model is necessary to meet customer expectations or is just a half solution.


For example, if you want to hide the contact menu, when adjusting the groups through "Menu Items", users will no longer have access to the module at all. However, if a user has billing, buying or selling permissions, they will be able to access the "Customers" or "Suppliers" menu from one of those modules, which would still allow access to the "res.partner" model in some way. Therefore, it is crucial to know the database and its menus to consider all possible ways in which a user with certain permissions could access a model that is tried to hide.


A deep review and good Odoo knowledge will facilitate the configuration of permissions in a clear and functional manner.


It is also essential to  understand customer needs in order to determine whether to use the predetermined groups or whether new user groups are required to achive the security objectives.



2
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
Group access permissings wrong Resuelto
groups permissions
Avatar
Avatar
1
feb 23
3093
Set Field Permission for dynamically assigned group Resuelto
groups permissions
Avatar
Avatar
2
sept 19
5264
Group wise field permission read,write Resuelto
groups permissions
Avatar
Avatar
1
jul 19
6300
Security Fear: Make fields of a model secret without using groups attribute
security groups
Avatar
0
nov 15
5713
How to display a view with one field removed for certain groups?
security groups
Avatar
Avatar
1
mar 15
9264
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.

Sitio web hecho con

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