Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2038 Lượt xem

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).
Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 2 24
5097
2
thg 11 24
1551
1
thg 11 24
1774
0
thg 6 22
2266
1
thg 5 21
6269