Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I'm using a lot xmlrpclib in python to generate automatically a lot of stuff in my openerp.
I have now a problem with the expenses, HR expenses.
In the database, it is in hr.expense.expense.
and when I do a search like that :
#Config for API openErpUser = 'User' openErpPassword = 'password' openErpBase = 'openerpbase' openErpCommon = 'localhost:8069/xmlrpc/common' #the xmlrpc common URL openErpObject = 'localhost:8069/xmlrpc/object' #the xmlrpc object URL #Connect to API sock_common = xmlrpclib.ServerProxy (openErpCommon) uid = sock_common.login(openErpBase, openErpUser, openErpPassword) sock = xmlrpclib.ServerProxy(openErpObject) #Search all the expenses that have been done after January 1st 2013 searchArgs = [('date', '>', '2013-01-01'),] expenseIds = sock.execute(openErpBase, uid, openErpPassword, 'hr.expense.expense', 'search', searchArgs)
And the expenseIds is empty (and I have at least 10 exepenses done after this date).
When I do this with invoices, it works perfectly, but, whith these expenses. So far, I'm stuck :/
Who can help me ?
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 9/20/13, 4:17 PM|
|Seen: 1387 times|
|Last updated: 3/16/15, 8:10 AM|