style: Add tabs
This commit is contained in:
parent
002474367b
commit
433e587a95
@ -39,9 +39,9 @@ class EmailCampaign(Document):
|
|||||||
|
|
||||||
def validate_email_campaign_already_exists(self):
|
def validate_email_campaign_already_exists(self):
|
||||||
email_campaign_exists = frappe.db.exists("Email Campaign", {
|
email_campaign_exists = frappe.db.exists("Email Campaign", {
|
||||||
"campaign_name": self.campaign_name,
|
"campaign_name": self.campaign_name,
|
||||||
"recipient": self.recipient,
|
"recipient": self.recipient,
|
||||||
"status": ("in", ["In Progress", "Scheduled"])
|
"status": ("in", ["In Progress", "Scheduled"])
|
||||||
})
|
})
|
||||||
if email_campaign_exists:
|
if email_campaign_exists:
|
||||||
frappe.throw(_("The Campaign '{0}' already exists for the {1} '{2}'").format(self.campaign_name, self.email_campaign_for, self.recipient))
|
frappe.throw(_("The Campaign '{0}' already exists for the {1} '{2}'").format(self.campaign_name, self.email_campaign_for, self.recipient))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user