跳至內容
選單
此問題已被標幟
2727 瀏覽次數
# res_company.py 
class Company(models.Model)
        _inherit = 'res.company'
        supplier_id = fields.Many2many('res.company', string='Vendor')
 

When creating a product, it is visible to all companies. By default, a single product.template (id, ) entry is created  and related product.product(id, ).
​How to set a supplier depending on the company at the time of the product creation?

Product 1 company A -> supplier1, supplier2 
Product 1 company B -> supplier3, supplier4
頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
3月 25
1562
1
2月 25
2992
2
2月 25
1966
1
3月 24
1526
1
4月 22
2423