diff --git a/mail_activity_reminder/__manifest__.py b/mail_activity_reminder/__manifest__.py index a531dde0..b3d5ac4e 100644 --- a/mail_activity_reminder/__manifest__.py +++ b/mail_activity_reminder/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Mail Activity Reminder", - "version": "17.0.1.0.0", + "version": "18.0.1.0.0", "category": "Discuss", "website": "https://github.com/OCA/mail", "author": "CorporateHub, Odoo Community Association (OCA)", diff --git a/mail_activity_reminder/data/mail_activity_reminder_cron.xml b/mail_activity_reminder/data/mail_activity_reminder_cron.xml index 2b75517a..6f994d74 100644 --- a/mail_activity_reminder/data/mail_activity_reminder_cron.xml +++ b/mail_activity_reminder/data/mail_activity_reminder_cron.xml @@ -12,7 +12,5 @@ 1 hours 2020-01-01 00:01:00 - -1 - diff --git a/mail_activity_reminder/models/mail_activity.py b/mail_activity_reminder/models/mail_activity.py index 6654ecf6..9f00507d 100644 --- a/mail_activity_reminder/models/mail_activity.py +++ b/mail_activity_reminder/models/mail_activity.py @@ -6,7 +6,7 @@ from dateutil.relativedelta import relativedelta from pytz import UTC, timezone -from odoo import _, api, fields, models +from odoo import api, fields, models class MailActivity(models.Model): @@ -120,7 +120,7 @@ def action_remind(self): tz = timezone(user.sudo().tz or "UTC") local_now = utc_now.astimezone(tz) - subject = _("Some activities you are assigned too expire soon.") + subject = self.env._("Some activities you are assigned too expire soon.") body = self.env["ir.qweb"]._render( "mail_activity_reminder.message_activity_assigned",