changes
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
|
||||
from odoo import api, fields, models
|
||||
|
||||
from odoo.addons.fusion_plating.models._fp_uom_selection import FP_UOM_SELECTION
|
||||
|
||||
|
||||
class FpChemical(models.Model):
|
||||
"""Physical chemical container in the shop's chemical inventory.
|
||||
@@ -52,11 +54,14 @@ class FpChemical(models.Model):
|
||||
)
|
||||
container_size = fields.Float(
|
||||
string='Container Size',
|
||||
help='Numerical size of one container, expressed in the unit '
|
||||
'selected below (e.g. 200 with unit "L" for a 200 L drum).',
|
||||
)
|
||||
container_uom = fields.Char(
|
||||
container_uom = fields.Selection(
|
||||
FP_UOM_SELECTION,
|
||||
string='Container UoM',
|
||||
help='Free-text unit of measure for the container size, '
|
||||
'e.g. L, kg, lb, gal.',
|
||||
help='Unit of measure for the container size — pick from the '
|
||||
'curated list to keep inventory consistent (L, kg, lb, gal).',
|
||||
)
|
||||
quantity_on_hand = fields.Float(
|
||||
string='Quantity On Hand',
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
|
||||
from odoo import api, fields, models
|
||||
|
||||
from odoo.addons.fusion_plating.models._fp_uom_selection import FP_UOM_SELECTION
|
||||
|
||||
|
||||
class FpExposureMonitoring(models.Model):
|
||||
"""An exposure monitoring sample.
|
||||
@@ -71,10 +73,13 @@ class FpExposureMonitoring(models.Model):
|
||||
concentration = fields.Float(
|
||||
string='Concentration',
|
||||
tracking=True,
|
||||
help='Measured exposure level, expressed in the unit selected below.',
|
||||
)
|
||||
uom = fields.Char(
|
||||
uom = fields.Selection(
|
||||
FP_UOM_SELECTION,
|
||||
string='Unit of Measure',
|
||||
help='Free-text unit, e.g. mg/m3, ppm, dBA.',
|
||||
help='Unit the exposure was measured in (typical: mg/m³ or ppm for '
|
||||
'air contaminants, dBA for noise).',
|
||||
)
|
||||
oel_reference = fields.Char(
|
||||
string='OEL Reference',
|
||||
|
||||
Reference in New Issue
Block a user