Files
Odoo-Modules/fusion-plating/fusion_plating_bridge_mrp/models/mrp_workcenter.py
gsinghpal be611876ad changes
2026-04-12 09:09:50 -04:00

24 lines
790 B
Python

# -*- coding: utf-8 -*-
# Copyright 2026 Nexa Systems Inc.
# License OPL-1 (Odoo Proprietary License v1.0)
# Part of the Fusion Plating product family.
from odoo import fields, models
class MrpWorkcenter(models.Model):
"""Extend MRP work centre with Fusion Plating facility and work centre."""
_inherit = 'mrp.workcenter'
x_fc_facility_id = fields.Many2one(
'fusion.plating.facility',
string='Plating Facility',
help='The Fusion Plating facility this MRP work centre belongs to.',
)
x_fc_fp_work_center_id = fields.Many2one(
'fusion.plating.work.center',
string='FP Work Centre',
domain="[('facility_id', '=', x_fc_facility_id)]",
help='The Fusion Plating work centre mirrored by this MRP work centre.',
)