summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorYannick Tivisse <yti@odoo.com>2020-05-18 08:50:31 +0000
committerYannick Tivisse <yti@odoo.com>2020-05-18 11:58:10 +0000
commit03a11b5a0e9acd40363af48590915d2f6778b0b5 (patch)
tree18b8782a2d0736379ec4202294bac5666d83f5c8 /addons/web/static/src/js/views/basic/basic_controller.js
parentfab315489ce458d64d4b5e8db6cc72370352db98 (diff)
[REV] hr: revert f33644df65bcd4133689855018850c1b1deac7a6
Purpose ======= By using the user's related company to create a employee, we prevent creating several employees for the same users on the basic flow. But this is exactly the way we want people to use the system. Example: Jojo is working in Belgium, has a belgian employee liked to a belgian user in the system. Now Jojo is about to work during 1 year in another company, based in the USA. Jojo wants another employee, to manage the HR things properly (payroll, ...), but he doesn't want to have 2 users, he prefer to manage all its notifications in the same place. We create another employee for Jojo, in the US company. So instead of creating the employee in the user's company (Belgian), as it would raise an error for the second employee, we should use the contextual company instead, allowing to create the second employee smoothly. closes odoo/odoo#51435 X-original-commit: 0318f0acc5e98950c274c90a86a94d4588d2966d Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions