summaryrefslogtreecommitdiff
path: root/addons/hr/models/__init__.py
diff options
context:
space:
mode:
authorSwapnesh Shah <swapneshshah111@gmail.com>2020-04-20 17:42:07 +0000
committerSwapnesh Shah <swapneshshah111@gmail.com>2020-04-22 07:28:29 +0000
commit7c8ae751f8d0fe6adcd2e7c77cef35389aef2834 (patch)
treecb3c1bfd1930be56be97ce69e23ae35433d0c80e /addons/hr/models/__init__.py
parent62c215298efc4ee5dc2ffab8f4421e68aa577838 (diff)
[FIX] hr: allow to copy employee linked to user
Before this commit, It was not possible to copy An employee which is already linked to User due `user_uniq` constraints. Now we add `copy=False` on `user_id` field, so Employee will be copied without linked User. closes odoo/odoo#49915 X-original-commit: 2a63df03859166414be338c6655ee8c4052666b7 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/hr/models/__init__.py')
-rw-r--r--addons/hr/models/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/hr/models/__init__.py b/addons/hr/models/__init__.py
index 43857d3d83e..1c06c535ae8 100644
--- a/addons/hr/models/__init__.py
+++ b/addons/hr/models/__init__.py
@@ -14,3 +14,4 @@ from . import res_config_settings
from . import res_partner
from . import res_users
from . import res_company
+from . import resource