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

Hi,

Odoo version 11.0

i have successfully created product in odoo by using c# code, but in which unable to set it's seller_ids(one2many fields)

though, i know i need to set value like '(0, 0, { values })' in seller_ids , while creating product.

but don't know how to set seller_ids using c# code ?


loRecordPairProduct = new XmlRpcStruct();

loRecordPairProduct.Add("name", loSalesLine.OrderLineName);

loRecordPairProduct.Add("description_sale", true);

loRecordPairProduct.Add("description_purchase", true);

loRecordPairProduct.Add("categ_id", liCategoryId);

loRecordPairProduct.Add("type", "consu");//consumable for non-inventory item                                

loRecordPairProduct.Add("seller_ids", new object[1, 3] { { 0, 0, new int[1] { loSalesLine.VendorId } } });

loRecordPairProduct.Add("route_ids", new object[1, 2] { { 4, 9 } });//9-id for drop-ship route.

loSalesLine.ProductID = loRpcRecord.create(lsOdooDBName, liUserid, lsOdooDBPassword, OdooHelper.lsProductTable, OdooHelper.lsCreateMethod, loRecordPairProduct);


 


الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
3
أبريل 23
17008
1
يناير 19
5380
1
نوفمبر 22
3272
2
أغسطس 22
7608
1
يناير 25
9305