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.
Is there a function (or variable) that returns the worker variable as set by the config file or startup option? Ideally something that would be XML-RPC compatible.
After much searching in the code I didn't find anything that would return the required value. I created a simple one-liner in web_services.py to achieve the wanted behavior.
Here is what was done:
-Added 'get_workers' to the if in the dispatch method from the common class.
-Added the exp_get_workers defined as such:
return tools.config.get('workers', 1)
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: 8/24/14, 7:29 PM|
|Seen: 1452 times|
|Last updated: 3/16/15, 8:10 AM|