Skip to content

[19.0][FIX] l10n_es_partner: Force context to calculate complete_name with comercial - #4737

Merged
OCA-git-bot merged 1 commit into
OCA:19.0from
Tecnativa:19.0-fix-l10n_es_partner
Jan 16, 2026
Merged

[19.0][FIX] l10n_es_partner: Force context to calculate complete_name with comercial#4737
OCA-git-bot merged 1 commit into
OCA:19.0from
Tecnativa:19.0-fix-l10n_es_partner

Conversation

@pilarvargas-tecnativa

Copy link
Copy Markdown
Contributor

fwp #4658

complete_name is the field used to sort res.partner, but when calculated without context, the stored value ignored the sales rep name, producing an inconsistent visual order in the tree views when sorting by contact. The context is forced during the compute to include the sales rep in companies and contacts. In addition, a migration script is added to recalculate the affected records as it is a stored field.

@Tecnativa TT59646

@pedrobaeza @victoralmau please review

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @pedrobaeza,
some modules you are maintaining are being modified, check this out!

…comercial

complete_name is the field used to sort res.partner, but when calculated
without context, the stored value ignored the sales rep name, producing an
inconsistent visual order in the tree views when sorting by contact.
The context is forced during the compute to include the sales rep in
companies and contacts. In addition, a migration script is added to
recalculate the affected records as it is a stored field.

TT59646
@pedrobaeza pedrobaeza added this to the 19.0 milestone Jan 15, 2026

@pedrobaeza pedrobaeza left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/ocabot merge patch

@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 19.0-ocabot-merge-pr-4737-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit 0f4e998 into OCA:19.0 Jan 16, 2026
7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 9bf2a1d. Thanks a lot for contributing to OCA. ❤️

@pedrobaeza
pedrobaeza deleted the 19.0-fix-l10n_es_partner branch January 16, 2026 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants