Assign shipment internals with consumable products and from location has not warehouse
When assigning consumable products to a internal shipment that doesn't have a parent in the from location (has not a warehouse), an error occurs.
File "/trytond/modules/stock_product_location/location.py", line 75, in pick_product
self.set_product_location(field='from_location',
File "/trytond/modules/stock_product_location/location.py", line 61, in set_product_location
pattern.setdefault('warehouse', self.shipment.warehouse.id)
^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'id'
Source code stock_product_location main branch