[12.0][ADD] mrp_multi_level_estimate

This commit is contained in:
Lois Rilo
2019-08-05 16:14:36 +02:00
committed by JasminSForgeFlow
parent 9cec80ad91
commit 94bfa14a83
15 changed files with 798 additions and 0 deletions

View File

@@ -0,0 +1 @@
from . import product_mrp_area

View File

@@ -0,0 +1,22 @@
# Copyright 2019 Eficent Business and IT Consulting Services S.L.
# - Lois Rilo Antelo <lois.rilo@eficent.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class ProductMRPArea(models.Model):
_inherit = "product.mrp.area"
group_estimate_days = fields.Integer(
string="Group Days of Estimates",
default=1,
help="The days to group your estimates as demand for the MRP."
"It can be different from the lenght of the date ranges you "
"use in the estimates.",
)
_sql_constraints = [
("group_estimate_days_check", "CHECK( group_estimate_days >= 0 )",
"Group Days of Estimates must be greater than or equal to zero."),
]