From b693a0d28bbbc7c3a58859a37ebe0fa56d8253f1 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 24 Apr 2013 11:24:27 +0200 Subject: [PATCH] [FIX] complete from invoice does false positive if master account is set on profile --- account_statement_base_completion/statement.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/account_statement_base_completion/statement.py b/account_statement_base_completion/statement.py index bf8805f8..10bfaa82 100644 --- a/account_statement_base_completion/statement.py +++ b/account_statement_base_completion/statement.py @@ -176,9 +176,9 @@ class AccountStatementCompletionRule(orm.Model): res = {'partner_id': inv.partner_id.id, 'account_id': inv.account_id.id, 'type': inv_type} - override_acc = line['master_account_id'] - if override_acc: - res['account_id'] = override_acc + override_acc = line['master_account_id'] + if override_acc: + res['account_id'] = override_acc return res # Should be private but data are initialised with no update XML