تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
2019 أدوات العرض

I get product.product object using search method. Now I want to set a vendor (from res.partner data) for this product using orm. how can I achieve?

الصورة الرمزية
إهمال
أفضل إجابة

Hi

lets say the product.product object that you got be product_obj

Now to set vendors you have to write the seller_id field

eg: product_obj.write({'seller_ids': [(0, 0, [Vendor details])]})


Regards
الصورة الرمزية
إهمال
الكاتب

thanks a lot.

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
ديسمبر 22
2671
1
نوفمبر 21
4288
1
سبتمبر 21
6024
1
يونيو 21
2939
1
أغسطس 20
4458