Skip to content

Commit a7660c9

Browse files
mepe-odooarpi-odoo
authored andcommitted
[FIX] hr_holidays: fix accrual day selection
1 parent 7b60929 commit a7660c9

File tree

3 files changed

+6
-47
lines changed

3 files changed

+6
-47
lines changed

addons/hr_holidays/static/src/components/accrual_level/accrual_levels.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111

1212
.o_accrual {
13-
.o_field_accrual, .o_field_selection, .o_field_day_selection, .o_field_filterable_selection {
13+
.o_field_accrual, .o_field_selection, .o_field_filterable_selection {
1414
width: fit-content !important;
1515

1616
&:not(.o_readonly_modifier) > *:first-child {
@@ -20,7 +20,7 @@
2020
field-sizing: content;
2121
}
2222

23-
&:not(.o_field_selection, .o_field_day_selection, .o_field_filterable_selection) > *:first-child {
23+
&:not(.o_field_selection, .o_field_filterable_selection) > *:first-child {
2424
max-width: 8ch;
2525
}
2626
}

addons/hr_holidays/static/src/components/day_selection/day_selection.js

Lines changed: 0 additions & 41 deletions
This file was deleted.

addons/hr_holidays/views/hr_leave_accrual_views.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,17 @@
3636
</span>
3737
<span name="biyearly" invisible="frequency != 'biyearly'">
3838
on the
39-
<field nolabel="1" name="first_month_day" class="o_field_accrual" widget="day_selection" month_field="first_month" placeholder="select a day" required="frequency == 'biyearly'"/>
39+
<field nolabel="1" name="first_month_day" class="o_field_accrual" placeholder="select a day" required="frequency == 'biyearly'"/>
4040
of
4141
<field name="first_month" class="o_field_accrual" placeholder="select a month" required="frequency == 'biyearly'"/>
4242
and the
43-
<field nolabel="1" name="second_month_day" class="o_field_accrual" widget="day_selection" month_field="second_month" placeholder="select a day" required="frequency == 'biyearly'"/>
43+
<field nolabel="1" name="second_month_day" class="o_field_accrual" placeholder="select a day" required="frequency == 'biyearly'"/>
4444
of
4545
<field nolabel="1" name="second_month" class="o_field_accrual" placeholder="select a month" required="frequency == 'biyearly'"/>
4646
</span>
4747
<span name="yearly" invisible="frequency != 'yearly'">
4848
on the
49-
<field nolabel="1" name="yearly_day" class="o_field_accrual" widget="day_selection" month_field="yearly_month" required="frequency == 'yearly'" placeholder="select a day"/>
49+
<field nolabel="1" name="yearly_day" class="o_field_accrual" required="frequency == 'yearly'" placeholder="select a day"/>
5050
of
5151
<field nolabel="1" name="yearly_month" class="o_field_accrual" required="frequency == 'yearly'" placeholder="select a month"/>
5252
</span>
@@ -192,7 +192,7 @@
192192
options="{'links': {'other': 'carryover_custom_date'}, 'observe': 'carryover'}"/>
193193
<span id="carryover_custom_date">
194194
: the
195-
<field name="carryover_day" widget="day_selection" month_field="carryover_month" placeholder="select a day"
195+
<field name="carryover_day" placeholder="select a day"
196196
required="carryover_date == 'other'"/>
197197
of
198198
<field name="carryover_month" placeholder="select a month"

0 commit comments

Comments
 (0)