summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/models/thread/thread.js
diff options
context:
space:
mode:
authorYannick Tivisse <yti@odoo.com>2020-11-25 12:50:36 +0000
committerYannick Tivisse <yti@odoo.com>2020-11-25 13:12:49 +0000
commitc0e082ee1fba7cecc711f724974d79ed65bab29b (patch)
treea2fad7d67e0df7f0ec3a90922830ae9d1de73399 /addons/mail/static/src/models/thread/thread.js
parent26a2c047a2757c600b3128fe753fa1328043a245 (diff)
[FIX] hr_holidays: Remove contraint
Purpose ======= The goal of this contraint is to prevent employees to take a time off when he's not supposed to work (example: after the end of his contract). But, in some conditions (example: we change the contract end date), the number_of_days is not recomputed, and the constraint is raised when unlinking the time off. Move the chunk of code at the validation level, to prevent validating a time off if the employee is not supposed to work. closes odoo/odoo#62323 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/mail/static/src/models/thread/thread.js')
0 files changed, 0 insertions, 0 deletions