Skip to main content

A CLI tool for creating Odoo module boilerplate

Project description

Odooer

Overview

Odooer is a CLI tool designed to streamline the development of Odoo modules by automating the boilerplate creation process. It facilitates the quick setup of new modules or the extension of existing ones, ensuring that developers can focus more on functionality rather than setup procedures.

Features

  • Module Creation: Easily generate a new Odoo module with a standard directory structure, including models, views, and security settings.
  • Inheritance Support: Extend existing Odoo modules with custom functionality by inheriting from them directly through the CLI.
  • Automatic File Generation: Automatically creates essential files like __init__.py, model.py, __manifest__.py, and ir.model.access.csv, along with basic templates to get you started.

Installation

Odooer can be installed via pip. Ensure you have Python installed on your system before proceeding.

pip install odooer

Usage

Odooer simplifies the creation of Odoo modules with two primary commands: create and inherit.

Creating a New Module

To create a new module, run the following command:

odooer create <module_name>

This command sets up a new module with a basic structure, including model and view directories, and initializes files necessary for Odoo modules.

Inheriting From an Existing Module

To extend an existing module with additional functionality, use:

odooer inherit <module_name_to_inherit> <your_module_name>

This creates a new module that inherits from an existing one, allowing you to extend or override functionality as needed.

Project Structure

Odooer generates the following structure for a new module:

  • /models: Contains model.py with a template for model definition.
  • /views: Includes module_view.xml for defining UI elements.
  • /security: (Optional) Holds ir.model.access.csv for access rights configuration, not created when inheriting.
  • __init__.py: Autogenerated to import models.
  • __manifest__.py: Contains module metadata, dependencies, and data files.

Contributing

Contributions to the Odooer project are welcome. Whether it's bug reports, feature suggestions, or code contributions, please feel free to reach out.

Contact

Project details


Download files

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

Source Distribution

odooer-1.0.3.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

odooer-1.0.3-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file odooer-1.0.3.tar.gz.

File metadata

  • Download URL: odooer-1.0.3.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.12

File hashes

Hashes for odooer-1.0.3.tar.gz
Algorithm Hash digest
SHA256 8fe8afe5851dc0cccf200a7266e2118d12f3b5a6be2369cf387157009c5c4e35
MD5 98ebebfcd44fd2ab567a9775a7a1d220
BLAKE2b-256 7fdf11a0072b9e658693f904676b93300b69942038a53135bc886e3239567018

See more details on using hashes here.

File details

Details for the file odooer-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: odooer-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.12

File hashes

Hashes for odooer-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d78a513dae0867e51d01ac4e04bc3ef027dce0b8dfe5651d0533ea4391291552
MD5 4e36ae92c65d65d1066323e7ec093897
BLAKE2b-256 0335c499cd628ef584b33996b3aa735153bdd382a3ed78e22371fad03c269492

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page