Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
2003 Tampilan

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
Buang
Penulis Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
1
Feb 24
5039
2
Nov 24
1525
1
Nov 24
1738
0
Jun 22
2261
1
Mei 21
6231