Use invoice company when searching invoices to send

issue10755
review373581002
(grafted from a108ab1afc05e08e61e54a24ad0beab5c72c48b8)

--HG--
branch : 6.0
This commit is contained in:
Cédric Krier committed 2021-09-23 10:07:39 +02:00
1 parent 577bf67e2b
commit 7f9899e936
1 file changed
+2 -1
+2 -1
View File
@@ -197,7 +197,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: