[FIX] account: reconciliation on structured communication has to be done on ref field, not move name
This commit is contained in:
parent
375dee27f6
commit
1546d022ab
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue