How can i get partner orders between two dates (create_date)? And i want to get only the 'amount_total' field in order object.
Can you help me with some of code for example?
I use c# in my code with xml-rpc and i use odoo 9.0
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
How can i get partner orders between two dates (create_date)? And i want to get only the 'amount_total' field in order object.
Can you help me with some of code for example?
I use c# in my code with xml-rpc and i use odoo 9.0
First you need to search for all the partners using search method and pass blank list which will give you the IDs of all the partners.
Now, again use search method to search the orders by passing the partner IDs and then use read method to read the data of the orders.
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up
It would be more helpful if you post your code you are working with.
In the second part of your answer, you mentioned that i need to make a search method passing the partner IDs. If i want only the orders between two dates, i need to write a condition using 'Domains' ?
And where i need to put the condition , in the search method or in the read method ?