| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Community Apps Dependencies | Show |
| Lines of code | 1062 |
| Technical Name |
oql_pro |
| License | OPL-1 |
| Website | https://github.com/chrisking94/odoo_addons/tree/main/oql |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Community Apps Dependencies | Show |
| Lines of code | 1062 |
| Technical Name |
oql_pro |
| License | OPL-1 |
| Website | https://github.com/chrisking94/odoo_addons/tree/main/oql |
OQL Pro
Professional code completion and intelligent hints for OQL (Odoo Query Language). Transform your OQL editing experience with smart field suggestions, term completion, and value recommendations.
Smart. Fast. Intelligent.
OQL, Code Completion, IntelliSense, Query Editor
Live Preview
Field name suggestions Term path completion Smart value hints
Why OQL Pro?
Supercharge your OQL queries with IDE-like intelligence. Write queries faster and with fewer errors.
Field Completion
Instant suggestions for model fields with descriptions from field labels and help text.
Term Navigation
Smart completion for relationship paths showing available models and access routes.
Value Hints
Context-aware value suggestions for selection, relational, date, and text fields.
Easy Integration
Simple API integration with custom OQL editors and IDE plugins.
Get Started in 3 Steps
Install Base OQL Module
OQL Pro requires the base oql module. Install it first:
-
Download OQL Base Module
Get theoqlmodule from Odoo App Store -
Install via Odoo Interface
Go to: Apps → Search "oql" → Click Install
Install OQL Pro
Install the OQL Pro module to enable professional features:
-
Place in Addons Directory
Copy theoql_profolder to your Odoo addons path -
Install via Odoo Interface
Go to: Apps → Click Update Apps List → Search "oql_pro" → Click Install
Note: OQL Pro will auto-install when bothoqlis present
Add OQL Fields to Your Models
Define fields with the oql_model parameter to enable OQL queries:
from odoo import models, fields
class MyModel(models.Model):
_name = 'my.model'
# Define OQL field with model specification
customer_query = fields.Text(
string='Customer Query',
oql_model='res.partner' # Enable OQL for this field
)
# Get code completion hints
def get_query_hints(self, query, cursor_position):
return self.get_oql_hints(
field='customer_query',
query=query,
cursor=cursor_position
)
You're All Set!
Your OQL fields now have intelligent code completion. Build custom editors with the hint API!
Powerful Features
Field Name Completion
Automatically suggests field names from the target model with helpful descriptions including field labels and documentation.
Relationship Path Hints
Navigate complex model relationships with intelligent term completion showing all available relationship paths.
Date & Time Shortcuts
Quick date/time values like "Today", "7 days ago", "Start of month" for faster query writing.
Database Value Suggestions
Real-time suggestions from actual database values for text, numeric, and relational fields.
API Integration
Build custom OQL editors with our powerful hint API. Perfect for web interfaces, desktop applications, and IDE plugins.
Python API Example
# Get OQL completion hints programmatically hints = record.get_oql_hints( field='query_field', query='customer.orders.', cursor=17, limit=50 ) # Returns structured hint data # [{'type': 'field', 'value': 'total', 'desc': 'Total Amount'}, ...]
Web Editors
Build browser-based OQL editors
Desktop Apps
Integrate with desktop applications
IDE Plugins
Create IDE extensions for OQL
Ready to Supercharge Your OQL Experience?
Install OQL Pro and start writing queries with intelligent assistance today.
Star on GitHubOdoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module