This commit is contained in:
gsinghpal
2026-05-21 03:37:25 -04:00
parent b2f483d67c
commit 1314f4581d
47 changed files with 5730 additions and 177 deletions

View File

@@ -3,6 +3,8 @@
# License OPL-1 (Odoo Proprietary License v1.0)
# Part of the Fusion Plating product family.
from markupsafe import Markup
from odoo import _, api, fields, models
from odoo.exceptions import UserError
@@ -186,9 +188,9 @@ class FpDelivery(models.Model):
}
shipment = self.env['fusion.shipment'].sudo().create(vals)
self.x_fc_outbound_shipment_id = shipment.id
self.message_post(body=_(
self.message_post(body=Markup(_(
'Outbound shipment <b>%s</b> created (draft).'
) % shipment.name)
)) % shipment.name)
return self.action_view_outbound_shipment()
def action_view_outbound_shipment(self):