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

Module: Purchase

Entity: purchase.order.line

Compute Method: _compute_translated_product_name

View 19.0
Inputs Method Outputs
  • product_id
  • partner_id
  • partner_id.lang
- for line in self:
-             line.translated_product_name = line.product_id.with_context(
-                 lang=line.partner_id.lang,
-             ).display_name
  • translated_product_name

Back to entity