Giter VIP home page Giter VIP logo

cenit2odoo's Introduction

#Cenit IO to odoo addons.

This is a tool for automating the creation of odoo-integration addons based on a Cenit IO shared_collections.

##Instalation:

npm install -g https://github.com/cenit-io/cenit2odoo.git

##Usage:

Run in console: cenit2odoo [options]

  Options:
  

    -h, --help                       output usage information
    -V, --version                    output the version number
    -l, --local                      Specify that the collection is a local path to a the json file.
    -c, --collections [collections]  Names of the shared collections at the Cenit IO or local path to json file with 
                                     shared collection.
    -o, --out-dir [outDir]           Output directory for the resulting addon. Default is "odoo-addons".
    -s, --statics                    Specify that must be generated the templates static file.
    -i, --interactive                Specify that run in interactive mode.
    -a, --all                        Specify that will generate the addon for each shared collections in Cenit IO.
    -x, --exclude [exclude]          Names of shared collections to exclude. If list is empty, then the names are 
                                     taken of EXCLUDE_SHARED_COLLECTION environment variable.
    -v, --odoo-version [odooVersion] Specify odoo version (default 8.0).

Examples:

  • Generate addon from local json file with shared collection:

        cenit2odoo -lc ./collections/gmail.json
    
  • Generate addon from remote shared collections in Cenit IO:

        cenit2odoo -c gmail
    
  • Generate multiples addons from remote shared collections in Cenit IO:

        cenit2odoo -c gmail,twitter
    
  • Generate addons in a specific path:

        cenit2odoo -sc gmail -o my-addons
    
  • Generate addon with static files templates:

        cenit2odoo -sc gmail
    
  • Generate addons in interactive mode:

        cenit2odoo -i
    
  • Generate addons with static files templates in interactive mode:

        cenit2odoo -si
    
  • Generate all addons.

        cenit2odoo -a
    
  • Generate all addons except gmail and twitter.

        cenit2odoo -ax gmail,twitter
    
  • Generate all addons except gmail and twitter using environment.

        export EXCLUDE_SHARED_COLLECTION="gmail,twitter"
        
        cenit2odoo -ax
    
  • Generate addon for odoo version 9.0:

        cenit2odoo -sc gmail -v 9.0
    

cenit2odoo's People

Contributors

yoandrypa avatar maryguirola avatar sanchojaf avatar yoandrypa-z avatar

Watchers

James Cloos avatar  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.