Browse Source

Global pylint cleanup

12.0
Simone Orsi 6 years ago
committed by OCA-git-bot
parent
commit
31740b4d81
  1. 4
      base_cron_exclusion/models/ir_cron.py

4
base_cron_exclusion/models/ir_cron.py

@ -14,10 +14,10 @@ _logger = logging.getLogger(__name__)
class IrCron(models.Model):
_inherit = "ir.cron"
@api.one
@api.constrains('mutually_exclusive_cron_ids')
def _check_auto_exclusion(self):
if self in self.mutually_exclusive_cron_ids:
for item in self:
if item in item.mutually_exclusive_cron_ids:
raise ValidationError(_(
"You can not mutually exclude a scheduled actions with "
"itself."))

Loading…
Cancel
Save