Lock manager update when changing departments
by CLuedoo https://www.cluedoo.com/shop/lic-clu-set-emp-0010-lock-manager-update-when-changing-departments-6695$ 50.29
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Employees (hr)
• Discuss (mail) |
| Lines of code | 39 |
| Technical Name |
fal_lock_manager |
| License | OPL-1 |
| Website | https://www.cluedoo.com/shop/lic-clu-set-emp-0010-lock-manager-update-when-changing-departments-6695 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Employees (hr)
• Discuss (mail) |
| Lines of code | 39 |
| Technical Name |
fal_lock_manager |
| License | OPL-1 |
| Website | https://www.cluedoo.com/shop/lic-clu-set-emp-0010-lock-manager-update-when-changing-departments-6695 |
ODOO'S FUNCTION
In Odoo, when you change the Department field on an employee form, the Manager field is automatically updated to reflect the Manager defined in the corresponding Department record. This behavior ensures that the employee is always linked to the correct hierarchical manager based on the departmental structure, but does not allow flexibility when a specific manager needs to be maintained.
CLUEDOO'S FUNCTION
CLuedoo introduces a new feature with a checkbox labeled "Lock Auto-Update Manager" in the Settings. When checked, this option blocks the automatic update of the Manager field whenever the Department is changed. This allows users to keep a manually assigned manager unchanged, providing more control and preventing unintended updates by Odoo’s default system (ODS).
|
1. Go to
Settings
>
Employees
>
Enable
Lock Auto-Update Manager
>
Save
|
|
|
2. Go to Employees > Choose an employee > Fill in the Department , and the Manager will be automatically updated based on what you set in the Departments
e.g., Department: Management/Professional Services with Tina Williamson as the Manager |
|
|
3. If I change the Department of the employee from Professional Services to Sales , the Manager will not be updated |
|
|
4. If I disable the
Lock Auto-Update Manager
|
|
|
When I change the
Department
in the employee form, the
Manager
will
be updated
based on what you set in the
Departments
|
|
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module