mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Merge pull request #554 from sebalix/9.0-account_payment_order-fix
[FIX] account_payment_order: select payable and receivable lines
This commit is contained in:
@@ -102,7 +102,7 @@ class AccountPaymentLineCreate(models.TransientModel):
|
||||
domain += [
|
||||
('credit', '>', 0),
|
||||
# '|',
|
||||
('account_id.internal_type', '=', 'payable'),
|
||||
('account_id.internal_type', 'in', ['payable', 'receivable']),
|
||||
# '&',
|
||||
# ('account_id.internal_type', '=', 'receivable'),
|
||||
# ('reconcile_partial_id', '=', False), # TODO uncomment
|
||||
@@ -110,7 +110,7 @@ class AccountPaymentLineCreate(models.TransientModel):
|
||||
elif self.order_id.payment_type == 'inbound':
|
||||
domain += [
|
||||
('debit', '>', 0),
|
||||
('account_id.internal_type', '=', 'receivable'),
|
||||
('account_id.internal_type', 'in', ['receivable', 'payable']),
|
||||
]
|
||||
# Exclude lines that are already in a non-cancelled
|
||||
# and non-uploaded payment order; lines that are in a
|
||||
|
||||
Reference in New Issue
Block a user