summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorGoffin Simon <sig@odoo.com>2018-01-16 10:14:57 +0100
committerGoffin Simon <sig@odoo.com>2018-01-17 09:13:35 +0100
commit733ce266ef793652f5958c24e2a8a6f443432552 (patch)
tree753f1767a793d925079b7a0b39543761d5f00c9c /addons
parent22e458775a1757e9952bfb498b0014906825358a (diff)
[FIX] base, hr_holidays: Printing leaves by department report with no logo
When calling the function report_action from write_company_and_print_report, it failed because all the required data from the transient model "hr.holidays.summary.dept" were lost. opw:803051
Diffstat (limited to 'addons')
-rw-r--r--addons/hr_holidays/wizard/hr_holidays_summary_department.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/hr_holidays/wizard/hr_holidays_summary_department.py b/addons/hr_holidays/wizard/hr_holidays_summary_department.py
index 82a398c3c4c..1d8cf868b46 100644
--- a/addons/hr_holidays/wizard/hr_holidays_summary_department.py
+++ b/addons/hr_holidays/wizard/hr_holidays_summary_department.py
@@ -31,4 +31,4 @@ class HolidaysSummaryDept(models.TransientModel):
'model': 'hr.department',
'form': data
}
- return self.env.ref('hr_holidays.action_report_holidayssummary').report_action(departments, data=datas)
+ return self.env.ref('hr_holidays.action_report_holidayssummary').with_context(from_transient_model=True).report_action(departments, data=datas)