[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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user