d64ce530711d924f2814f6646390967ab2441d7f
- Install stock_calendar - Create a stockable product - Add the route "Buy" - Add a vendor with a delivery lead time of 30 days - Create a reordering rule for x units - Run the schedulers A PO is created, but the scheduled date is set as today, not today + 30 days. What happens is the following: 1. Since no `calendar_id` is defined on the orderpoint, `_get_group` returns `[(now, None)]` 2. `now` is used in the `procurement_values` of the `res_groups` by `_procurement_from_orderpoint_get_groups` 3. The `res_groups` values are used in `_procure_orderpoint_confirm` when calling `_prepare_procurement_values`. 4. `_prepare_procurement_values` is overridden by `stock_calendar` to set a value for `next_delivery_date`. At this point, the `now` value is used. 5. Finally, when creating the PO line, `_prepare_purchase_order_line` is overridden by `stock_calendar` to set the `next_delivery_date` as `date_planned`. So, `date_planned` becomes `now`. There should not be any date set when no `calendar_id` is defined. opw-1828371
…
…
…
…
…
…
…
…
…
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%