summaryrefslogtreecommitdiff
path: root/doc/reference/javascript_reference.rst
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2018-09-19 16:25:09 +0200
committerThibault Delavallée <tde@odoo.com>2018-09-20 08:13:01 +0200
commitc59d6d2329494705a5f9dd5ef6a1b0e2c43f8e38 (patch)
tree8dacbc37a290a5aac07cdc1fed856dc43a36b4e7 /doc/reference/javascript_reference.rst
parent6ed44181d081b3cfd8875dc82e4e155970cc07f5 (diff)
[FIX] hr_holidays: correctly update number of days of allocation
Two fields number_of_days_display and number_of_hours_display are used to set a number_of_days field that stores the allocation day count of the allocation. Those two fields are interface fields. One or another is used depending on the leave type, depending on how the allocation is done: by hours or by days. This commit fixes a wrong computation of number of days by correctly setting a readonly attribute on unused fields as well as removing the inverse on the interface fields. Using onchange ensure the backend field is correctly computed. Moreover we could have two times the same tracking message as the inverse triggers another write and cache could consider the tracking two times.
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions