Ensure to set correct company context when calling today
issue11046 review370421002
This commit is contained in:
+2
-1
@@ -416,7 +416,8 @@ class PurchaseRequestQuotationReport(CompanyReport):
|
||||
pool = Pool()
|
||||
Date = pool.get('ir.date')
|
||||
context = super().get_context(records, header, data)
|
||||
context['today'] = Date.today()
|
||||
with Transaction().set_context(company=header['company'].id):
|
||||
context['today'] = Date.today()
|
||||
return context
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user