[FIX]account: fix the issue of Centralised Counterpart [TypeError:]

lp bug: https://launchpad.net/bugs/997316 fixed

bzr revid: mma@tinyerp.com-20120510125123-wefcgpxe2gitw0bo
This commit is contained in:
Mayur Maheshwari (OpenERP) 2012-05-10 18:21:23 +05:30
parent 02200ffe30
commit 45cb6f89d8
1 changed files with 1 additions and 0 deletions

View File

@ -556,6 +556,7 @@ class account_move_line(osv.osv):
'journal_id': lambda self, cr, uid, c: c.get('journal_id', False),
'credit': 0.0,
'debit': 0.0,
'amount_currency': 0.0,
'account_id': lambda self, cr, uid, c: c.get('account_id', False),
'period_id': lambda self, cr, uid, c: c.get('period_id', False),
'company_id': lambda self, cr, uid, c: self.pool.get('res.company')._company_default_get(cr, uid, 'account.move.line', context=c)