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

Module: Stock Move Source Relocation

Entity: stock.source.relocate

Compute Method: _compute_rule_message

View 18.0
Inputs Method Outputs
  • picking_type_id
  • location_id
  • relocate_location_id
- """Generate dynamically describing the rule for humans"""
- for rule in self:
-             if not (
-                 rule.picking_type_id and rule.location_id and rule.relocate_location_id
-             ):
-                 rule.rule_message = ""
-                 continue
-             rule.rule_message = rule._rule_message_template().format(rule=rule)
  • rule_message

Back to entity