跳至內容
選單
此問題已被標幟
1 回覆
4180 瀏覽次數

Hi community,

In multi company, I want hide products of other companies to  the user of one company.

I expect like this

            [('company_id', 'in',user.company_ids)]


Thanks in advance



頭像
捨棄
作者 最佳答案

I found the answer

There already is a product.product multicompany rule (but it is inactive by default): "Product multi-company"
xml id: product.product_comp_rule
You can active it by going to settings => general settings. Check "manage multi company", then uncheck "share product to all companies"


    from 

    http://stackoverflow.com/questions/37500668/limit-products-to-company-assigned-to-user-in-multi-company-odoo-9

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
5月 24
2892
1
11月 22
5272
2
7月 22
3973
Domain filter 已解決
1
12月 23
19214
2
5月 18
10095