0
![Stack Overflow](http://cdn.sstatic.net/Sites/stackoverflow/img/apple-touch-icon.png)
In Odoo you can directly assign values.
record.x_available_routes=routes.ids
for record in self:
routes = record.product_id.x_all_route_ids
if not record.product_id.x_is_preorder_active:
# If the product has no stock, only keep routes that do not require stock
if record.p...