Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0][FIX] stock_storage_type: debug log #723

Merged
merged 1 commit into from
Aug 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions stock_storage_type/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright 2019-2021 Camptocamp SA
# Copyright 2019-2021 Jacques-Etienne Baudoux (BCIM) <[email protected]>
# Copyright 2019 Camptocamp SA
# Copyright 2019 Jacques-Etienne Baudoux (BCIM) <[email protected]>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
{
"name": "Stock Storage Type",
Expand All @@ -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,
Expand Down
8 changes: 4 additions & 4 deletions stock_storage_type/models/stock_location.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down