Files
manufacture/mrp_repair_order/models/repair.py
2024-09-06 08:26:28 +02:00

19 lines
554 B
Python

# Copyright 2024 Antoni Marroig(APSL-Nagarro)<amarroig@apsl.net>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class RepairOrder(models.Model):
_inherit = "repair.order"
mrp_ids = fields.One2many("mrp.production", "repair_id", "Manufacting Orders")
def action_view_repair_manufacturing_order(self):
return {
"type": "ir.actions.act_window",
"view_mode": "form",
"res_model": "mrp.production",
"res_id": self.mrp_ids.id,
}