تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2830 أدوات العرض
# 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
مارس 25
1784
1
فبراير 25
3210
2
فبراير 25
2137
1
مارس 24
1663
1
أبريل 22
2535