84e3680d8034bad4998f77ce6d1eda9705187954
We have a test case 'test_my_activity_flow_employee' that checks user's own activty for current day. However, the creation of the activities is done with OdooBot, and 'date_deadline' is not being passed. For this reason, the default deadline (default value = fields.Date.context_today) is set based on the tz of OdooBot (which is Europe/Brussels) and so it might happen that the deadline is set on the next day (when test case is performed just before mid-night). In such cases, when we search for today's activites for the employee (with absolute current date in domain, which is still before midnight), result can be misleading as we expect one activty for the employee but none could be found (as deadlines are set for the next day). This commit fixes the issue by using absolute current for the test case (whlie setting 'date_dateline' and while searching records) and thus making it more reliable. Note: The test case was introduced with commit https://github.com/odoo/odoo/commit/6aa3dc609cb13a469492b1a39a8fd9810040f079 TaskID-2570963 closes odoo/odoo#73034 X-original-commit: 962153a062af3f611e38c0d588febfecd9755810 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.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%