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 api, fields, models
from odoo.addons.fusion_plating.models._fp_uom_selection import FP_UOM_SELECTION
class FpSpillRegister(models.Model):
_name = 'fusion.plating.spill.register'
@@ -16,8 +18,10 @@ class FpSpillRegister(models.Model):
spill_date = fields.Datetime(string='Spill Date', required=True, default=fields.Datetime.now, tracking=True)
reported_by_id = fields.Many2one('res.users', string='Reported By', default=lambda s: s.env.user)
substance = fields.Char(string='Substance', tracking=True)
quantity = fields.Float(string='Quantity', digits=(16, 3))
uom = fields.Char(string='UoM', default='L')
quantity = fields.Float(string='Quantity', digits=(16, 3),
help='Quantity spilled, expressed in the unit selected below.')
uom = fields.Selection(FP_UOM_SELECTION, string='UoM', default='l',
help='Unit of the spill quantity (L for liquids, kg for solids).')
location = fields.Char(string='Location')
containment_action = fields.Text(string='Containment Action')
regulator_notified = fields.Boolean(string='Regulator Notified', tracking=True)