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

Unable to assign a company to a newly created product

Suscribirse

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

Se marcó esta pregunta
inventoryproduct.productaccess_error
1 Responder
969 Vistas
Avatar
Kevin Stallard

I am an admin for our odoo instance.  I am using a multi-company database.  There is no hierarchical relationship between the two companies in the database.  They are treated a separate companies.

When I try to add a company to a new product, Odoo complains with:

Access Error

Uh-oh! Looks like you have stumbled upon some top-secret records. Sorry, <user> (id=2) doesn't have 'read' access to: - Product Variant, Service on Timesheets (product.product: 2) Blame the following rules: If you really, really need access, perhaps you can win over your friendly administrator with a batch of freshly baked cookies.

A couple of things:

1.  The product id of the new product I added is 131, not 2.  I don't know what this has to do with "Service on Timesheets" service product.  So there appears to be some strange relationship with the new product I just added and "Service on Timesheets".

2.  I have read access to Service on Timesheets, I can open it and read and even change things and save it.

3.  The product I just added has no inventory and has not been involved with any stock moves.

4.  I've tried changing the Record Rules for Product ("Product multi-company") and changed:

['|', ('company_id', 'parent_of', company_ids), ('company_id', '=', False)]

to

['|', ('company_id', 'in', company_ids), ('company_id', '=', False)]

But that doesn't fix it and it mess up the product list in that you can no longer filter on Company.

Any help understanding why this error is being displayed would be appreciated.   I figure there is a rule somewhere that needs tweaking.... 

Thanks,
Kevin



0
Avatar
Descartar
Himani

Hello Kevin Stallard
can you show example for which product you are trying to add company and configuration of your users (from which user you are trying to add company)? 

Also can you check how many companies you are selected on top right ?
Maybe after that i can help.

Avatar
Cybrosys Techno Solutions Pvt.Ltd
Mejor respuesta

Hi,

The error occurs because Odoo enforces multi-company record rules on all products, even when you’re creating a new one. In your case, the rule touches the “Service on Timesheets” product, which has a company assignment that your user cannot fully access, causing the access error. This happens because the standard product multi-company rule uses hierarchical (parent_of) logic, which doesn’t work properly in a flat multi-company setup. Simply changing parent_of to in can fix access but breaks the company filter in product lists. The correct approach is to either set company_id=False for products that should be accessible across companies and/or create a custom record rule using ['|', ('company_id', 'in', user.company_ids.ids), ('company_id', '=', False)] applied to relevant user groups. This ensures that users can create and manage products across multiple independent companies without triggering access errors or losing the ability to filter products by company.


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
Database fetch misses ids ((<NewId origin=56101>,)) and has extra ids ((56101,)), may be caused by a type incoherence in a previous request Resuelto
inventory product.product v15
Avatar
Avatar
1
sept 24
4305
How to add products to order in inventory app
inventory help product.product newbie
Avatar
0
feb 22
2945
Odoo Inventory Valuation Report
inventory
Avatar
Avatar
Avatar
Avatar
3
nov 25
7318
Inventory rotation or inventory turnover
inventory
Avatar
Avatar
1
oct 25
1706
Lot/Serial Number Resuelto
inventory
Avatar
Avatar
Avatar
2
sept 25
909
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