Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2744 Lượt xem
# 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
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 3 25
1617
1
thg 2 25
3076
2
thg 2 25
2034
1
thg 3 24
1585
1
thg 4 22
2447