Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.0][FIX] l10n_es_partner: Inject _rec_names_search properly #4058

Merged

Conversation

pedrobaeza
Copy link
Member

Forward-port of #4057

Previous patch was overriding _auto_init method for injecting the comercial field in the list of fields to search for (_rec_names_search), but this method is only called on module installation/update, so if you restart the Odoo server after that, you lose the injection.

Thus, let's inject it if not present when calling name_search, and this way we always have it available.

@Tecnativa TT55241

Previous patch was overriding _auto_init method for injecting the
comercial field in the list of fields to search for (_rec_names_search),
but this method is only called on module installation/update, so if
you restart the Odoo server after that, you lose the injection.

Thus, let's inject it if not present when calling name_search, and
this way we always have it available.

TT55241
@pedrobaeza pedrobaeza added this to the 17.0 milestone Mar 4, 2025
@pedrobaeza
Copy link
Member Author

Solución al problema planteado en #4029

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 17.0-ocabot-merge-pr-4058-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 7ce4823 into OCA:17.0 Mar 4, 2025
7 checks passed
@OCA-git-bot
Copy link
Contributor

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

@pedrobaeza pedrobaeza deleted the 17.0-fix-l10n_es_partner-name_search branch March 4, 2025 08:08
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.

3 participants