From 86207afe159709aa73b7b692f2b768c8c2410c47 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 5 Jun 2014 17:00:53 +0530 Subject: [PATCH] Set missing values only in unsubmitted documents --- erpnext/controllers/accounts_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/controllers/accounts_controller.py b/erpnext/controllers/accounts_controller.py index a1bce2d213..167f6c276e 100644 --- a/erpnext/controllers/accounts_controller.py +++ b/erpnext/controllers/accounts_controller.py @@ -12,7 +12,7 @@ import json class AccountsController(TransactionBase): def validate(self): - if self.docstatus == 0: + if self._actions != "update_after_submit": self.set_missing_values(for_validate=True) self.validate_date_with_fiscal_year() if self.meta.get_field("currency"):