mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[IMP] Apply company domain when selecting move lines to pay
This commit is contained in:
@@ -447,6 +447,7 @@ class payment_order_create(osv.osv_memory):
|
||||
('account_id.type', '=', 'payable'),
|
||||
('amount_to_pay', '>', 0)
|
||||
]
|
||||
domain.append(('company_id', '=', payment.mode.company_id.id))
|
||||
# apply payment term filter
|
||||
if payment.mode.payment_term_ids:
|
||||
domain = domain + [
|
||||
|
||||
Reference in New Issue
Block a user