summaryrefslogtreecommitdiff
path: root/addons/test_mail
diff options
context:
space:
mode:
authordmonzonis <mod@odoo.com>2020-04-10 10:27:49 +0000
committerdmonzonis <mod@odoo.com>2020-04-10 11:15:19 +0000
commit328f6dbc984312049e94413fe9a46284cffcb3cb (patch)
tree07cecf3005d61ad627a6e97d7152253501924497 /addons/test_mail
parentf0a66d05e70e432d35dc68c9fb1e1cc6e51b40b8 (diff)
[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.
Diffstat (limited to 'addons/test_mail')
-rw-r--r--addons/test_mail/__manifest__.py2
-rw-r--r--addons/test_mail/tests/test_performance.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/addons/test_mail/__manifest__.py b/addons/test_mail/__manifest__.py
index 18516b56e90..f539daaa69e 100644
--- a/addons/test_mail/__manifest__.py
+++ b/addons/test_mail/__manifest__.py
@@ -9,7 +9,7 @@
'description': """This module contains tests related to mail. Those are
contained in a separate module as it contains models used only to perform
tests independently to functional aspects of other models. """,
- 'depends': ['test_performance', 'mail', 'mail_bot'],
+ 'depends': ['test_performance', 'mail'],
'data': [
'security/ir.model.access.csv',
'security/test_mail_security.xml',
diff --git a/addons/test_mail/tests/test_performance.py b/addons/test_mail/tests/test_performance.py
index c79ae4abf65..de82171251b 100644
--- a/addons/test_mail/tests/test_performance.py
+++ b/addons/test_mail/tests/test_performance.py
@@ -286,7 +286,7 @@ class TestMailAPIPerformance(BaseMailPerformance):
}).create({})
composer.onchange_template_id_wrapper()
- with self.assertQueryCount(__system__=39, emp=44):
+ with self.assertQueryCount(__system__=40, emp=45):
composer.send_mail()
# remove created partner to ensure tests are the same each run