Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
7848 Prikazi

Hi all,

I am trying to create a Delivery order by code ( c# ) i am able to generate the Delivery Order but then i get stuck at adding Product lines.

This is the code i have so far:

                    //Login to openerp
                IOpenErpLogin rpcClientLogin = XmlRpcProxyGen.Create<IOpenErpLogin>();
                int userid = rpcClientLogin.login(Properties.Settings.Default.OpenERP_DB, Properties.Settings.Default.OpenERP_User, Properties.Settings.Default.OpenERP_Pass);
                IOpenErp rpcClient = XmlRpcProxyGen.Create<IOpenErp>();

                //Create New Delivery
                XmlRpcStruct addPairFields = new XmlRpcStruct();
                addPairFields.Add("partner_id", lblID.Text);
                addPairFields.Add("move_type", "one");
                //addPairFields.Add("move_lines");
                int resAdd = rpcClient.create(Properties.Settings.Default.OpenERP_DB, userid, Properties.Settings.Default.OpenERP_Pass, "stock.picking.out", "create", addPairFields);
                Console.WriteLine("Added recordid {0}", resAdd);

This is where i get the error: //addPairFields.Add("move_lines");

i know that the move_lines is the field that contains the Items you want to deliver but what data do i pass here? any help or tips are welcome.

Avatar
Opusti

hi, Cornille Michiel have you found any solution for that questions because of i'm finding for the same.

please help me,thanks

Related Posts Odgovori Prikazi Aktivnost
1
jan. 25
1819
2
sep. 22
9556
0
sep. 22
2171
2
apr. 22
4603
0
jul. 21
7253