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

Module: Project

Entity: project.update

Compute Method: _compute_name_cropped

View 17.0 View 20.0
Inputs Method Outputs
  • name
for update in self:
-             update.name_cropped = (update.name[:57] + '...') if len(update.name) > 60 else update.name
+             update.name_cropped = (update.name[:57] + '...') if update.name and len(update.name) > 60 else update.name
  • name_cropped

Back to entity