<commit_before>from odoo import models, fields, api, _
from odoo.addons.queue_job.job import job
import odoorpc


class StockPicking(models.Model):

    _inherit = "stock.picking"

    @api.multi
    def action_done(self):
        super().action_done()
        for picking in self:
            if picking.picking_type_id.id == self.env.ref('automatize_edi_it.picking_type_receive_top_deposit').id:
                # Notify odoo ES that the picking is done
                self.with_delay(eta=10, priority=8).notify_picking_done(picking.purchase_id.remark)

    @api.multi
    def retry_notify_picking_done(self):
        for pick in self:<commit_msg>[FIX]picking_sync_it: devolvemos el resultado de la herencia<commit_after>from odoo import models, fields, api, _
from odoo.addons.queue_job.job import job
import odoorpc


class StockPicking(models.Model):

    _inherit = "stock.picking"

    @api.multi
    def action_done(self):
        res = super().action_done()
        for picking in self:
            if picking.picking_type_id.id == self.env.ref('automatize_edi_it.picking_type_receive_top_deposit').id:
                # Notify odoo ES that the picking is done
                self.with_delay(eta=10, priority=8).notify_picking_done(picking.purchase_id.remark)
        return res

    @api.multi
    def retry_notify_picking_done(self):
        for pick in self:
{'fraction_non_alphanumeric': 0.08892128279883382, 'fraction_numerical': 0.004373177842565598, 'mean_word_length': 3.098507462686567, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2004046', 'n_tokens_mistral': 462, 'n_tokens_neox': 443, 'n_words': 96}