Skip to content

A command to safely create openerp database for use with anybox.recipe.odoo upgrade.py command.

License

Notifications You must be signed in to change notification settings

cmorisse/inouk.recipe.odoo.setup_db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

inouk.recipe.odoo.setup_db

inouk.recipe.setup_db is an anybox.recipe.odoo console script that complement upgrade.py script to create database. upgrade.py will abort if launched without a existing database. setup_db fills this gap by creating a database with correct owner after backing up any existing database.

setup_db uses Odoo internal to manipulate databases, so it takes care of data dir content.

Installation

In the openerp section your buildout.cfg, add inouk.recipe.odoo.setup_db egg:

[openerp] 
recipe = anybox.recipe.openerp:server
...

# ask buildout to get the package
eggs = inouk.recipe.odoo.setup_db

# ask the odoo recipe to create a script from inouk.recipe.setup_db
openerp_scripts = setup_db arguments=session

Then buildout your server with bin/buildout to get a bin/setup_db_openerp command.

Usage

Once your buildout is finished, bin/setup_db_openerp is ready to use.

When launched, bin/setup_db_openerp will:

  • rename existing database by completing name with operation timestamp current tag of the buildout repository
  • create a new Odoo database owned by openerp db_user

Parameters

Invoke with -h for a description of supported parameters.

License

inouk.recipe.odoo.setup_db is licensed under the GNU Affero General Public License v3. See LICENCE.txt

About

A command to safely create openerp database for use with anybox.recipe.odoo upgrade.py command.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages