Skip to content
Snippets Groups Projects
Commit 3229239c authored by Achraf (abz)'s avatar Achraf (abz)
Browse files

[FIX] base: Invalid parent_id field in crm.lead for Mexico


Issue

    - Change country to Mexico
    - Install 'CRM'
    - Install 'l10n_mx_edi'
    - Try to open any lead in 'CRM'

    The same error is present in l10n_pe

Cause

    'l10n_mx_edi' and 'l10n_pe' use 'res.partner' in 'ir.ui.view'

Solution

    Adding a condition to prevent '_fields_view_get_address' in 'format.address.mixin'
    from rewritting the model and let ir.ui.view determine it

opw-2361875

closes odoo/odoo#60329

Signed-off-by: default avatarLaurent Smet <smetl@users.noreply.github.com>
parent f48fa3e3
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment