Skip to content

Commit

Permalink
[MIG] mail_activity_reminder: Migration to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
achulii committed Nov 27, 2024
1 parent 9d14599 commit 1a99f0f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion mail_activity_reminder/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down
2 changes: 0 additions & 2 deletions mail_activity_reminder/data/mail_activity_reminder_cron.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,5 @@
<field name="interval_number">1</field>
<field name="interval_type">hours</field>
<field name="nextcall">2020-01-01 00:01:00</field>
<field name="numbercall">-1</field>
<field name="doall" eval="True" />
</record>
</odoo>
4 changes: 2 additions & 2 deletions mail_activity_reminder/models/mail_activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 1a99f0f

Please sign in to comment.