[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.
This commit is contained in:
David Monjoie
2015-11-25 16:56:05 +01:00
parent 0413cc9641
commit bc0521805a
+1 -1
View File
@@ -462,7 +462,7 @@
<field name="res_model">hr.holidays</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form,calendar</field>
<field name="context">{'search_default_department':1, 'search_default_approve':1}</field>
<field name="context">{'default_type':'add', 'search_default_department':1, 'search_default_approve':1}</field>
<field name="domain">[('type','=','add')]</field>
<field name="search_view_id" ref="view_hr_holidays_filter"/>
</record>