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.
In a multi company environment, I created the same department structure (HR configuration) for all the companies ... sales, accounting, finance, production, etc. When I want to assign a department to an employee, who belongs to a company (company_id), I see all the departments of all companies but the company name associated to the department is not listed. So I can see 5 times "sales", 5 times "accounting", etc. I think we should see only the departments of the company id of the employee! Is it a bug or am I missing something?
You are right; but i don't know if we can call it a " bug", so let's call it "a missing functionality".
When browsing the code in hr.py (HR module), you can see that there is a method "onchange_company" for the class hr_employee, which is executed when you select the company in the hr_view; but unfortunately it' just used to fill the company adress.
We can do the same, for the hr_job class, to filter only the departments belonging to the related company.
Maybe, we can do it with the same method (onchange_company), by returning 2 values instead of one, one for the adress_id and the second for department_id.
But how can we achieve this task , without patch, and patch again after each update?
In fact, i am also facing a similar issue, in sale order, when selecting a Shop or a Pricelist, i get the full list of Shops and PriceLists from all companies ...
This is really an annoying situation.
Yves, keep connected, and follow this question.
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: 4/1/14, 1:01 PM|
|Seen: 1947 times|
|Last updated: 3/16/15, 8:10 AM|