Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Product Route Profile

Entity: product.template

Compute Method: _compute_route_ids

View 17.0
Inputs Method Outputs
  • force_route_profile_id
  • force_route_profile_id.route_ids
  • force_route_profile_id.route_ids.ids
  • route_profile_id
  • route_profile_id.route_ids
  • route_profile_id.route_ids.ids
- for rec in self.sudo():
-             if rec.force_route_profile_id:
-                 rec.route_ids = [(6, 0, rec.force_route_profile_id.route_ids.ids)]
-             elif rec.route_profile_id:
-                 rec.route_ids = [(6, 0, rec.route_profile_id.route_ids.ids)]
-             else:
-                 rec.route_ids = False
  • route_ids

Back to entity