Understand Travis

This commit is contained in:
Charles-Henri Decultot 2018-12-27 08:46:29 +00:00
parent d7777696d7
commit 02aa9fb240

View File

@ -19,10 +19,12 @@ class TestSalesPaymentSummary(unittest.TestCase):
def test_get_mode_of_payments(self):
si = frappe.get_all("Sales Invoice", filters={"company": "_Test Company", "customer": "_Test Customer"}, fields=["name", "docstatus"])
print(si)
filters = get_filters()
for invoice in si[:-2]:
doc = frappe.get_doc("Sales Invoice", invoice.name)
print(doc.__dict__)
new_doc = frappe.copy_doc(doc)
new_doc.ignore_pricing_rule = 1
new_doc.insert()