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 FpWasteStream(models.Model):
|
||||
_name = 'fusion.plating.waste.stream'
|
||||
@@ -19,8 +21,12 @@ class FpWasteStream(models.Model):
|
||||
[('liquid', 'Liquid'), ('solid', 'Solid'), ('sludge', 'Sludge'), ('gas', 'Gas')],
|
||||
string='Physical State', default='liquid',
|
||||
)
|
||||
generation_rate = fields.Float(string='Generation Rate')
|
||||
generation_uom = fields.Char(string='Rate UoM', default='kg/day')
|
||||
generation_rate = fields.Float(string='Generation Rate',
|
||||
help='Average rate this stream is produced at, expressed in the '
|
||||
'rate unit below (typical: kg/day, L/day).')
|
||||
generation_uom = fields.Selection(FP_UOM_SELECTION, string='Rate UoM',
|
||||
default='kg_day',
|
||||
help='Unit of the generation rate (kg/day, L/day, kg/month, etc.).')
|
||||
disposal_method = fields.Char(string='Disposal Method')
|
||||
approved_carrier_id = fields.Many2one('res.partner', string='Approved Carrier', domain=[('is_company', '=', True)])
|
||||
approved_facility_id = fields.Many2one('res.partner', string='Approved Receiving Facility', domain=[('is_company', '=', True)])
|
||||
|
||||
Reference in New Issue
Block a user