Use invoice company when searching invoices to send
issue10755 review373581002
This commit is contained in:
1 parent
b76ec48fd9
commit
0709ffb0c9
1 file changed
+2
-1
+2
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user