[FIX] account: when generating the opening entries, do not copy the last partner on the centralisation lines (was set in default_get) but force it to False

bzr revid: qdp-launchpad@openerp.com-20130107135507-jfm7ptd64zlldrqr
This commit is contained in:
Quentin (OpenERP) 2013-01-07 14:55:07 +01:00
parent 61455bb8b0
commit 26f5b8b7bf
1 changed files with 2 additions and 0 deletions

View File

@ -1463,6 +1463,7 @@ class account_move(osv.osv):
line_id = self.pool.get('account.move.line').create(cr, uid, {
'name': _(mode.capitalize()+' Centralisation'),
'centralisation': mode,
'partner_id': False,
'account_id': account_id,
'move_id': move.id,
'journal_id': move.journal_id.id,
@ -1501,6 +1502,7 @@ class account_move(osv.osv):
line_id = self.pool.get('account.move.line').create(cr, uid, {
'name': _('Currency Adjustment'),
'centralisation': 'currency',
'partner_id': False,
'account_id': account_id,
'move_id': move.id,
'journal_id': move.journal_id.id,