[FIX] Do assign a receivable account some of the time

This commit is contained in:
Stefan Rijnhart
2013-08-23 14:27:10 +02:00
parent 6d0e015358
commit 97504cb071
2 changed files with 2 additions and 2 deletions

View File

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

View File

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