69248626dd23287fdacda6eb61c21e62a1ae9fa9
_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>
…
…
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
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%