[FIX] account_banking_payment_export: Fix move lines domain in create payment order

This commit is contained in:
Pedro M. Baeza
2016-02-18 10:24:19 +01:00
parent 91770110b2
commit 0ac4d50538

View File

@@ -75,11 +75,14 @@ class PaymentOrderCreate(models.TransientModel):
# Do not propose partially reconciled credit lines,
# as they are deducted from a customer invoice, and
# will not be refunded with a payment.
domain += ['|',
('account_id.type', '=', 'payable'),
'&',
('account_id.type', '=', 'receivable'),
('reconcile_partial_id', '=', False)]
domain += [
('credit', '>', 0),
'|',
('account_id.type', '=', 'payable'),
'&',
('account_id.type', '=', 'receivable'),
('reconcile_partial_id', '=', False),
]
@api.multi
def filter_lines(self, lines):