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.lot

Compute Method: _compute_name

View 18.0 View 20.0
Inputs Method Outputs
  • name
  • product_id
  • product_id.lot_sequence_id
+ for lot in self:
+             if not lot.name:
+                 lot.name = lot.product_id.lot_sequence_id.next_by_id() if lot.product_id.lot_sequence_id else False
  • name

Back to entity