From 328f6dbc984312049e94413fe9a46284cffcb3cb Mon Sep 17 00:00:00 2001 From: dmonzonis Date: Fri, 10 Apr 2020 10:27:49 +0000 Subject: [PATCH 1/2] [ADD] mail_bot_hr: Bridge module to remove mail_bot dependency from hr In v12, the hr module did not have a hard dependency on mail_bot, so the users could uninstall it if they did not want/need its functionality. In v13, mail_bot was added as a dependency to include the notification widget and the odoobot state in the user forms modified by the hr module. However, this also brings potentially unwanted functionality to anyone who installs an hr related application. This commit removes the dependency on mail_bot by adding the mail_bot_hr bridge module, which provides integration between mail_bot and hr if both modules are installed. --- addons/hr/__manifest__.py | 1 - addons/hr/views/res_users.xml | 5 ---- addons/mail_bot_hr/__manifest__.py | 16 +++++++++++ addons/mail_bot_hr/views/res_users_views.xml | 28 ++++++++++++++++++++ addons/test_mail/__manifest__.py | 2 +- addons/test_mail/tests/test_performance.py | 2 +- 6 files changed, 46 insertions(+), 8 deletions(-) create mode 100644 addons/mail_bot_hr/__manifest__.py create mode 100644 addons/mail_bot_hr/views/res_users_views.xml diff --git a/addons/hr/__manifest__.py b/addons/hr/__manifest__.py index 68bc368853c..78dbafe5450 100644 --- a/addons/hr/__manifest__.py +++ b/addons/hr/__manifest__.py @@ -20,7 +20,6 @@ 'mail', 'resource', 'web', - 'mail_bot', ], 'data': [ 'security/hr_security.xml', diff --git a/addons/hr/views/res_users.xml b/addons/hr/views/res_users.xml index 22992df0244..2f3b0abbe9c 100644 --- a/addons/hr/views/res_users.xml +++ b/addons/hr/views/res_users.xml @@ -14,7 +14,6 @@