Files
manufacture/mrp_request_workcenter_cycle/models/product.py
2020-12-09 21:36:28 +01:00

17 lines
469 B
Python
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Copyright 2020 David BEAL @ Akretion
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class ProductProduct(models.Model):
_inherit = "product.product"
qty_by_workcenter_ids = fields.One2many(
comodel_name="product.workcenter.quantity",
inverse_name="product_id",
groups="mrp_production_request.group_mrp_production_request_user",
string="Capacity by workcenter",
)