This commit is contained in:
gsinghpal
2026-04-28 19:39:37 -04:00
parent 2d42b33d68
commit 13e300d90e
103 changed files with 4959 additions and 331 deletions

View File

@@ -3,6 +3,8 @@
# License OPL-1 (Odoo Proprietary License v1.0)
from odoo import fields, models
from odoo.addons.fusion_plating.models._fp_uom_selection import FP_UOM_SELECTION
class FpDischargeLimit(models.Model):
_name = 'fusion.plating.discharge.limit'
@@ -18,8 +20,11 @@ class FpDischargeLimit(models.Model):
('combined', 'Combined Sewer'), ('air', 'Air Emission'), ('other', 'Other')],
string='Discharge Point', default='sanitary', required=True,
)
limit_value = fields.Float(string='Limit', digits=(16, 4))
uom = fields.Char(string='UoM')
limit_value = fields.Float(string='Limit', digits=(16, 4),
help='Numerical limit, expressed in the unit selected below.')
uom = fields.Selection(FP_UOM_SELECTION, string='UoM',
help='Unit the limit is enforced in (typical: mg/L for liquid '
'discharge, mg/m³ for air emissions).')
limit_type = fields.Selection(
[('max', 'Maximum'), ('min', 'Minimum'), ('range', 'Range'), ('ceiling', 'Hard Ceiling')],
string='Limit Type', default='max', required=True,