Skip to content

[18.0][MIG] base_name_search_improved: Migration to 18.0 - #3133

Merged
OCA-git-bot merged 76 commits into
OCA:18.0from
adhoc-dev:18.0-t-43308-lef
Mar 16, 2025
Merged

[18.0][MIG] base_name_search_improved: Migration to 18.0#3133
OCA-git-bot merged 76 commits into
OCA:18.0from
adhoc-dev:18.0-t-43308-lef

Conversation

@lef-adhoc

Copy link
Copy Markdown
Contributor

Migrated through this pr #2831

dreispt and others added 30 commits November 26, 2024 12:41
Currently translated at 100.0% (2 of 2 strings)

Translation: server-tools-9.0/server-tools-9.0-base_name_search_improved
Translate-URL: https://translation.odoo-community.org/projects/server-tools-9-0/server-tools-9-0-base_name_search_improved/ca/
- Descriptor: change __openerp__.py file to __manifest__.py also update module
  version from 9.0.1.0.0 to 11.0.1.0.0
- Update README using guideline
- Views: replace view tag openerp to odoo and rename files to match guideline
- Models

  - update imports from openerp to odoo
  - remove enconding line # -*- coding: utf-8 -*-
  - update to make it compatible
  - remove use of SUPERUSER_ID use sudo instead.
  - rename class name to make it match with guideline.
  - update methods to match api used in version 11.0
  - fix pylint errors
  - replace use of non exist self._model with self._name
  - use `Model `is not None instead of if `Model` this becuase the last one is
    a empty recordset and this one was evaluate to False and never was
    patching the method.

- apply changes resquested/suggested in the PR by the reviewers.
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-14.0/server-tools-14.0-base_name_search_improved
Translate-URL: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-base_name_search_improved/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-14.0/server-tools-14.0-base_name_search_improved
Translate-URL: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-base_name_search_improved/
@lef-adhoc lef-adhoc mentioned this pull request Nov 26, 2024
42 tasks
@lef-adhoc
lef-adhoc force-pushed the 18.0-t-43308-lef branch 4 times, most recently from 5fda9a2 to ecc6179 Compare November 26, 2024 18:49

@florenciafrigieri2 florenciafrigieri2 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Functional review ok!

@nicolascol nicolascol left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@ced-adhoc ced-adhoc left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@ced-adhoc

Copy link
Copy Markdown

Hi @pedrobaeza , could you please check this pr? thanks in advance!

@pedrobaeza

Copy link
Copy Markdown
Member

/ocabot migration base_name_search_improved

A review by a PSC or maintainer is missing. cc @dreispt

@OCA-git-bot OCA-git-bot added this to the 18.0 milestone Feb 13, 2025
limit = limit or 0
results = []

for rec_name in all_names:

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.

The comments for these two for and the following if are important to understand why this code is here, and should be kept. When the reason for a piece of code is not immediately obvious, is is helpful to have a comment hinting on the why.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I put back the original comments in the code, is that okay?

@saxomanu

Copy link
Copy Markdown

@lef-adhoc
When search in smart search (exemple in contact, search view), if no result, all record is display

@lef-adhoc

Copy link
Copy Markdown
Contributor Author

@saxomanu Can you try now?
I also added the cache refresh in the search views when adding or removing the search from smart search.

@saxomanu

saxomanu commented Mar 13, 2025

Copy link
Copy Markdown

@lef-adhoc Ok, thanx, it's all good now.

@dreispt

dreispt commented Mar 16, 2025

Copy link
Copy Markdown
Member

/ocabot migration base_name_search_improved
/ocabot merge nobump

@OCA-git-bot

Copy link
Copy Markdown
Contributor

On my way to merge this fine PR!
Prepared branch 18.0-ocabot-merge-pr-3133-by-dreispt-bump-nobump, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit 6c8bc32 into OCA:18.0 Mar 16, 2025
@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

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.