ecc58cb48294a647f042cd00f7c3fe43b203ac95
This commit fixes the name_search traceback on project tags when the `project_id` in context is set to `False`. Prior to commit odoo/odoo@05855b6b this check was still relevant since the implementation used the ORM search method. Since this commit, project_id must be an integer to be used in the SQL query. Steps to reproduce: - Open Project menu; - Go to My Tasks menu; - Create a new task; - Open task; - Click on Tags field. Current Behavior: ``` File "/home/src/odoo/odoo/models.py", line 1605, in name_search ids = self._name_search(name, args, operator, limit=limit) File "/home/src/odoo/addons/project/models/project.py", line 2756, in _name_search self.env.cr.execute(query, params) File "/home/src/odoo/odoo/sql_db.py", line 313, in execute res = self._obj.execute(query, params) psycopg2.errors.UndefinedFunction: operator does not exist: integer = boolean LINE 9: ON task.project_id = false ^ HINT: No operator matches the given name and argument types. You might need to add explicit type casts. ``` Expected Behavior: - No traceback and standard name_search behavior. closes odoo/odoo#116006 X-original-commit: f21bd6f47a75f5d6cbd442f30ef7df221e6fec7d Signed-off-by: Xavier Bol (xbo) <xbo@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%