跳至内容
菜单
此问题已终结

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).
形象
丢弃
编写者 最佳答案

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.

形象
丢弃
相关帖文 回复 查看 活动
1
2月 24
4054
2
11月 24
839
1
11月 24
1048
0
6月 22
1556
1
5月 21
5430