[FIX] complete from invoice does false positive if master account is set on profile

This commit is contained in:
unknown
2013-04-24 11:24:27 +02:00
parent 6a2cb72e26
commit b693a0d28b

View File

@@ -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