Dossogne Bertrand a69c944789 [FIX] hr_holidays: fix nextcall upon creation
Description of the issue:
Before this commit, allocation created for which
no nextcall were set (allocation starting in the past
or immediately) would update to a wrong value if the
cron is run immediately after the allocation creation

To reproduce the issue:
- Create an accrual plan giving daily allocation
- Create an allocation with that accrual and a start date
in the past
- Validate the allocation
- Run the accrual schedule action manually
- The new amount for the allocation is inferior to what it
was at creation

Expected Behaviour:
The value should remain the same

Fix:
A nextcall is now set whenever the allocation is supposed
to have already started to ensure no immediate accrual update.

closes odoo/odoo#148154

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2024-03-05 12:46:07 +00:00
2024-02-21 11:28:04 +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%