Intechnity-com / OdooJsonRpcClient

Odoo Client Json Rpc
MIT License
70 stars 31 forks source link

How to post invoice from draft status #73

Open JRB202 opened 1 year ago

JRB202 commented 1 year ago

I managed to create partners, customer and supplier invoices against Odoo V16. Thanks to this API.

Next step is now to change created invoices status from "draft" status in which they are created by API to "posted" status.

With Odoo Python API it would be done with this line :

execute_kw(db, uid, password, 'account.invoice', 'action_invoice_open', [['id','=' 1]])

where id is the account.move invoice repository id

How can I submit this command from this OdooJsonRpcClient Visual Studio API ?

Thanks for suggestions