From 3a609108aeee2d6fe379c8117e91fc7cd7c64681 Mon Sep 17 00:00:00 2001 From: Saurabh Date: Tue, 9 Jan 2018 11:25:54 +0530 Subject: [PATCH] Codacy changes --- erpnext/accounts/doctype/sales_invoice/sales_invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py index 656207501b..bf6ad49d0e 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py @@ -305,7 +305,7 @@ class SalesInvoice(SellingController): if pos: self.allow_print_before_pay = pos.allow_print_before_pay - + if not for_validate and not self.customer: self.customer = pos.customer