Files
stock-logistics-warehouse/stock_putaway_product_template/models/stock_location.py
Víctor Martínez 51626f5321 [MIG] stock_putaway_product_template: Migration to 13.0
[UPD] Update stock_putaway_product_template.pot

[UPD] README.rst
2021-11-11 10:06:42 +01:00

14 lines
382 B
Python

# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
# Copyright 2020 Tecnativa - Sergio Teruel
from odoo import models
class StockLocation(models.Model):
_inherit = "stock.location"
def _get_putaway_strategy(self, product):
return super(
StockLocation, self.with_context(filter_putaway_rule=True)
)._get_putaway_strategy(product)