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

Module: Purchase Container

Entity: purchase.container

Compute Method: _compute_code

View 18.0
Inputs Method Outputs
  • code
  • name
- for record in self:
-             if not record.code:
-                 record.code = record._code_from_name(record.name)
  • code

Back to entity