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

@@ -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',