Skip to content

Commit

Permalink
Merge pull request #16 from Eficent/11.0-add-ddmrp
Browse files Browse the repository at this point in the history
[11.0][ADD] ddmrp
  • Loading branch information
JordiBForgeFlow authored Aug 1, 2018
2 parents 8620e4f + 428943f commit 4bc3796
Show file tree
Hide file tree
Showing 64 changed files with 3,962 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,11 @@ addons:

env:
global:
- VERSION="11.0" TESTS="0" LINT_CHECK="0" TRANSIFEX="0"
- TRANSIFEX_USER='[email protected]'
- secure: "jErjXdqkLMHIwGJIWJW0kJiL0MZsPutBHRkdZ0ERIC9q9Td6oExPcaiYuNMwEJsetoA51dnOuTk/pNCFvYZGectDXQgVk5D9vXYiHfwZZT56rTA5IrscrPr8LobFrV7i7JY1+wIK8lOsfEwZvmhV6NSg+vbI9UpP6sI5W8QSF3dfqh56NsaKII9v/q12S/QxkhQdIgqpg6le+yooFFNmLs9M1kqbsoGYOXnsNHx6wGuY/N5l16td3A2eO4ulCZLUu1Djc0PiwI6ZAJue50ZfMj3pW20X/+u9pSBUPBC2Jh77VXFln50A++0OZ27uYGsQJOC2abg7Zze6gdYz3qoIGq13F+wwqKkJ8rsfN9yI6Z41GnRQ6NOg+j/YWUJ6kWY4VDDHeYfLqX7AiGHLTsCcn/FV3WnoMSVj6Rm/nZoBZ3K9nrVaolCd5oFtddBXzvZHqdTKHRzzRyLLq9Lo+FBxoVjwQycHhoWlyFf39gu1cLGLKHaM9nSDjLTNXZTWtcS/kookNxb9QfYXGTEMPeXYlvOjQ6QaKeJ0Qrg1LQgsMb9cHUmGjdu525Nx1XJb5wkz0q21EbF88HlKzxtBKCxtJaGkk7Pf/cMKU54QEk++01oLNxuJ2C2qLChp1G2alrUxHaPIbX4LKcSSafrbeCsnwBeRJVgj6qqvMUWOCCLn07c="
- VERSION="11.0" TESTS="0" LINT_CHECK="0"

matrix:
- LINT_CHECK="1"
- TRANSIFEX="1"
- TESTS="1" ODOO_REPO="odoo/odoo"
- TESTS="1" ODOO_REPO="odoo/odoo" MAKEPOT="1"
- TESTS="1" ODOO_REPO="OCA/OCB"

install:
Expand Down
21 changes: 21 additions & 0 deletions ddmrp/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
**This file is going to be generated by oca-gen-addon-readme.**

*Manual changes will be overwritten.*

Please provide content in the ``readme`` directory:

* **DESCRIPTION.rst** (required)
* INSTALL.rst (optional)
* CONFIGURE.rst (optional)
* **USAGE.rst** (optional, highly recommended)
* DEVELOP.rst (optional)
* ROADMAP.rst (optional)
* HISTORY.rst (optional, recommended)
* **CONTRIBUTORS.rst** (optional, highly recommended)
* CREDITS.rst (optional)

Content of this README will also be drawn from the addon manifest,
from keys such as name, authors, maintainers, development_status,
and license.

A good, one sentence summary in the manifest is also highly recommended.
5 changes: 5 additions & 0 deletions ddmrp/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

from . import models
from . import wizards
from . import report
65 changes: 65 additions & 0 deletions ddmrp/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Copyright 2016-18 Eficent Business and IT Consulting Services S.L.
# (http://www.eficent.com)
# Copyright 2016 Aleph Objects, Inc. (https://www.alephobjects.com/)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

{
"name": "DDMRP",
"summary": "Demand Driven Material Requirements Planning",
"version": "11.0.1.0.0",
"development_status": "Beta",
"author": "Eficent, "
"Aleph Objects, Inc., "
"Odoo Community Association (OCA)",
"maintainers": ['jbeficent', 'lreficent'],
"website": "https://github.com/OCA/ddmrp",
"category": "Warehouse Management",
"depends": [
"purchase",
"mrp_bom_location",
"web_tree_dynamic_colored_field",
"stock_warehouse_orderpoint_stock_info",
"stock_warehouse_orderpoint_stock_info_unreserved",
"stock_available_unreserved",
"stock_orderpoint_purchase_link",
"stock_orderpoint_uom",
"stock_orderpoint_manual_procurement",
"stock_demand_estimate",
"web_widget_bokeh_chart",
"mrp_multi_level",
"base_cron_exclusion",
"stock_warehouse_calendar",
],
"data": [
"data/product_adu_calculation_method_data.xml",
"data/stock_buffer_profile_variability_data.xml",
"data/stock_buffer_profile_lead_time_data.xml",
"data/stock.buffer.profile.csv",
"security/ir.model.access.csv",
"security/stock_security.xml",
"views/stock_buffer_profile_view.xml",
"views/stock_buffer_profile_variability_view.xml",
"views/stock_buffer_profile_lead_time_view.xml",
"views/product_adu_calculation_method_view.xml",
"views/stock_warehouse_views.xml",
"views/stock_warehouse_orderpoint_view.xml",
"views/mrp_production_view.xml",
"views/purchase_order_line_view.xml",
"views/mrp_bom_view.xml",
"views/stock_move_views.xml",
"views/report_mrpbomstructure.xml",
"wizards/ddmrp_run_view.xml",
"data/ir_cron.xml",
],
"demo": [
"demo/res_partner_demo.xml",
"demo/product_category_demo.xml",
"demo/product_product_demo.xml",
"demo/product_supplierinfo_demo.xml",
"demo/mrp_bom_demo.xml",
"demo/stock_warehouse_orderpoint_demo.xml",
],
"license": "AGPL-3",
'installable': True,
'application': True,
}
34 changes: 34 additions & 0 deletions ddmrp/data/ir_cron.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo noupdate="1">

<record forcecreate="True"
id="ir_cron_ddmrp_calculation_scheduler_action" model="ir.cron">
<field name="name">Reordering Rule DDMRP calculation</field>
<field name="state">code</field>
<field name="user_id" ref="base.user_root"/>
<field name="interval_number">8</field>
<field name="interval_type">hours</field>
<field name="numbercall">-1</field>
<field name="priority">6</field>
<field eval="False" name="doall"/>
<field name="model_id" ref="stock.model_stock_warehouse_orderpoint"/>
<field name="code">model.cron_ddmrp(True)</field>
</record>

<record forcecreate="True"
id="ir_cron_ddmrp_adu_calculation_scheduler_action" model="ir.cron">
<field name="name">DDMRP Buffer ADU calculation</field>
<field name="state">code</field>
<field name="user_id" ref="base.user_root"/>
<field name="interval_number">1</field>
<field name="interval_type">days</field>
<field name="numbercall">-1</field>
<field name="priority">3</field>
<field name="mutually_exclusive_cron_ids"
eval="[(6, 0, [ref('ir_cron_ddmrp_calculation_scheduler_action'),])]"/>
<field eval="False" name="doall"/>
<field name="model_id" ref="stock.model_stock_warehouse_orderpoint"/>
<field name="code">model.cron_ddmrp_adu(True)</field>
</record>

</odoo>
24 changes: 24 additions & 0 deletions ddmrp/data/product_adu_calculation_method_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo noupdate="1">

<record id="adu_calculation_method_fixed"
model="product.adu.calculation.method">
<field name="name">Fixed</field>
<field name="method">fixed</field>
</record>

<record id="adu_calculation_method_past_120"
model="product.adu.calculation.method">
<field name="name">Past (120 days)</field>
<field name="method">past</field>
<field name="horizon">120</field>
</record>
<record id="adu_calculation_method_future_120"
model="product.adu.calculation.method">
<field name="name">Future (120 days)</field>
<field name="method">future</field>
<field name="use_estimates">True</field>
<field name="horizon">120</field>
</record>

</odoo>
Loading

0 comments on commit 4bc3796

Please sign in to comment.