Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2725 Представления
# 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
1559
1
февр. 25
2988
2
февр. 25
1964
1
мар. 24
1522
1
апр. 22
2422