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

27 lines
989 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 ResCompany(models.Model):
"""Extend company with a default nuclear records retention policy.
Nuclear quality records typically have to be retained for 40 years
or longer — far beyond the standard document-retention rule of a
commercial shop. This field sets the company-wide default used
when a pedigree record has no N299 level linked or when a higher
authority needs to be applied.
"""
_inherit = 'res.company'
x_fc_nuclear_retention_years = fields.Integer(
string='Nuclear Retention (Years)',
default=40,
help='Default records-retention period for nuclear quality records, '
'applied when no N299 level or spec override is set. Typical '
'Canadian nuclear practice is 40 years or life-of-plant.',
)