Add company pattern to multivalue calls

issue10162
review335761002
This commit is contained in:
Cédric Krier committed 2021-04-03 14:27:10 +02:00
1 parent 948a99e1a1
commit 986a586feb
1 file changed
+1 -1
+1 -1
View File
@@ -554,7 +554,7 @@ class Work(Effort, Progress, Timesheet, metaclass=PoolMeta):
product=product.rec_name))
else:
invoice_line.account = account_config.get_multivalue(
'default_category_account_revenue')
'default_category_account_revenue', company=invoice.company.id)
if not invoice_line.account:
raise InvoicingError(
gettext('project_invoice.msg_missing_account_revenue',