Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
1135 Vistas

When i try to create an invoice from a sales order, i get this error. I checked my custom modules but none of them do anything to the product.product model. 
All i do is set a value for company_id when creating a new product.template record. I also did not change any user or group access right.

Why does this error occur? Could there be any issue with product.template that is causing Odoo to restrict user access to product.product?

If you have any ideas to solve this, please let me know.


Thanks a lot.


Due to security restrictions, you are not allowed to access 'Product Variant' (product.product) records.

Records: Down payment (id=246)
User: Administrator (id=2)

This restriction is due to the following rules:


Contact your administrator to request access if necessary.

Implicitly accessed through 'Product Variant' (product.product).
Avatar
Descartar
Autor Mejor respuesta

Solved!

Somehow, setting the company_id value in the product_template table restricted the user's access to the product_product table.

Record: Prepayment, ID = 246, Table: product_product. Check the product_tmpl_id field value of this record and find the record with the corresponding id in the product_template table. Then, all I need to do is set the company_id of this record to null.

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
feb 24
4050
2
nov 24
835
1
nov 24
1046
0
jun 22
1550
1
may 21
5420