Files
stock-logistics-warehouse/stock_putaway_product_template/models/stock_location.py
sergio-teruel 760fd23e88 [MIG] stock_putaway_product_template: Migration to v15.0
[UPD] Update stock_putaway_product_template.pot
2023-09-14 12:57:43 -03:00

22 lines
618 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, quantity=0, package=None, packaging=None, additional_qty=None
):
return super(
StockLocation, self.with_context(filter_putaway_rule=True)
)._get_putaway_strategy(
product,
quantity=quantity,
package=package,
packaging=packaging,
additional_qty=additional_qty,
)