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, with optional OCA README and icon

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

  • test: a test class

  • wizard: a wizard with transient model, view and action

The following are candidates (pull requests welcome):

  • report

  • controller

  • 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 explains 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.0b3 (2016-06-25)

  • [ADD] wizard template

  • [IMP] model: auto-add view, demo data and acl in addon manifest

  • [IMP] addon: put summary in description field if there is no README.rst

  • [IMP] model: do not generate action view_type (which is mostly obsolete)

  • [IMP] model: add model and context in action

  • [IMP] model: add example field when not inherited

  • [IMP] model: add default group in form view

  • [IMP] model: do not generate an empty view xml file

  • [FIX] model: menu name is mandatory when creating menu with a record entry

1.0.0b2 (2016-06-17)

  • [ADD] addon: add optional OCA mode (author, README.rst and icon.svg)

  • [IMP] model: improve order of import in the model file

  • [FIX] model: avoid to set ir.model.access data as non updatable record

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.0b3.tar.gz (37.0 kB view details)

Uploaded Source

Built Distribution

bobtemplates.odoo-1.0.0b3-py2-none-any.whl (37.8 kB view details)

Uploaded Python 2

File details

Details for the file bobtemplates.odoo-1.0.0b3.tar.gz.

File metadata

File hashes

Hashes for bobtemplates.odoo-1.0.0b3.tar.gz
Algorithm Hash digest
SHA256 c90b40603faf077a018a78f0befcc21a2d4b29c5b210b81e9a12bb9b17915727
MD5 556f69ca82916acd6f6608345715a4af
BLAKE2b-256 a0a4a36c949acbf8f90f86cf1a08159ea6d1c66d36fc7d0ffac493064fc92af4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bobtemplates.odoo-1.0.0b3-py2-none-any.whl
Algorithm Hash digest
SHA256 be17f4ab1328e9d0f26c834cda123e79113e382bd06d48f33713735af4e17c13
MD5 8c4fc8da6a7646abbb6041fc47d2c275
BLAKE2b-256 27909387b67884f4d67c2d5cb171470e87f323043c466784440c42b6cec622d2

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