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

Module: Events Organization

Entity: event.registration

Compute Method: _compute_company_name

View 19.0 View 20.0
Inputs Method Outputs
  • company_name
  • partner_id
for registration in self:
            if not registration.company_name and registration.partner_id:
                registration.company_name = registration._synchronize_partner_values(
                    registration.partner_id,
-                     fnames={'company_name'},
-                 ).get('company_name') or False
+                     fnames={'parent_name'},
+                 ).get('parent_name') or False
  • company_name

Back to entity