mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[FIX] account_move_transactionid_import: set the account from partner
This commit is contained in:
@@ -40,7 +40,9 @@ class AccountMoveCompletionRule(models.Model):
|
||||
_('Line named "%s" was matched by more than '
|
||||
'one partner.') % line.name)
|
||||
if len(sales) == 1:
|
||||
res['partner_id'] = sales[0].partner_id.id
|
||||
partner = sales[0].partner_id
|
||||
res['partner_id'] = partner.id
|
||||
res['account_id'] = partner.property_account_receivable_id.id
|
||||
return res
|
||||
|
||||
def get_from_transaction_id_and_invoice(self, line):
|
||||
|
||||
Reference in New Issue
Block a user