From 26f5b8b7bfe9fedff80c10390cb532805e9e94a9 Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Mon, 7 Jan 2013 14:55:07 +0100 Subject: [PATCH] [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 --- addons/account/account.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/account/account.py b/addons/account/account.py index 5f20c858cf8..a14c44405b9 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -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,