Odoo Help

0

How to remove supplier info from sales in OpenERP 7?

By
Torsten Francke
on 5/23/13, 11:56 AM 1,574 views

My Sales team can see products, but i find not a way to hide the supplier information from the employees. Everything i did fails, that i get a exception that the employee has no rights to see the complete product.

I try to write a modul with:

class product_template(osv.osv):
    _inherit = "product.template"

    _columns = {
        'seller_ids': fields.one2many('product.supplierinfo', 'product_id', 'Supplier', groups='purchase.group_purchase_user'),
    }
product_template()

didnt work.

i try domain:

['|','|',('user_ids', 'in', user.id),('parent_id','=',user.company_id.id),('id','=',user.company_id.id)]

for res.partner fail as well. Removing read access to product.supplierinfo removes as well that the user can see the products anymore.

0
Torsten Francke
On 6/21/13, 9:28 AM

The solution is right, but you have to fix all access to the restricted field. In the matter of a seller_id you must handle a exception on asking for the product.code.

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 5/23/13, 11:56 AM
Seen: 1574 times
Last updated: 3/16/15, 8:10 AM