mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[12.0][ADD] mrp_multi_level_estimate
This commit is contained in:
committed by
JasminSForgeFlow
parent
9cec80ad91
commit
94bfa14a83
1
mrp_multi_level_estimate/models/__init__.py
Normal file
1
mrp_multi_level_estimate/models/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from . import product_mrp_area
|
||||
22
mrp_multi_level_estimate/models/product_mrp_area.py
Normal file
22
mrp_multi_level_estimate/models/product_mrp_area.py
Normal 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."),
|
||||
]
|
||||
Reference in New Issue
Block a user