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

Module: eCommerce

Entity: sale.order.line

Compute Method: _compute_name_short

Inputs Method Outputs
  • product_id
""" Compute a short name for this sale order line, to be used on the website where we don't have much space.
            To keep it short, instead of using the first line of the description, we take the product name without the internal reference.
        """
for record in self:
            record.name_short = record.product_id.with_context(display_default_code=False).display_name

Back to entity