Skip to Content
Menu
This question has been flagged

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
Discard
Author Best Answer

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
Discard
Related Posts Replies Views Activity
1
Feb 24
4043
2
Nov 24
831
1
Nov 24
1041
0
Jun 22
1546
1
May 21
5402