4c263e04232b6471b580ae119dd7ce026e52af46
Steps to reproduce: - Create an accrual plan and an allocation request such as described in the added test and validate the allocation request - Run the scheduled action for accrual plan computation - Check the number of allocated days Expected behavior: The first level should bring 6 days, the second 3 days and the last 1 day for a total of 10 days Current behavior: The 3 level give non integer values closed to the expected for a total of 9,... days. Explanation: When transiting between two levels the nextcall was the last day of the current level to have the right level, this creates an inconsistency as the end_date of the _process_accrual_plan_level level should go up to the first day of the next level to have the full number of days expected. To solve the issue we change the level selection so that if the date is the first day of the level it is still in the previous level. We also modify the places where the nextcall was modified when transiting level so that there is no more one day delta anymore. opw-2868297 closes odoo/odoo#96665 X-original-commit: 5d055130c97c5d8367c2b71fc617f588c5e15741 Signed-off-by: Kevin Baptiste <kba@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%