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

bzr revid: fp@tinyerp.com-20120929085340-96ucy6iixinkuhtm
This commit is contained in:
Fabien Pinckaers 2012-09-29 10:53:40 +02:00
commit 03e521a32f
1 changed files with 1 additions and 0 deletions

View File

@ -562,6 +562,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)