Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: CRM
Entity: crm.lead
Compute Method: _compute_partner_name
| Inputs | Method | Outputs |
|---|---|---|
|
""" compute the new values when partner_id has changed """ - for lead in self: + to_reset = self.filtered(lambda l: not l.partner_id) + to_reset.partner_name = False + for lead in (self - to_reset): lead.update(lead._prepare_partner_name_from_partner(lead.partner_id)) |
|
