diff options
| author | Nidhi Patel <nia@odoo.com> | 2020-10-07 12:24:18 +0000 |
|---|---|---|
| committer | Barad Mahendra <mba@openerp.com> | 2020-12-09 06:25:22 +0000 |
| commit | c54f445ceae72518f787f43213ec78a9a7e1b1eb (patch) | |
| tree | aa9f86f1d6b45d3dbac02cde6f1bd60dcbc883fb /addons/test_mail | |
| parent | 9f70f405bc453ce56b75d22a318c9fd72e8bd496 (diff) | |
[FIX] hr_holidays: Fix display of a wrong warning message
Currently, when we create time off and does not add 'Start Date' or
'End Date', it displays a wrong warning.
Issue is occur because date_from is required field at db level and it's
value computed based on visible field request_date_from which is
non-required field and when you keep that empty it will raisse the
contraint instead of required error.
So in this commit, we make request_date_field field required from view
and also make request_date_to visible based on condition so it should
fill the proper value inside the date_from and date_to.
closes odoo/odoo#59586
Taskid: 2352360
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/test_mail')
0 files changed, 0 insertions, 0 deletions
