Currently, develop some code for insert record into res.partner(Contact) by calling Odoo API one by one using loop.
But, i want to insert all record by single call of Odoo API
Is this possible ?
please have a look my existing code, implements for c#
foreach (var loCustomer in loCustomeresList)
{
if (!string.IsNullOrEmpty(loCustomer.lsName))
{
loRecordPairCompany = new XmlRpcStruct();
loRecordPairCompany.Add("name", loCustomer.lsCustomerID);
loRecordPairCompany.Add("Phone_Number", loCustomer.lsPhoneNumber);
loRecordPairCompany.Add("email", loCustomer.lsEmail);
loRecordPairCompany.Add("website", loCustomer.lsWebsite);
loRecordPairCompany.Add("property_payment_term_id", loCustomer.liCustomerPaymentTerm);
loRecordPairCompany.Add("is_company", true);
int liCompanyID = loRpcRecord.create(Common.lsDbName, liUserid, Common.lsDbPassword, "res.partner", "create", loRecordPairCompany);
}
}