-
-
Notifications
You must be signed in to change notification settings - Fork 534
[18.0][MIG] website_sale_barcode_search: Migration to version 18.0 #1131
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
base: 18.0
Are you sure you want to change the base?
[18.0][MIG] website_sale_barcode_search: Migration to version 18.0 #1131
Conversation
8645b92 to
4049cdb
Compare
|
/ocabot migration website_sale_barcode_search |
carlos-lopez-tecnativa
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I tried to test and search, I got this error. Please review
I think this code needs to be adapted to use something like product_variant_ids.barcode.
https://github.com/odoo/odoo/blob/54f10b56f577ad9ed5575bd396dba7d20d22fc2e/addons/website_sale/models/product_template.py#L776
4049cdb to
fec4edd
Compare
I don't replicate that error locally. It's a calculated field, but when there are no variants, the barcode goes in the product template. Otherwise, it's calculated from the variants, but as I said, I don't replicate it. I've pushed again to restart runboat in case it was a runbot error, and I haven't replicated it either.
Is there a specific test where the error appears? |
I just type any word in the search panel. I noticed that when I type more than three words, this error is raised. It’s weird, but you can reproduce it in Runboat. Looking deeper, I imagine this is related to PostgreSQL’s trigram index: website_sale_barcode_search.mp4 |
fec4edd to
e04bd2e
Compare
In this migration, the search function has been adapted to the current product search function in any search engine on the website. TT58473
e04bd2e to
b1a64e0
Compare
carlos-lopez-tecnativa
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@Tecnativa TT58473
@carlos-lopez-tecnativa @carlosdauden please review
In this migration, the search function has been adapted to the current
product search function in any search engine on the website.