deprecated gl_control and some rewrites

This commit is contained in:
Nabin Hait
2013-01-30 19:16:13 +05:30
parent c6a86535ef
commit fb3fd6e3e5
24 changed files with 242 additions and 313 deletions

View File

@@ -25,7 +25,7 @@ from setup.utils import get_company_currency
from controllers.accounts_controller import AccountsController
class BuyingController(AccountsController):
def validate(self):
def validate(self):
if self.meta.get_field("currency"):
self.company_currency = get_company_currency(self.doc.company)
self.validate_conversion_rate("currency", "conversion_rate")