[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.
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 |
e04bd2e to
b1a64e0
Compare
In this migration, the search function has been adapted to the current product search function in any search engine on the website. TT58473
b1a64e0 to
cc73821
Compare
|
This PR has the |
|
/ocabot merge nobump |
|
On my way to merge this fine PR! |
|
Congratulations, your PR was merged at d3dd29f. Thanks a lot for contributing to OCA. ❤️ |
@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.