Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2946 Переглядів
# 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
Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
бер. 25
2277
1
лют. 25
3630
2
лют. 25
2352
1
бер. 24
1858
1
квіт. 22
2781