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

Module: Inventory

Entity: stock.move

Compute Method: _compute_reference

Inputs Method Outputs
for move in self:
            if move.is_inventory:
                if move.inventory_name:
                    move.reference = move.inventory_name
                else:
                    move.reference = _('Product Quantity Confirmed') if move.uom_id.is_zero(move.quantity) else _('Product Quantity Updated')
                    if move.create_uid and move.create_uid.id != SUPERUSER_ID:
                        move.reference += f' ({move.create_uid.display_name})'
            else:
                move.reference = move.picking_id.name

Back to entity