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

Inputs Method Outputs
"""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)

Back to entity