Skip to main content

Simple CLI to manage Odoo instances

Project description

Deasy Package

Deasy package provide a single cli command *oo* to intercat with odoo instances

Deasy is a Python package providing an easy way to pilot and interact with Odoo instances through CLI.

Features supported:
  • manage informations of the Odoo instances,
  • backup and restore databases,
  • security audit,
  • search the xml-ids of records,
  • show data,
  • execute functions,
  • python shell,
  • JSON-RPC protocol (SSL supported),

Many thanks to OdooRPC and Odoo.

Installation :

pip install deasy

Manage informations of Odoo instances :

Create an entry for an Odoo instance :

oo create_section YOUR_SECTION_NAME

List sections :

oo sections

You can also use other commands to manage the informations of instances like `section_update` `delete_section` see `oo –help`

Manage databases

Backup a database :

oo -l YOUR_SECTION_NAME backupdb /to/your/path

Restore a database :

oo -l YOUR_SECTION_NAME restoredb /from/your/path/

You can also use other commands to manage databses like `listdb` `dropdb` see `oo –help`

Manage modules

Install some modules :

oo -l YOUR_SECTION_NAME install sale,fleet,purchase

Update some modules :

oo -l YOUR_SECTION_NAME update sale,fleet,purchase

You can also uninstall modules using the argument uninstall see oo –help

Intercat with data

Show some data on res.partner :

oo -l YOUR_SECTION_NAME data res.partner

With more options :

oo -l YOUR_SECTION_NAME data res.partner -f name -f customer -f supplier -d name like ASUSTEK -o name -l 1

See oo data –help

Show fields of the model res.partner :

oo -l YOUR_SECTION_NAME fields res.partner

Launch python shell

Show some data on res.partner :

>>> Partner = odoo.env['res.partner']
>>> partner_ids =[])
>>> for partner in Partner.browse(partner_ids):
...     print

Refer to OdooRPC documentation

You can also retrieve data with a simple command :

>>> partners = browse('res.partner') # or browse('res.partner', [])
>>> for partner in partners :
...     print


This software is made available under the LGPL v3 license.

Bug Tracker

Please, feel free to report bugs or suggestions in the Bug Tracker!


Mohamed Cherkaoui <>



Release date: 03-Jun-2017

  • First stable version

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for deasy, version 2.0.0
Filename, size File type Python version Upload date Hashes
Filename, size deasy-2.0.0.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page