From 977331806bce95485976984e8d0724f8dae2e9cb Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 5 Jun 2014 17:10:48 +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 167f6c276e..3af82903a6 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._actions != "update_after_submit": + if self._action != "update_after_submit": self.set_missing_values(for_validate=True) self.validate_date_with_fiscal_year() if self.meta.get_field("currency"):