[FIX] sale_stock: add category routes

The product category routes should also be added in the list of routes
checked since they are also used in _search_suitable_rule.

opw-653991
This commit is contained in:
Nicolas Martinelli
2015-12-01 14:50:24 +01:00
parent 5eecd2a21a
commit ed19f13843
+1 -1
View File
@@ -193,7 +193,7 @@ class SaleOrderLine(models.Model):
which is the case in MTO, Cross-Dock or Drop-Shipping
"""
is_available = False
product_routes = self.route_id or self.product_id.route_ids
product_routes = self.route_id or (self.product_id.route_ids + self.product_id.categ_id.total_route_ids)
# Check MTO
wh_mto_route = self.order_id.warehouse_id.mto_pull_id.route_id