mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
22 lines
618 B
Python
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,
|
|
)
|