[IMP] Apply company domain when selecting move lines to pay

This commit is contained in:
Stefan Rijnhart
2013-01-21 12:30:46 +01:00
parent 4db3779aff
commit de1b7fc067

View File

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