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?
لقد تم الإبلاغ عن هذا السؤال
1
الرد
3478
أدوات العرض
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
|
4006 | ||
|
|
2
أكتوبر 25
|
5012 | ||
|
|
1
نوفمبر 21
|
6133 | ||
|
|
1
سبتمبر 21
|
7906 | ||
|
|
1
يونيو 21
|
4167 |