Nguyen Viet Phuong 69248626dd [FIX] hr_holidays: fix onchange _onchange_date_from
Issue: Error when the 'date_from' field is left blank.

Cause: When deleting the 'date_from' field, the onchange
'_onchange_date_from' is triggered. It will call the
'_process_accrual_plans' function and report an error as shown below:

first_level_start_date = allocation.date_from +
get_timedelta(first_level.start_count, first_level.start_type)

TypeError: unsupported operand type(s) for +: 'bool' and 'relativedelta'

Solution:
- Check the 'date_from' condition before calling next function
- Handle it only in the onchange because the 'date_from' field is
required

closes odoo/odoo#162730

Signed-off-by: Sofie Gvaladze (sgv) <sgv@odoo.com>
2024-04-23 09:20:44 +00:00
2024-04-15 09:10:09 +00:00
2024-04-22 17:04:37 +00:00
…
…
…

Build Status Tech Doc Help Nightly Builds

Odoo

Odoo is a suite of web based open source business apps.

The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...

Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.

Getting started with Odoo

For a standard installation please follow the Setup instructions from the documentation.

To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials

S
Description
No description provided
Readme LGPL-3.0
3.4 GiB
Languages
Python 49.6%
JavaScript 47.8%
SCSS 2%
CSS 0.3%
HTML 0.2%