<commit_before># -*- coding: utf-8 -*-
# © <YEAR(S)> <AUTHOR(S)>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from openerp import fields, models


class StockPicking(models.Model):
    _inherit = "stock.picking"

    def force_transfer(self, force_qty=True):
        for pick in self:
            for pack in pick.pack_operation_ids:
                if not pack.qty_done > 0:
                    pack.unlink()
            pick.do_transfer()
<commit_msg>[IMP] commit inherit force_transfer<commit_after># -*- coding: utf-8 -*-
# © <YEAR(S)> <AUTHOR(S)>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from openerp import fields, models


class StockPicking(models.Model):
    _inherit = "stock.picking"

    # def force_transfer(self, force_qty=True):
    #     for pick in self:
    #         for pack in pick.pack_operation_ids:
    #             if not pack.qty_done > 0:
    #                 pack.unlink()
    #         pick.do_transfer()

{'fraction_non_alphanumeric': 0.13333333333333333, 'fraction_numerical': 0.00808080808080808, 'mean_word_length': 2.325503355704698, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '7239092', 'n_tokens_mistral': 337, 'n_tokens_neox': 325, 'n_words': 77}