Code Monkey home page Code Monkey logo

vscode-odoo-snippets's Introduction



Odoo Visual Code Snippets

Develop Odoo modules faster and with no Typing Errors

Version Installs Ratings

About | Installation | Usage | Contributing | Release Notes | Credits

About

This extension contains code snippets for Odoo to help you to develop Odoo modules faster and with no Typing Errors.

All snippets follow the OCA Maintainer Guidelines and are made to Odoo version 10.0, 11.0 and 12.0.

To OpenERP snippets, please use the TheDavidDelta's OpenERP Code Snippets extension.

Installation

Launch Quick Open

Paste the following command and press Enter:

ext install mstuttgart.odoo-snippets

Usage

This extension provide support to following languages (file extensions):

  • Python (.py)
  • XML (.xml)

Below is a list of all available snippets.

Python Snippets

Snippet Description
oman Create Odoo Manifest
omod Create New Odoo Model
omodi Inherit Existing Odoo Model
omodt Create Test to Odoo Model
ofbin Add new field Binary
ofbool Add new field Boolean
ofchar Add new field Char
ofdate Add new field Date
oftime Add new field DateTime
offloat Add new field Float
ofhtml Add new field HTML
ofint Add new field Integer
oftxt Add new field Text
ofsel Add new field Selection
ofm2o Add new field Many2one
ofm2m Add new field Many2many
ofo2m Add new field One2many
omcreate Add a method create
omwrite Add a method write
omunlink Add a method unlink
omcomp Add a method compute
omchange Add a method onchange

XML Snippets

Snippet Description
oform Create Form View
oformi Inherit Existing Form View
otree Create Tree View
otreei Inherit Existing Tree View
osearch Create Search View
osearchi Inherit Existing Search View
ograph Create Graph View
ographi Inherit Existing Graph View
opivot Create Pivot View
opivoti Inherit Existing Pivot View
okanban Create Kanban View
okanbani Inherit Existing Kanban View
ocalendar Create Calendar View
ocalendari Inherit Existing Calendar View
ogantt Create Gantt View
ogantti Inherit Existing Gantt View
oxpath Add the structure of xpath
oxpathattr Add the structure of xpath to attributes
oact Create new Action
onote Add notebook and page tags
opage Add new page tag
omenur Create New Menu Item in the Upper bar
omenuc Create New Menu Item for Categories
omenua Create New Menu Item for Actions
ocron Add a ir.cron record (11.0 version)
obtn Add Odoo button
obtnbox Add Button Box on View
ofield Add Field on View
odata Add data tag on View
ostatusbar Create Header with Status Bar

Contributing

Please, see contributing guidelines here.

Release Notes

See changelog.

Credits

This snippets are based in odoo-pycharm-templates project.

Copyright (C) 2018-2020 by Michell Stuttgart

vscode-odoo-snippets's People

Contributors

elmerdpadilla avatar mstuttgart avatar oscars8a avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.