# -*- coding: utf-8 -*- # Copyright 2026 Nexa Systems Inc. # License OPL-1 (Odoo Proprietary License v1.0) # Part of the Fusion Plating product family. from odoo import models class SaleOrder(models.Model): _inherit = 'sale.order' def action_quotation_send(self): """Fire the quote_sent trigger when a quotation is emailed.""" res = super().action_quotation_send() Dispatch = self.env['fp.notification.template'] for order in self: Dispatch._dispatch( 'quote_sent', order, order.partner_id, sale_order=order, ) return res def action_confirm(self): res = super().action_confirm() Dispatch = self.env['fp.notification.template'] for order in self: Dispatch._dispatch( 'so_confirmed', order, order.partner_id, sale_order=order, ) return res