OdooJsonRpcClient icon indicating copy to clipboard operation
OdooJsonRpcClient copied to clipboard

How to post invoice from draft status

Open JRB202 opened this issue 1 year ago • 0 comments

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

JRB202 avatar May 02 '23 22:05 JRB202