summaryrefslogtreecommitdiff
path: root/addons/portal/wizard
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2020-06-26 07:21:33 +0000
committerMartin Trigaux <mat@odoo.com>2020-06-30 10:19:59 +0000
commit400cc4f14ed12bce8d11ea515041253a9271f5a5 (patch)
treee62f8e54acf97e42325114844494b4b82fc99a07 /addons/portal/wizard
parent241f06d868296f6e2ef851d6f5d156f59f630b00 (diff)
[FIX] *: correct all or improve code translation lookup
This commit fixes all issues detected by the new pylint gettext-variable test. It converts some calls to the new syntax _("Foo %s", bar) to progressively migrate the code to the new syntax. A few calls were not technically incorrect but still detected by the linter. _("Foo" + "Bar") has been converted to _("Foo" "Bar") as it has the same effect and make sure the argument is of type asteroid.Const instead of BinOp). closes odoo/odoo#53683 Related: odoo/enterprise#11467 Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
Diffstat (limited to 'addons/portal/wizard')
-rw-r--r--addons/portal/wizard/portal_share.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/portal/wizard/portal_share.py b/addons/portal/wizard/portal_share.py
index 1cf5e7b5d60..65dfdf64549 100644
--- a/addons/portal/wizard/portal_share.py
+++ b/addons/portal/wizard/portal_share.py
@@ -60,7 +60,7 @@ class PortalShare(models.TransientModel):
active_record.with_context(mail_post_autofollow=True).message_post_with_view(template,
values={'partner': partner, 'note': self.note, 'record': active_record,
'share_link': share_link},
- subject=_("You are invited to access %s" % active_record.display_name),
+ subject=_("You are invited to access %s", active_record.display_name),
subtype_id=note.id,
email_layout_xmlid='mail.mail_notification_light',
partner_ids=[(6, 0, partner.ids)])
@@ -72,7 +72,7 @@ class PortalShare(models.TransientModel):
active_record.with_context(mail_post_autofollow=True).message_post_with_view(template,
values={'partner': partner, 'note': self.note, 'record': active_record,
'share_link': share_link},
- subject=_("You are invited to access %s" % active_record.display_name),
+ subject=_("You are invited to access %s", active_record.display_name),
subtype_id=note.id,
email_layout_xmlid='mail.mail_notification_light',
partner_ids=[(6, 0, partner.ids)])