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

@@ -22,8 +22,9 @@ from webnotes.utils import flt
from buying.utils import get_item_details
from setup.utils import get_company_currency
from utilities.transaction_base import TransactionBase
class BuyingController(TransactionBase):
from controllers.accounts_controller import AccountsController
class BuyingController(AccountsController):
def validate(self):
if self.meta.get_field("currency"):
self.company_currency = get_company_currency(self.doc.company)