Thanks to visit codestin.com
Credit goes to github.com

Skip to content

jeffery9/sublime-odoo-snippets

 
 

Repository files navigation

Several snippets to be used with Sublime 3 for Odoo developments with new_api

Installation

This plugin is not available in common Sublime repository, you will need to add the repository which contains the plugin first.

The repository

  1. Goto Preferences->Package Control
  2. Click in Add Repository
  3. Adds the following URL: https://github.com/sotogarcia/sublime-odoo-snippets and press enter.

The pluggin

  1. Goto Preferences->Package Control
  2. Click in Install package
  3. Search sublime-odoo-snippets plugin in list and click it.

Plugin setup proccess requires Sublime Text with Package Control installed.

Snippets available

See the wiki

Commands

Project has a Python file with some useful utilities to work in Odoo code files, these are the following:

dashes

When a Python code file is too long, reorder the code in blocks divided by horizontal rules makes more easy read them.

This command replaces selection by a dashed line with selected text in center. The result is like the following:

    # ------------------------------- PRUEBA ----------------------------------
  • Line starts at the selection beginning and ends in the column 79.
  • Text will have two spaces, one before and another after.
  • If there is not selected text when command is invoked, line will be printed without any text.

finddashes

Once the Python code file has been divided by horizoantal rules, will be very useful to jump to the next line of dashes. This command does just that.

About

Several snippets to be used with Sublime 3 in Odoo developments with new API

Resources

License

AGPL-3.0 and 2 other licenses found

Licenses found

AGPL-3.0
LICENSE
Unknown
license.sublime-snippet
Unknown
license-simple.sublime-snippet

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%