Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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
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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 12/2/14, 3:25 PM|
|Seen: 857 times|
|Last updated: 3/16/15, 8:10 AM|