make amendable and file list function shifted to on update part of doctype.py

This commit is contained in:
Anand Doshi 2012-06-18 11:52:05 +05:30
parent 614d8206b8
commit bb83a680f8

View file

@ -102,11 +102,11 @@ class DocType:
self.scrub_field_names()
self.validate_fields()
self.set_version()
self.make_amendable()
self.make_file_list()
def on_update(self):
self.make_amendable()
self.make_file_list()
sql = webnotes.conn.sql
# make schma changes
from webnotes.model.db_schema import updatedb