[FIX] account: when a payment is processed in the bank interface, it will complete the partner automatically if a single invoice is found with the same reference. As expected for a structured communication for example. Fixes opw 653452

This commit is contained in:
qdp-odoo 2015-11-24 10:22:16 +01:00
parent 8fa7318178
commit f8c261c76a
1 changed files with 3 additions and 2 deletions

View File

@ -531,8 +531,9 @@ class account_bank_statement_line(osv.osv):
('reconcile_id', '=', False),
('state', '=', 'valid'),
('account_id.reconcile', '=', True),
('id', 'not in', excluded_ids),
('partner_id', 'in', (False, st_line.partner_id.id))]
('id', 'not in', excluded_ids),]
if st_line.partner_id:
domain.append(('partner_id', '=', st_line.partner_id.id))
return domain
def get_reconciliation_proposition(self, cr, uid, st_line, excluded_ids=None, context=None):