Skip to content

Commit

Permalink
[IMP] base_cron_exclusion: replace _ to self.env._ when call to trans…
Browse files Browse the repository at this point in the history
…late a string
  • Loading branch information
xaviedoanhduy committed Jan 13, 2025
1 parent 3a2cf5d commit 8f38d17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base_cron_exclusion/models/ir_cron.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import logging

from odoo import _, api, fields, models
from odoo import api, fields, models
from odoo.exceptions import ValidationError

_logger = logging.getLogger(__name__)
Expand All @@ -17,7 +17,7 @@ def _check_auto_exclusion(self):
for item in self:
if item in item.mutually_exclusive_cron_ids:
raise ValidationError(
_(
self.env._(
"You can not mutually exclude a scheduled actions with "
"itself."
)
Expand Down

0 comments on commit 8f38d17

Please sign in to comment.