# -*- coding: utf-8 -*- # Copyright 2024-2026 Nexa Systems Inc. # License OPL-1 (Odoo Proprietary License v1.0) from odoo import fields, models class ProductTemplate(models.Model): _inherit = 'product.template' x_fc_repair_category_id = fields.Many2one( 'fusion.repair.product.category', string='Repair Category', help='Medical equipment category - drives intake template selection and ' 'technician skills filter for repairs of this product.', ) x_fc_warranty_months = fields.Integer( string='Warranty (Months)', default=12, help='Default warranty period for new units of this product. Used to auto-detect ' 'warranty status on repair intake (delivery date + warranty months >= today).', ) x_fc_maintenance_interval_months = fields.Integer( string='Maintenance Interval (Months)', default=0, help='If > 0, delivering a unit of this product auto-creates a maintenance contract ' 'with this recurring interval. Phase 3 feature.', ) x_fc_intake_template_id = fields.Many2one( 'fusion.repair.intake.template', string='Intake Template Override', help='Optional override of the intake template normally chosen from the ' 'repair category. Leave empty to use category default.', )