[fix] [patch] recurring
This commit is contained in:
parent
5839a8d7f0
commit
69cfab8559
@ -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,
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user