From 30469bd69b5c97094bbb15b78fd750db73a8873e Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Tue, 26 Aug 2014 14:45:00 +0200 Subject: [PATCH] [FIX] account: name of bank statement is not required At the confirmation of a bank statement, the name may not be set (e.g. generated by point of sale). This field is not requred so make a fallack on the statement line (which is required). --- addons/account/account_bank_statement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/account_bank_statement.py b/addons/account/account_bank_statement.py index cbbcd49337c..1f4d6a94c78 100644 --- a/addons/account/account_bank_statement.py +++ b/addons/account/account_bank_statement.py @@ -735,7 +735,7 @@ class account_bank_statement_line(osv.osv): raise osv.except_osv(_('Error!'), _('A selected move line was already reconciled.')) # Create the move - move_name = st_line.statement_id.name + "/" + str(st_line.sequence) + move_name = (st_line.statement_id.name or st_line.name) + "/" + str(st_line.sequence) move_vals = bs_obj._prepare_move(cr, uid, st_line, move_name, context=context) move_id = am_obj.create(cr, uid, move_vals, context=context)