[fix] [patch] recurring

This commit is contained in:
Rushabh Mehta 2016-03-03 10:37:45 +05:30
parent 5839a8d7f0
commit 69cfab8559
2 changed files with 2 additions and 1 deletions

View File

@ -15,6 +15,7 @@ def test_recurring_document(obj, test_records):
base_doc.update({
"is_recurring": 1,
"submit_on_create": 1,
"recurring_type": "Monthly",
"notification_email_address": "test@example.com, test1@example.com, test2@example.com",
"repeat_on_day_of_month": getdate(today).day,

View File

@ -4,7 +4,7 @@ def execute():
for doctype in ('Sales Order', 'Purchase Order', 'Sales Invoice',
'Purchase Invoice'):
frappe.reload_doctype(doctype)
frappe.db.sql('''update `tab{0}` set submit_on_creation=1
frappe.db.sql('''update `tab{0}` set submit_on_creation=1, notify_by_email=1
where is_recurring=1'''.format(doctype))
frappe.db.sql('''update `tab{0}` set notify_by_email=1
where is_recurring=1'''.format(doctype))