Ir al contenido
Odoo Menú
  • Identificarse
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • TPV para tiendas
    • TPV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en directo
    • eLearning
    Cadena de suministro
    • Inventario
    • Fabricación
    • PLM
    • Compra
    • Mantenimiento
    • Calidad
    Recursos Humanos
    • Empleados
    • Reclutamiento
    • Ausencias
    • Evaluación
    • Referencias
    • Flota
    Marketing
    • Marketing social
    • Marketing por correo electrónico
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyecto
    • Partes de horas
    • Servicio de campo
    • Servicio de asistencia
    • Planificación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Conocimientos
    • WhatsApp
    Aplicaciones de terceros Studio de Odoo Plataforma de Odoo Cloud
  • Industrias
    Comercio al por menor
    • Librería
    • Tienda de ropa
    • Tienda de muebles
    • Tienda de ultramarinos
    • Ferretería
    • Juguetería
    Alimentación y hostelería
    • Bar y taberna
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidor de bebidas
    • Hotel
    Inmueble
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión inmobiliaria
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Empresa contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Fabricación
    • Textil
    • Metal
    • Muebles
    • Alimentos
    • Brewery
    • Regalos de empresas
    Salud y bienestar
    • Club deportivo
    • Óptica
    • Gimnasio
    • Terapeutas
    • Farmacia
    • Peluquería
    Oficios
    • Handyman
    • Hardware y asistencia informática
    • Sistemas de energía solar
    • Zapatero
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin ánimo de lucro
    • Agencia de protección del medio ambiente
    • Alquiler de paneles publicitarios
    • Estudio fotográfico
    • Alquiler de bicicletas
    • Distribuidor de software
    Browse all Industries
  • Comunidad
    Aprender
    • Tutoriales
    • Documentación
    • Certificaciones
    • Formación
    • Blog
    • Podcast
    Potenciar la educación
    • Programa de formación
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtener el software
    • Descargar
    • Comparar ediciones
    • Versiones
    Colaborar
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Convertirse en partner
    • Services for Partners
    • Registrar tu empresa contable
    Obtener servicios
    • Encontrar un partner
    • Encontrar un asesor fiscal
    • Contacta con un experto
    • Servicios de implementación
    • Referencias de clientes
    • Ayuda
    • Actualizaciones
    GitHub YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicitar 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
  • Proyecto
  • 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

[V16]: How to make Salesperson See Their Own Contacts Only

Suscribirse

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

Se marcó esta pregunta
record_rulesQuickstartSF-Experts
2 Respuestas
5077 Vistas
Avatar
Toshan Dubhashi (tod)

Hello All, 

I am trying to restrict specific internal users to only see their own clients in contacts.

1
Avatar
Descartar
Avatar
Toshan Dubhashi (tod)
Autor Mejor respuesta

1. Create a new group called Extra Rights/Own Contacts where we add the users that we would like to restrict, Select Contact as the model and create an Own Contacts record rule that contains ['|','|',('user_id', '=', user.id),('user_ids','=',user.id),('user_id','=',False)]. Apply Read, Write, Create, and Delete as required. 

2. Create another group called Extra Rights/All Contacts and add the necessary users here who are allowed to see everything. Next search for the record rule called "res.partner.rule.private.employee". Change Group on this from User types / Internal User to the new group Extra Right / All Contacts. 

This step is really important since this rule was initially applied to User types / Internal User groups and every internal user would be a part of this group so it would have overwritten the previous custom record rule and given everyone access to all contacts. 

3) To assign a salesperson, I go to the Sales & Purchase tab on the customer's Contact page, and fill in the Salesperson field.

Note: 

1) It is very important to make sure the Own Contacts users are not a part of the Technical / Access to Private Addresses. 

2) IMPORTANT! Please make sure at least one user in the database is part of Extra Rights/All Contacts and Administration/Settings at all times. Essentially try to inherit the group the admin group of each application. 

3) The above record rule will show users their own contacts along with contacts that do not have a salesperson set on the customer. If you would like to show only the contacts that have a salesperson set use the following record rule instead: 

['|',('user_id', '=', user.id),('user_ids','=',user.id)]


Disclaimer:

Record Rules are always complicated and at times can be tricky to handle. Always try to test it thoroughly before implementing it in production. An incorrect record rule can cause the entire database to break or you might be locked out as well. Please note Odoo is not responsible for any custom record rule made by the user and the user would be in charge of migrating the code during upgrades and debugging issues if any. 

2
Avatar
Descartar
Avatar
Jeroen Thieren
Mejor respuesta

Hi, I did this for my database and it works perfectly for the contacts module, but I can no longer open the sales app. I get the following error message: 'Due to security restrictions, you do not have access to 'Contact' (res.partner) records.'



How can I solve this?

0
Avatar
Descartar
Toshan Dubhashi (tod)
Autor

Hello, could you post a screenshot of the entire error you are getting?

Jeroen Thieren

Hi Toshan, I added the screenshot in my original comment.

Marc Tormo Bochaca

It is a problem with other users' messages in comments. What I don’t know, is how to solve the problem!!!!

¿Le interesa esta conversación? ¡Participe en ella!

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

Inscribirse
Publicaciones relacionadas Respuestas Vistas Actividad
Using Cost per employee and Employee capacity correctly Resuelto
Quickstart SF-Experts
Avatar
Avatar
2
may 25
6283
Why is there an Invoicing App Legacy Banner on my Invoice? Resuelto
Quickstart SF-Experts
Avatar
1
abr 25
2247
How to configure customizable BOMs in Odoo? Resuelto
Quickstart SF-Experts
Avatar
Avatar
2
oct 24
5830
Manufacturing using the barcode app Resuelto
Quickstart SF-Experts
Avatar
1
sept 24
6660
Multi-step subcontracting process Resuelto
Quickstart SF-Experts
Avatar
1
sept 24
3625
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento Odoo.sh
  • Ayuda
  • Actualizar
  • Desarrollos personalizados
  • Educación
  • Encontrar un asesor fiscal
  • Encontrar un partner
  • Convertirse en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contacta con nosotros
  • Puestos de trabajo
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Información 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 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