Skip to Content
Menu
This question has been flagged
2 Replies
5082 Views

how can i validate invoice or register payments or similar actions via the external api? I see models but not methods for them

I am currently evaluating odoo and want to see if i can integrate it with a currently running internal software

Avatar
Discard
Best Answer

With an assumption that you have gone through the external API documentation here https://www.odoo.com/documentation/12.0/webservices/odoo.html

This can be done in a similar way you search for the records e.g let say my invoice id is 1, this method action_invoice_open will validate the open invoice.

...execute_kw(db, uid, password, 'account.invoice', 'action_invoice_open', [['id','=' 1]])
Avatar
Discard
Author Best Answer

Ajepe, (I can't reply directly to your comment at the moment so writing out response here)
thanks for the reply. I did go through the webservices page but isn't there a manual/document where I can go through for such stuff? Where can I see the applicable methods for such models?
Would I have to manually go to the models page every time and look for what I need to do?

Avatar
Discard

You will need to check the model defintion in the source code to know the actual model to call from the RPC, Odoo does not provide manual for the available mothods in each model, you will need to figure it out by yourself.

Author

thanks for your help!

Related Posts Replies Views Activity
0
Jul 25
122
1
Jun 25
1851
1
Jul 25
836
1
Apr 25
1519
2
Jan 25
1662