24 lines
969 B
Python
24 lines
969 B
Python
# -*- coding: utf-8 -*-
|
|
# Copyright 2026 Nexa Systems Inc.
|
|
# License OPL-1 (Odoo Proprietary License v1.0)
|
|
from odoo import fields, models
|
|
|
|
|
|
class FpRegulator(models.Model):
|
|
_name = 'fusion.plating.regulator'
|
|
_description = 'Fusion Plating - Regulator'
|
|
_order = 'jurisdiction_id, name'
|
|
|
|
name = fields.Char(string='Name', required=True, translate=True)
|
|
code = fields.Char(string='Code')
|
|
jurisdiction_id = fields.Many2one('fusion.plating.jurisdiction', string='Jurisdiction', ondelete='restrict')
|
|
category = fields.Selection(
|
|
[('environmental', 'Environmental'), ('health_safety', 'Health & Safety'),
|
|
('water', 'Water'), ('waste', 'Waste'), ('labour', 'Labour'),
|
|
('transport', 'Transport'), ('other', 'Other')],
|
|
string='Category', default='environmental',
|
|
)
|
|
website = fields.Char(string='Website')
|
|
contact_info = fields.Text(string='Contact Information')
|
|
active = fields.Boolean(default=True)
|