set as default button in fiscal year

This commit is contained in:
Nabin Hait
2013-01-09 14:44:24 +05:30
parent 0f61b476a2
commit f8c6531c3d
4 changed files with 102 additions and 69 deletions

View File

@@ -64,6 +64,9 @@ class DocType:
webnotes.conn.set_default('year_start_date', ysd.strftime('%Y-%m-%d'))
webnotes.conn.set_default('year_end_date', \
get_last_day(get_first_day(ysd,0,11)).strftime('%Y-%m-%d'))
# clear cache
webnotes.clear_cache()
def validate_session_expiry(self):
if self.doc.session_expiry: