From 7de9562fd1999a7fe9839bfd3ed98ec800e251e0 Mon Sep 17 00:00:00 2001 From: Ildar Nasyrov Date: Mon, 23 May 2016 21:50:57 +0500 Subject: [PATCH] [FIX] look for xml_id in this module2 --- mailgun/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mailgun/models.py b/mailgun/models.py index c2de402..2eb8bac 100644 --- a/mailgun/models.py +++ b/mailgun/models.py @@ -29,7 +29,7 @@ class IrConfigParameter(models.Model): def mailgun_verify(self): api_key = self.get_param('mailgun.apikey') mail_domain = self.get_param('mail.catchall.domain') - cron_record = self.env.ref('mailgun_domain_verification') + cron_record = self.env.ref('mailgun.mailgun_domain_verification') if api_key and mail_domain: url = "https://api.mailgun.net/v3/domains/%s/verify" % mail_domain res = requests.put(url, auth=("api", api_key))