mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[FIX] complete from invoice does false positive if master account is set on profile
This commit is contained in:
@@ -176,9 +176,9 @@ class AccountStatementCompletionRule(orm.Model):
|
||||
res = {'partner_id': inv.partner_id.id,
|
||||
'account_id': inv.account_id.id,
|
||||
'type': inv_type}
|
||||
override_acc = line['master_account_id']
|
||||
if override_acc:
|
||||
res['account_id'] = override_acc
|
||||
override_acc = line['master_account_id']
|
||||
if override_acc:
|
||||
res['account_id'] = override_acc
|
||||
return res
|
||||
|
||||
# Should be private but data are initialised with no update XML
|
||||
|
||||
Reference in New Issue
Block a user