tejastank/openerp-php-connector

Improvment

oitsuki opened this issue · 1 comments

Sorry it's maybe not in this section
The function update does'nt work for account.invoice.line;
the objective is to change value inside a manual invoice in the lines in invoice.

I try this but nothing.

print_r($account_id);
array (size=2)
0 => int 856
1 => string '707100 Marchandises (ou groupe) A' (length=33)

  $values = array(
                    "invoice_id" => new xmlrpcval($invoice_line_id, "int"),
                    "company_id" => new xmlrpcval($company_id, "int"),
                    "product_id" => new xmlrpcval(0, "int"),
                    "account_id" => new xmlrpcval($account_id, "int"), // this make problem
                    "name" => new xmlrpcval($invoice_line_name, "string"),
                    "price_unit" => new xmlrpcval(10,"double"),
                    "quantity" => new xmlrpcval(2,"double"),
                    "tax_id" =>  new xmlrpcval(0, 'int'),
                  );

$OSCOM_ODOO->updateOdoo($invoice_line_id, $values, 'account.invoice.line');

need to develop a new function ?
Thanks you.

miss a line
"id" => new xmlrpcval($invoice_line_id, "int"),
"invoice_id" => new xmlrpcval($invoice_id, "int"),

Sorry