mirror of
https://gitlab.com/datalifeit/trytond-stock_product_category_location
synced 2023-12-14 04:33:11 +01:00
Respect unit load location
This commit is contained in:
parent
9c8fd98aef
commit
1608a6496c
2 changed files with 4 additions and 1 deletions
2
stock.py
2
stock.py
|
@ -11,7 +11,7 @@ class ShipmentOut:
|
|||
|
||||
def _get_inventory_move(self, move):
|
||||
res = super(ShipmentOut, self)._get_inventory_move(move)
|
||||
if not res:
|
||||
if not res or hasattr(res, 'unit_load'):
|
||||
return res
|
||||
for c in res.product.categories:
|
||||
_from_location = c.get_default_location(
|
||||
|
|
|
@ -5,6 +5,9 @@ depends:
|
|||
res
|
||||
stock_location_notebook
|
||||
|
||||
extras_depend:
|
||||
stock_unit_load
|
||||
|
||||
xml:
|
||||
location.xml
|
||||
product.xml
|
||||
|
|
Loading…
Reference in a new issue