[FIX] stock: avoid warning log during _get_orderpoint_action

`o.location_id.id == g['location_id']` =>
`Comparing apples and oranges: stock.location(243,) == (219 ...`
replace by the correct code and avoid warning.

task-2390516

X-original-commit: 461a3e737c4ffe048b738dd09f83571602324257
This commit is contained in:
Rémy Voet (ryv)
2021-01-22 15:49:11 +00:00
parent 17f723a7d4
commit 805502c3a9
+1 -1
View File
@@ -272,7 +272,7 @@ class StockWarehouseOrderpoint(models.Model):
for g in rules_groups:
if not g.get('route_id'):
continue
orderpoints = self.filtered(lambda o: o.location_id == g['location_id'])
orderpoints = self.filtered(lambda o: o.location_id.id == g['location_id'][0])
orderpoints.route_id = g['route_id']
def _get_product_context(self):