aii: default account from company

This commit is contained in:
Nabin Hait
2013-03-19 18:18:52 +05:30
parent fbafced1e4
commit 80abad2ee0
11 changed files with 130 additions and 50 deletions

View File

@@ -20,7 +20,7 @@ from controllers.accounts_controller import AccountsController
class StockController(AccountsController):
def make_gl_entries(self, against_stock_account, amount, cost_center=None):
stock_in_hand_account = self.get_stock_in_hand_account()
stock_in_hand_account = self.get_default_account("stock_in_hand_account")
if amount:
gl_entries = [