Odoo Help


This community 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.


Department manager problem

Rami Talat
on 11/30/14, 9:10 AM 771 views

It seems there is no integrity between the department manager in the "Departments" form, and the same field in the "Emplyee" form.

When you assing a name in either forms, it doesn;t reflect in the other!!!


(about the answer) I can't get your point !!!

Rami Talat
on 12/9/14, 7:55 AM

Jérémy Kersten (jke)

--Jérémy Kersten (jke)--
| 3 2 5
Jodoigne, Belgium
--Jérémy Kersten (jke)--

Jérémy is a member of the core R&D team since september 2013. He developed several projects for OpenERP version 8 including the eCommerce, the Google Calendar synchronization and the new product variants/configurator. Now, he manages Odoo website and themes for saas.

Jérémy Kersten (jke)
On 11/30/14, 4:34 PM


The manager in "Departements form" will be the default value into "employee form" when you will set a department ... (on_change_department_id function)

But the manager id will be saved into the Employee table. 

To get what you explains... you need to replace this "manager field (parent_id)" with a related to department_id.manager_id


Update : 


In department form, you define the default manager for this department.

So when you are in employee form, when you set the department, by default the manager field is fill in with the default value. But you are allowed to edit this one, that just a default value... So, 2 employees from the same department can have 2 distincts managers !

It's not a bug, it's the behavior that Odoo wants...


If your idea, is to define only the department to an employee and only show for information the manager of the current deparment, you need to use a "related field" to keep the relation between department/manager. With this solution, if you change the manager in employee form, your are changing the default manager for this department...



Op does not understand your answer but can't post comments on your answer due to low karma.

Stephen Mack
on 12/9/14, 8:02 AM

Your Answer

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 11/30/14, 9:10 AM
Seen: 771 times
Last updated: 3/16/15, 8:10 AM