GL Control rewrite and many other cleanup using inheritence

This commit is contained in:
Nabin Hait
2013-01-30 12:49:08 +05:30
parent 021dd54fed
commit bf495c9a6d
16 changed files with 878 additions and 892 deletions

View File

@@ -16,16 +16,13 @@
from __future__ import unicode_literals
import webnotes
from webnotes.utils import load_json, cstr, flt, get_defaults
from webnotes.utils import load_json, cstr, flt
from webnotes.model.doc import addchild
from webnotes.model.wrapper import copy_doclist
from webnotes.model.controller import DocListController
class TransactionBase(DocListController):
# Get Customer Default Primary Address - first load
# -----------------------
def get_default_customer_address(self, args=''):
address_text, address_name = self.get_address_text(customer=self.doc.customer)
self.doc.customer_address = address_name or ''