fdd30e368c0bf6fc360965363aeef76d4a5d0f67
Generic search bar was introduced with #65871. But the trigram search would fail if it encounters a (SQL) NULL text from the database. This is because when word_similarity() receives NULL as a parameter it returns NULL, and NULL not being a number cannot be compared with the similarity threshold. After this commit the trigram search will exclude matches returning a NULL similarity. Step to reproduce: - Enable trigram in the DB, run `CREATE EXTENSION pg_trgm;` in psql - Create a product, name it `myproduct` - Insert NULL values inside the translation table (not sure how the user did it): `update ir_translation set value = NULL where src = 'myproduct';` - Search 'mypro' in the eshop search bar -> Traceback opw-2680659 closes odoo/odoo#80426 X-original-commit: ef17edc32d4646c93e31e730249be83469951241 Signed-off-by: Romain Derie (rde) <rde@odoo.com>
…
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%