Skip to content

Odoo Helper - VS Code Extension (v2.1.2)

The Cybrosys Assista: Odoo Helper is a specialized extension for Visual Studio Code designed to standardize and accelerate the Odoo development lifecycle. It integrates framework-aware tooling for module scaffolding, file generation, and intelligent code assistance.

Technical Capabilities

The extension integrates several core utilities to manage the Odoo development lifecycle.

1. Module Template Generator

Automates the creation of standard Odoo module structures.

  • Scaffolding: Generates manifests, models, views, and security directories.
  • Template Options: Selection of predefined architectural patterns based on functional requirements.
  • Workflow: Accessible via the context menu on any workspace directory.

2. Odoo File Creator

Provides standardized generation of framework-specific files.

  • File Types: Automated creation of Python models, XML views, and CSV security files.
  • Logic Mapping: Files are pre-populated with standard Odoo boilerplates and architectural structures.

3. OWL Component Creator

Automates the generation of Odoo Web Library (OWL) components with integrated manifest registration.

  • Scaffolding Options: Supports Common Components, Field Widgets, Public Components, and OWL Services.
  • Automated Registration: Automatically handles file registration in __manifest__.py and initializes mandatory JavaScript dependencies.

Learn more about OWL Component Creation

4. POS Screen Extension Tools

Specialized utilities for extending core Odoo Point of Sale (POS) functional areas.

  • Target Screens: Scaffolds for Product, Partner, Payment, Receipt, and Order Management screens.
  • System Automation: Automated JS/XML/SCSS generation and point_of_sale manifest dependency resolution.

Learn more about POS Screen Extension

5. Odoo Go-To-Definition

Enhances code exploration across large Odoo codebases.

  • Framework-Aware Navigation: Jump directly to the source of Odoo models, fields, and XML records, even across different modules.
  • Cross-Reference Resolution: Intelligently resolves technical names and external IDs to their definitions.

Learn more about Odoo Go-To-Definition

6. Odoo Connectivity

Connects your development environment to a live Odoo instance.

  • Remote Management: Install or upgrade modules directly from the editor.
  • Workflow Optimization: Reduces context switching between the IDE and the Odoo web client.

Learn more about Odoo Connectivity

6. Integrated Code Snippets

A repository of pre-validated code blocks for Odoo-specific Python and XML patterns.

  • Execution: Triggered via odoo keyword prefixes.
  • Scope: Includes snippets for model definitions, field types, view architectures, and common business logic patterns.

7. Smart Suggestions & Autocomplete

Context-aware intelligent completion for Odoo-specific syntax.

  • Model & Field Mapping: Intelligent suggestions for model names and field attributes based on the project's dependency graph.
  • XML Architecture Assistance: Targeted completion for Odoo's unique XML attributes and view structures.

8. Odoo Model Tools

Contextual actions designed to automate the generation of model-dependent framework components.

  • View & Report Generation: Instantly create XML views and QWeb reports mapped to the active Odoo model.
  • Security & Support: Automate CSV access control generation and __init__.py file registration.

Learn more about Odoo Model Tools

9. Technical Code Inspection

Real-time analysis of code compliance with Odoo's coding standards.

  • Static Analysis: Identifies violations of naming conventions and architectural best practices.
  • Standard Enforcement: Provides immediate feedback to ensure codebase maintainability and upgradeability.

Getting Started

To initialize the VS Code environment for Odoo development:

  1. Installation: Deploy the extension via the VS Code Marketplace.
  2. Module Creation: Utilize the Template Generator to scaffold a new project.
  3. Code Development: Implement business logic using the Snippets and Smart Suggestion libraries.

For detailed technical guidelines, refer to the Best Practices documentation.