From bc0521805ac382fec8f7cd19a8a2084a00fc7168 Mon Sep 17 00:00:00 2001 From: David Monjoie Date: Wed, 25 Nov 2015 15:56:14 +0100 Subject: [PATCH] [FIX] hr_holidays: consistent leave allocations create This window action did not open the create form view as a leave allocation but as a leave request, which was inconsistent with the very similar open_allocation_holidays action. With the former, the duration field was two dates. On the latter, it was only a number of days, as it should be for leaves allocations. --- addons/hr_holidays/hr_holidays_view.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_holidays/hr_holidays_view.xml b/addons/hr_holidays/hr_holidays_view.xml index b422917c431..64a54c8ab41 100644 --- a/addons/hr_holidays/hr_holidays_view.xml +++ b/addons/hr_holidays/hr_holidays_view.xml @@ -462,7 +462,7 @@ hr.holidays form tree,form,calendar - {'search_default_department':1, 'search_default_approve':1} + {'default_type':'add', 'search_default_department':1, 'search_default_approve':1} [('type','=','add')]