Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2743 Ansichten
# 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
Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
1
März 25
1617
1
Feb. 25
3073
2
Feb. 25
2033
1
März 24
1585
1
Apr. 22
2447