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 FpWasteManifest(models.Model):
_name = 'fusion.plating.waste.manifest'
@@ -15,8 +17,10 @@ class FpWasteManifest(models.Model):
facility_id = fields.Many2one('fusion.plating.facility', related='waste_stream_id.facility_id', store=True, readonly=True)
company_id = fields.Many2one('res.company', related='facility_id.company_id', store=True, readonly=True)
ship_date = fields.Date(string='Ship Date', default=fields.Date.context_today, tracking=True)
quantity = fields.Float(string='Quantity', digits=(16, 3))
uom = fields.Char(string='UoM', default='kg')
quantity = fields.Float(string='Quantity', digits=(16, 3),
help='Quantity shipped, expressed in the unit selected below.')
uom = fields.Selection(FP_UOM_SELECTION, string='UoM', default='kg',
help='Unit of the shipped quantity (kg, L, m³, etc.).')
carrier_id = fields.Many2one('res.partner', string='Carrier', domain=[('is_company', '=', True)], tracking=True)
receiver_id = fields.Many2one('res.partner', string='Receiver', domain=[('is_company', '=', True)], tracking=True)
manifest_number = fields.Char(string='Manifest #', tracking=True)