mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
19 lines
554 B
Python
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,
|
|
}
|