Respect unit load location

This commit is contained in:
Sergio Morillo 2018-09-27 14:15:42 +02:00
parent 9c8fd98aef
commit 1608a6496c
2 changed files with 4 additions and 1 deletions

View file

@ -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(

View file

@ -5,6 +5,9 @@ depends:
res
stock_location_notebook
extras_depend:
stock_unit_load
xml:
location.xml
product.xml