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 iconmodel
: an Odoo model with accompanying form, tree, action, menu, demo data and ACLtest
: a test classwizard
: a wizard with transient model, view and action
The following are candidates (pull requests welcome):
report
controller
widget
pip install bobtemplates.odoo
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).
- pypi page: https://pypi.python.org/pypi/bobtemplates.odoo
- code repository: https://github.com/acsone/bobtemplates.odoo
- report issues at: https://github.com/acsone/bobtemplates.odoo/issues
Author:
- Stéphane Bidoul (ACSONE)
Inspired by https://github.com/plone/bobtemplates.plone.
Contributors:
This module is maintained by ACSONE SA/NV.