[IMP] mail_restrict_follower_selection: Add condition for tests

This commit is contained in:
Alexandre Díaz 2020-04-16 19:49:05 +02:00 committed by Aungkokolin1997
parent a09f5c8068
commit dc83104cbf
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
{
"name": "Restrict follower selection",
"version": "13.0.1.0.1",
"version": "13.0.1.0.2",
"author": "Therp BV,Creu Blanca,Odoo Community Association (OCA)",
"license": "AGPL-3",
"category": "Social Network",

View File

@ -9,7 +9,7 @@ class MailThread(models.AbstractModel):
def _message_add_suggested_recipient(
self, result, partner=None, email=None, reason=""
):
result = super(MailThread, self)._message_add_suggested_recipient(
result = super()._message_add_suggested_recipient(
result, partner=partner, email=email, reason=reason
)
test_condition = config["test_enable"] and not self.env.context.get(