diff --git a/stock_storage_type/__manifest__.py b/stock_storage_type/__manifest__.py index 298b2eb054..7e1986ce9e 100644 --- a/stock_storage_type/__manifest__.py +++ b/stock_storage_type/__manifest__.py @@ -1,5 +1,5 @@ -# Copyright 2019-2021 Camptocamp SA -# Copyright 2019-2021 Jacques-Etienne Baudoux (BCIM) +# Copyright 2019 Camptocamp SA +# Copyright 2019 Jacques-Etienne Baudoux (BCIM) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl) { "name": "Stock Storage Type", @@ -9,6 +9,7 @@ "category": "Warehouse Management", "website": "https://github.com/OCA/wms", "author": "Camptocamp, BCIM, Odoo Community Association (OCA)", + "maintainers": ["jbaudoux"], "license": "AGPL-3", "application": False, "installable": True, diff --git a/stock_storage_type/models/stock_location.py b/stock_storage_type/models/stock_location.py index 3fb96722be..71708fdf57 100644 --- a/stock_storage_type/models/stock_location.py +++ b/stock_storage_type/models/stock_location.py @@ -334,16 +334,16 @@ def _get_pack_putaway_strategy(self, putaway_location, quant, product): package_storage_type = False if quant: package_storage_type = quant.package_id.package_storage_type_id - _logger.debug( - "Computing putaway for pack %s (%s)" - % (quant.package_id.name, quant.package_id) - ) # I'm not sure about this. I had to add the line, because there is a # second call to get_putaway_strategy which is made a 'leaf' location # as putaway_location which does not match the package storage type in # the project. This could be caused by another module, I'm not sure... if not package_storage_type: return putaway_location + _logger.debug( + "Computing putaway for pack %s (%s)" + % (quant.package_id.name, quant.package_id) + ) dest_location = putaway_location or self _logger.debug("putaway location: %s", dest_location.name) package_locations = self.env["stock.storage.location.sequence"].search(