mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[FIX] Do assign a receivable account some of the time
This commit is contained in:
@@ -1120,7 +1120,7 @@ class banking_import_transaction(orm.Model):
|
||||
if partner.supplier and not partner.customer:
|
||||
account_type = 'payable'
|
||||
elif partner.customer and not partner.supplier:
|
||||
account_type = 'payable'
|
||||
account_type = 'receivable'
|
||||
if partner['property_account_' + account_type]:
|
||||
account_id = partner['property_account_' + account_type].id
|
||||
if not account_id or account_id in (def_pay_account_id, def_rec_account_id):
|
||||
|
||||
@@ -276,7 +276,7 @@ class banking_transaction_wizard(orm.TransientModel):
|
||||
if partner.supplier and not partner.customer:
|
||||
account_type = 'payable'
|
||||
elif partner.customer and not partner.supplier:
|
||||
account_type = 'payable'
|
||||
account_type = 'receivable'
|
||||
if partner['property_account_' + account_type]:
|
||||
account_id = partner['property_account_' + account_type].id
|
||||
|
||||
|
||||
Reference in New Issue
Block a user