[FIX] account: reconciliation on structured communication has to be done on ref field...
authorqdp-odoo <qdp@openerp.com>
Mon, 16 Jun 2014 13:13:40 +0000 (15:13 +0200)
committerqdp-odoo <qdp@openerp.com>
Fri, 20 Jun 2014 07:58:14 +0000 (09:58 +0200)
addons/account/account_bank_statement.py

index 004bcd3..38ca301 100644 (file)
@@ -493,7 +493,7 @@ class account_bank_statement_line(osv.osv):
     def search_structured_com(self, cr, uid, st_line, context=None):
         if not st_line.ref:
             return
-        domain = [('name', '=', st_line.ref)]
+        domain = [('ref', '=', st_line.ref)]
         if st_line.partner_id:
             domain += [('partner_id', '=', st_line.partner_id.id)]
         ids = self.pool.get('account.move.line').search(cr, uid, domain, limit=1, context=context)