Code Monkey home page Code Monkey logo

shellscripts's Introduction

ShellScripts

Some useful Shell Scripts ๐Ÿ˜‰

Odoo's scripts are greatly inspired by AVS's scripts...

Odoo's scripts Installation

Clone this repository, go inside the cloned repository and run the setup script

git clone https://github.com/Maurin3/ShellScripts.git
cd ShellScripts
cd odoo
./setup.sh

Update

Simply go in the repo, git pull in the repository to update to the latest version.

You may have to rerun the setup script if you didn't keep your local repository as install path, otherwise you are good to go!

Odoo's scripts Uninstall

Go inside the repository and run the uninstall script

cd /path/to/ShellScripts repo
cd odoo
./uninstall.sh

Odoo Commands

The following commands are prefixed with odoo. Only arguments in brackets (<arg>) are optional and can be omitted.

Command Aliases Description
--help -h Display help
clean <dbname> cl Clean db, reset admin user (admin/admin), deactivate crons
create <dbname> cr Create a new db with dbname as name
deploy <dbname> <module> dp Deploy a module to an existing local database
list ls List databases
migration symlink mig sym Create a symbolic link between the Upgrade repository and the base module
migration pull mig pull Retrieve the changes from the Upgrade repository
migration shell <dbname> (<dir>) (<options>) mig sh Run a 2nd Odoo as shell with db (dbname) and dir as added addons (+options)
migration run <dbname> (<dir>) (<options>) mig rn Run a 2nd Odoo with db (dbname) and dir as added addons (+options)
migration reset <dbname> mig rs Reset the current branch of 2nd Odoo repositories
migration version (<number>) mig vs Display the version or change to the version desired of 2nd Odoo repositories
remove <dbname> rm Remove the database with name dbname and its possible filestore
reset res Reset the current branch of Odoo repositories
restore <database> <dump file> rs Restore db with dumpfile
run <dbname> (<dir>) (<options>) rn Run Odoo with db (dbname) and dir as added addons (+options)
shell <dbname> (<dir>) (<options>) sh Run Odoo as shell with db (dbname) and dir as added addons (+options)
version (<number>) vs Display the version or change to the version desired
template <dbname1> <dbname2> tpl Copy a dbname2 from dbname1

shellscripts's People

Contributors

maurin3 avatar

Watchers

James Cloos avatar  avatar

shellscripts's Issues

Don't copy/paste something that doesn't exist

The database was restored by a .sql.gz file and don't have anything inside filestore

Error :

cp: cannot stat '/home/user/.local/share/Odoo/filestore/database/*': No such file or directory

Create an `upgrade` command to use

Instead of just running and update a list of module, create a new upgrade command that will run odoo with the --upgrade-path option for 13.0+ and make the symlink directly instead of upgrade-path (if not present) for 12.0 and below.

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.