[IMP] mail_restrict_follower_selection: Add condition for tests
This commit is contained in:
parent
a09f5c8068
commit
dc83104cbf
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
"name": "Restrict follower selection",
|
"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)",
|
"author": "Therp BV,Creu Blanca,Odoo Community Association (OCA)",
|
||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
"category": "Social Network",
|
"category": "Social Network",
|
||||||
|
@ -9,7 +9,7 @@ class MailThread(models.AbstractModel):
|
|||||||
def _message_add_suggested_recipient(
|
def _message_add_suggested_recipient(
|
||||||
self, result, partner=None, email=None, reason=""
|
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
|
result, partner=partner, email=email, reason=reason
|
||||||
)
|
)
|
||||||
test_condition = config["test_enable"] and not self.env.context.get(
|
test_condition = config["test_enable"] and not self.env.context.get(
|
||||||
|
Loading…
Reference in New Issue
Block a user