changes
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user