Skip to content

Commit

Permalink
Merge PR camptocamp#40 into 13.0
Browse files Browse the repository at this point in the history
Signed-off-by guewen
  • Loading branch information
OCA-git-bot committed Aug 12, 2020
2 parents 9137b13 + e8e7224 commit 46013a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions stock_storage_type/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"application": False,
"installable": True,
"depends": [
"stock_putaway_hook",
"base_m2m_custom_field",
"stock_quant_package_dimension",
"web_domain_field",
Expand Down
7 changes: 5 additions & 2 deletions stock_storage_type/models/stock_location.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,11 @@ def _compute_allowed_location_storage_type_ids(self):
(6, 0, parent.allowed_location_storage_type_ids.ids)
]

def _get_putaway_strategy(self, product):
putaway_location = super()._get_putaway_strategy(product)
# method provided by "stock_putaway_hook"
def _putaway_strategy_finalizer(self, putaway_location, product):
putaway_location = super()._putaway_strategy_finalizer(
putaway_location, product
)
quant = self.env.context.get("storage_quant")
return self._get_pack_putaway_strategy(putaway_location, quant, product)

Expand Down

0 comments on commit 46013a4

Please sign in to comment.