<commit_before># Copyright 2019 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
from odoo import api, models


class PutAwayStrategy(models.Model):
    _inherit = 'product.putaway'

    def _get_putaway_rule(self, product):
        """Activate constraint when looking for putaway rules"""
        self = self.with_context(
            _filter_on_constraints=True, _constraint_product=product.id
        )
        return super()._get_putaway_rule(product)<commit_msg>fixup! 12.0 create module stock move location dest constraint base<commit_after># Copyright 2019 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
from odoo import models


class PutAwayStrategy(models.Model):
    _inherit = 'product.putaway'

    def _get_putaway_rule(self, product):
        """Activate constraint when looking for putaway rules"""
        self = self.with_context(
            _filter_on_constraints=True, _constraint_product=product.id
        )
        return super()._get_putaway_rule(product)
{'fraction_non_alphanumeric': 0.09326923076923077, 'fraction_numerical': 0.014423076923076924, 'mean_word_length': 3.689189189189189, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '7321550', 'n_tokens_mistral': 324, 'n_tokens_neox': 306, 'n_words': 77}