From 058a010456ebf528d295acd60533402ab7e56def Mon Sep 17 00:00:00 2001 From: Arthur Maniet Date: Tue, 17 Feb 2015 11:28:06 +0100 Subject: [PATCH] [FIX] account: in bank statement reconciliation widget, make sure a move line 'ref' is an empty string if the field has no value Fixes #5272 --- addons/account/account_move_line.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/account_move_line.py b/addons/account/account_move_line.py index 75f6198c7d2..95419811206 100644 --- a/addons/account/account_move_line.py +++ b/addons/account/account_move_line.py @@ -782,7 +782,7 @@ class account_move_line(osv.osv): ret_line = { 'id': line.id, 'name': line.name != '/' and line.move_id.name + ': ' + line.name or line.move_id.name, - 'ref': line.move_id.ref, + 'ref': line.move_id.ref or '', 'account_code': line.account_id.code, 'account_name': line.account_id.name, 'account_type': line.account_id.type,