Skip to main content

mr.bob templates for Odoo projects

Project description

License: AGPL 3.0 or Later https://badge.fury.io/py/bobtemplates.odoo.svg https://travis-ci.org/acsone/bobtemplates.odoo.svg?branch=master

bobtemplates.odoo is a set of mr.bob templates to use when developing Odoo addons.

It provides the following templates:

  • addon: an addon skeletton

  • model: an Odoo model with accompanying form, tree, action, menu, demo data and ACL

  • test: a test class

The following are candidates (pull requests welcome):

  • report

  • controller

  • wizard

  • widget

Install

pip install bobtemplates.odoo

Quickstart

CAUTION: it is recommanded to backup or vcs commit your current directory before running these commands, so you can easily see what has been generated and/or changed.

Create a new addon in the current directory:

mrbob bobtemplates.odoo:addon

Now go to the newly created addon directory and run this to add a new model, with associated views, demo data, and acl:

mrbob bobtemplates.odoo:model

Add a test class:

mrbob bobtemplates.odoo:test

Tip: read the mr.bob user guide. In particular it explain how to set default values to avoid retyping the same answers at each run (such as the copyright author).

Credits

Author:

Inspired by https://github.com/plone/bobtemplates.plone.

Contributors:

Maintainer

ACSONE SA/NV

This module is maintained by ACSONE SA/NV.

Changes

1.0.0b1 (2016-06-16)

  • add post render message inviting the user to add the generated xml files in __openerp__.py data section

  • auto add model import to models/__init__.py

  • many improvements and fixes to the model template (views, security, demo data, and more)

  • addon template

  • test template

  • tests (with tox and travis)

1.0.0a2 (2016-06-15)

  • fix broken namespace package distribution

1.0.0a1 (2016-06-15)

  • first version, very rough template for an Odoo model with view

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

bobtemplates.odoo-1.0.0b1.post1.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

bobtemplates.odoo-1.0.0b1.post1-py2-none-any.whl (11.9 kB view details)

Uploaded Python 2

File details

Details for the file bobtemplates.odoo-1.0.0b1.post1.tar.gz.

File metadata

File hashes

Hashes for bobtemplates.odoo-1.0.0b1.post1.tar.gz
Algorithm Hash digest
SHA256 2ef8037d4c35d3665ac34263ca3d475d86b715ca69b16d545d08e3f205ca5dfb
MD5 3b246c4e131ed9f74e12eb2496ed4421
BLAKE2b-256 d8305dddb98aed117a2e03b2dbd4587e8cb823db293efe3cdb67a807d6c9460a

See more details on using hashes here.

File details

Details for the file bobtemplates.odoo-1.0.0b1.post1-py2-none-any.whl.

File metadata

File hashes

Hashes for bobtemplates.odoo-1.0.0b1.post1-py2-none-any.whl
Algorithm Hash digest
SHA256 8a7f7ccc799324b6088693c522604bec6182815500c5809499400929c1d6c9c3
MD5 42d15c8037a0d91af091047714e297af
BLAKE2b-256 e64c57c24757f705774d010ae368be054d34d1e1048c4de47ed1e21b61198590

See more details on using hashes here.

Supported by

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