Hi, I´m trying to download the ledger via API but I´m not succeeding.
I´m only able to access to the Journal.
Any clue on how to do that?
Tks!
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi, I´m trying to download the ledger via API but I´m not succeeding.
I´m only able to access to the Journal.
Any clue on how to do that?
Tks!
To have API access to any module or object stored in Odoo, your user must be allowed to access that module information, or you must have a token that gives you API access to that information. (Both are based on the user profile)
There are multiple ways to get your information through an API.
You can use the default Odoo XMLRPC, which has a well-defined set of rules that allow you to look up any model, filter, add the domain to the information, and limit the number of rows you can get through the call.
Or you can define your own HTTPS web service, that fetches any information and resolves it directly to the origin of the request, in any format that suits you better, whether it is a JSON structure, a CSV, or a PDF report.
The most important thing in fetching any information is to know the model's name and how to get related information.
Usually, the record that links to other models, has an ID with the other object, and you must fetch its information on the required model.
When there is a list of IDs, you have to fetch multiple records from the respective model to get those IDs' details
Look up the documentation if you don't know how to use the API.
Attention it might differ a bit from version to version.
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
Aanmelden
Can you expand on "not succeeding"? Perhaps share what you have tried, what is happening and what you expect to happen - this way readers won't have to guess and may be able to help you faster.
I am able to access VIA API to the journal book. The fact is that our accounting is accrual basis. The general ledger has an option to list CASH BASIS and that is why I need to access via api to the general ledger.
Tks
I am able to access VIA API to the journal book. The fact is that our accounting is accrual basis. The general ledger has an option to list CASH BASIS and that is why I need to access via api to the general ledger.
The documentation is quite scarce.
Tks