[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:
parent
8fa7318178
commit
f8c261c76a
|
@ -531,8 +531,9 @@ class account_bank_statement_line(osv.osv):
|
||||||
('reconcile_id', '=', False),
|
('reconcile_id', '=', False),
|
||||||
('state', '=', 'valid'),
|
('state', '=', 'valid'),
|
||||||
('account_id.reconcile', '=', True),
|
('account_id.reconcile', '=', True),
|
||||||
('id', 'not in', excluded_ids),
|
('id', 'not in', excluded_ids),]
|
||||||
('partner_id', 'in', (False, st_line.partner_id.id))]
|
if st_line.partner_id:
|
||||||
|
domain.append(('partner_id', '=', st_line.partner_id.id))
|
||||||
return domain
|
return domain
|
||||||
|
|
||||||
def get_reconciliation_proposition(self, cr, uid, st_line, excluded_ids=None, context=None):
|
def get_reconciliation_proposition(self, cr, uid, st_line, excluded_ids=None, context=None):
|
||||||
|
|
Loading…
Reference in New Issue