changes
This commit is contained in:
@@ -88,7 +88,7 @@
|
||||
<field name="facility_id" ref="fusion_plating.demo_facility_main"/>
|
||||
<field name="location">Acid Cabinet 2</field>
|
||||
<field name="container_size">20.0</field>
|
||||
<field name="container_uom">L</field>
|
||||
<field name="container_uom">l</field>
|
||||
<field name="quantity_on_hand">12.0</field>
|
||||
<field name="reorder_point">5.0</field>
|
||||
</record>
|
||||
@@ -201,7 +201,7 @@
|
||||
<field name="sample_type">personal_air</field>
|
||||
<field name="substance">Chromium (VI)</field>
|
||||
<field name="concentration">0.008</field>
|
||||
<field name="uom">mg/m3</field>
|
||||
<field name="uom">mg_m3</field>
|
||||
<field name="oel_reference">Ontario Reg. 833 TWA</field>
|
||||
<field name="oel_limit">0.025</field>
|
||||
<field name="notes" type="html"><p>Personal air sample collected at chrome plating line 1 during normal operations.</p></field>
|
||||
@@ -214,7 +214,7 @@
|
||||
<field name="sample_type">personal_air</field>
|
||||
<field name="substance">Nickel (soluble compounds)</field>
|
||||
<field name="concentration">0.05</field>
|
||||
<field name="uom">mg/m3</field>
|
||||
<field name="uom">mg_m3</field>
|
||||
<field name="oel_reference">Ontario Reg. 833 TWA</field>
|
||||
<field name="oel_limit">0.1</field>
|
||||
<field name="notes" type="html"><p>Personal air sample collected at nickel plating station during tank maintenance.</p></field>
|
||||
|
||||
@@ -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