# -*- 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 FpReceiving(models.Model): _inherit = 'fp.receiving' def action_accept(self): res = super().action_accept() Dispatch = self.env['fp.notification.template'] for rec in self: Dispatch._dispatch( 'parts_received', rec, rec.partner_id, sale_order=rec.sale_order_id, ) return res