From 000835c45483dcd45a9061b45c5b10a1bd64c7e6 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 8 Jun 2015 12:10:43 +0530 Subject: [PATCH] [fix] Fiscal year issue due to missing field in Material Request --- erpnext/controllers/accounts_controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/controllers/accounts_controller.py b/erpnext/controllers/accounts_controller.py index 8d51bcf48f6..98f240958f8 100644 --- a/erpnext/controllers/accounts_controller.py +++ b/erpnext/controllers/accounts_controller.py @@ -38,8 +38,8 @@ class AccountsController(TransactionBase): convert_to_recurring(self, self.get("posting_date") or self.get("transaction_date")) def before_recurring(self): - if self.meta.get_field("fiscal_year"): - self.fiscal_year = None + if self.meta.get_field("fiscal_year"): + self.fiscal_year = None if self.meta.get_field("due_date"): self.due_date = None