c66d10a9719dc47eca55f8efa3b3e7c893dc2db9
Previously, creation of the 'All day' event was not possible in some scenarios due to constraint error, even with proper configuration. Scenario 1: (main spec of the task) ------------------------------------ - go to form view of calendar event - create a new event - enter future datetime in 'Starting at' field - tick the 'All day' checkbox - enter the end date which is greater than start date - try to save the record Scenario 2: ------------------------------------ - go to form view of calendar event - create a new event - enter future datetime in 'Starting at' field - try to save the record Scenario 3: ------------------------------------ - go to form view of calendar event - create a new event - enter any datetime in 'Starting at' field - enter duration -1.00 hour - tick the 'All day' checkbox - enter the end date which is greater than start date - try to save the record In all above scenarios, user is not able to save the record even if the there is no obvioius wrong configuration. All of the above bugs are result of a recent refactoring[1] where some redundant fields were removed. The first two scenarios are result of 'stop' date not being computed proerly based on 'start' in case the duration is set to '00:00' (which is default duration) while the third one is due to lack of proper check in the constraint after the fields used to validate starting and ending dates were removed. This commit fixes the issue by improving the compute method and by ensuring proper validation in the constraint. [1] - https://github.com/odoo/odoo/pull/42031/commits/6bafd7c677d016e82473f01bd0a3381ac3b24bbd Task Id: 2299212 PR #54673 closes odoo/odoo#56411 X-original-commit: cc5d090c267bac892d2e8200f8e55de88c5a0af2 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com> Co-authored-by: D J <dja@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%