Odoo Help


invoice_open with php

Benjamin Mampaey
on 12/2/14, 3:25 PM 995 views

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?

I tried also with 'invoice_open' instead of 'act_open', but also that isn't working....

Benjamin Mampaey
on 12/2/14, 3:39 PM



| 5 3 6
Jakarta, Indonesia
On 12/2/14, 7:30 PM

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

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 12/2/14, 3:25 PM
Seen: 995 times
Last updated: 3/16/15, 8:10 AM