l10n_br_crm
Adds Brazilian fiscal identification and address localization to CRM leads so opportunities and partners follow Brazilian requirements.
Key Features
- crm.lead: Provides Brazilian legal name, CNPJ/CPF, state and municipal registration, RG, and structured street components on leads via the localization mixin.
- crm.lead: Displays localization fields only when the lead or linked partner is in Brazil through a computed visibility flag to keep other cases concise.
- crm.lead: Formats CNPJ/CPF numbers and ZIP codes and mirrors selected Brazilian city records into the standard city field on onchange.
- crm.lead: Validates CNPJ, CPF, and state registration values using localization checks tied to the lead’s country and state.
- crm.lead: Pulls fiscal and address data from the chosen partner and pushes the same details when creating partners from leads for both companies and individuals.
- crm.lead quick create: Keeps Brazilian fiscal fields available in the quick opportunity creation dialog so localized data is stored even when hidden.