mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
@@ -15,5 +15,9 @@ class AccountPaymentLineCreate(models.TransientModel):
|
||||
domain = super(AccountPaymentLineCreate,
|
||||
self)._prepare_move_line_domain()
|
||||
if not self.include_returned:
|
||||
domain.append(('invoice_id.returned_payment', '=', False))
|
||||
domain += [
|
||||
'|',
|
||||
('invoice_id', '=', False),
|
||||
('invoice_id.returned_payment', '=', False)
|
||||
]
|
||||
return domain
|
||||
|
||||
Reference in New Issue
Block a user