Use invoice company when searching invoices to send

issue10755
review373581002
This commit is contained in:
Cédric Krier committed 2021-09-23 10:07:39 +02:00
1 parent b76ec48fd9
commit 0709ffb0c9
1 file changed
+2 -1
+2 -1
View File
@@ -199,7 +199,8 @@ class InvoiceChorus(ModelSQL, ModelView, _SyntaxMixin, metaclass=PoolMeta):
records = cls.search(['OR',
('number', '=', None),
('number', '=', ''),
('company', '=', transaction.context.get('company')),
('invoice.company', '=',
transaction.context.get('company')),
])
for record in records: