I'm using the php class described at https://github.com/OpenCode/openerp-php-connector/blob/master/openerp.class.php
I have the following code in my php file:
$rpc->call_function('account.invoice.basic','act_open',array('invoice_id' => $invoice_id))
But the invoice stays at 'draft' state, i don't have any idea why... can anyone help me with this?
The reason is because invoice_open (or act_open) is not acount.invoice.basic's method (there is no such model as account.invoice.basic anyway). To execute confirm the invoice you need to execute workflow. In XML RPC it is done via exec_workflow call. There is one example here: http://pinakinnayi.blogspot.com/2013/04/example-of-xmlrpc-and-openerp.html
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 12/2/14, 3:25 PM|
|Seen: 614 times|
|Last updated: 3/16/15, 8:10 AM|