8810a34864b4ba6b7a486ce5a7f84dba6945fe16
The xml file with the cron that creates the recurrent preventive requests was not loaded in the system, so we needed to add it. Before, the cron was foreseen to only create the maintenance request on the day that the request was foreseen (in the morning). Now, it will create a request if none exists on the next_action_date. That way the requests can be planned for. The other problem is that the '_compute_next_maintenance' method for calculating the next_action_date does not take into account the possibly manually already created requests. So, now, the next maintenance is calculated with the closed requests and the open ones. If the first new one is in the past, it takes that date in the past. If it is in the future, it will see if the gap is big enough to put a maintenance in between the last done maintenance (or now) and the first new one. If none exists, it is today + period. That's why we have to add the 'request_date' in the depends. And take into account the preventive requests existing on an equipment.
…
…
…
…
…
…
…
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, Purchase Management, ...
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.
If you are a developer you may type the following command at your terminal:
wget -O- https://raw.githubusercontent.com/odoo/odoo/10.0/setup/setup_dev.py | python
Then follow the developer tutorials
For Odoo employees
To add the odoo-dev remote use this command:
$ ./setup/setup_dev.py setup_git_dev
To fetch odoo merge pull requests refs use this command:
$ ./setup/setup_dev.py setup_git_review
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%