summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Maniet <arthurmaniet@me.com>2015-07-16 09:17:19 +0200
committerArthur Maniet <arthurmaniet@me.com>2015-07-16 09:17:19 +0200
commit29a859bf26afcdf3776dd854d271fade818d2e72 (patch)
tree08ee527392b5bf1a1119d89f32d60e39aea86ec1
parenta0ddaf8b84b6c04508d9c114b4c06469d06a47f0 (diff)
[FIX] account: blatant programming mistake in bank reconciliation
-rw-r--r--addons/account/models/account_bank_statement.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account/models/account_bank_statement.py b/addons/account/models/account_bank_statement.py
index 8f27abea376..c568601370e 100644
--- a/addons/account/models/account_bank_statement.py
+++ b/addons/account/models/account_bank_statement.py
@@ -284,7 +284,7 @@ class AccountBankStatement(models.Model):
additional_domain = [('ref', '=', st_line.name)]
match_recs = st_line.get_move_lines_for_reconciliation(limit=1, additional_domain=additional_domain, overlook_partner=True)
if match_recs and match_recs[0].partner_id:
- st_line.write({'partner_id': match_recs[0].partner_id.name})
+ st_line.write({'partner_id': match_recs[0].partner_id.id})
# Collect various informations for the reconciliation widget
notifications = []