Browse Source

[IMP] Add help

[FIX] license field
[IMP] Add template README.rst as default description

[FIX] PEP8 errors

[IMP] Take reviews into account
pull/107/head
Maxime Chambreuil 10 years ago
parent
commit
6e31ff420d
  1. 67
      module_prototyper/models/module_prototyper.py
  2. 3
      module_prototyper/wizard/module_prototyper_module_export.py

67
module_prototyper/models/module_prototyper.py

@ -82,7 +82,66 @@ class ModulePrototyper(models.Model):
help=('Enter the description of your module, what it does, how to'
'install, configure and use it, the roadmap or known issues.'
'The description will be exported in README.rst'),
default=get_default_description
default="""
Module name
===========
This module was written to extend the functionality of ... to support ...
and allow you to ...
Installation
============
To install this module, you need to:
* do this ...
Configuration
=============
To configure this module, you need to:
* go to ...
Usage
=====
To use this module, you need to:
* go to ...
For further information, please visit:
* https://www.odoo.com/forum/help-1
Known issues / Roadmap
======================
* ...
Credits
=======
Contributors
------------
* Firsname Lastname <email.address@example.org>
Maintainer
----------
.. image:: http://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: http://odoo-community.org
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
To contribute to this module, please visit http://odoo-community.org.
"""
)
author = fields.Char('Author', required=True, help=('Enter your name'))
maintainer = fields.Char(
@ -98,9 +157,9 @@ class ModulePrototyper(models.Model):
)
version = fields.Char(
'Version',
size=3,
default='0.1',
help=('Enter the version of your module with 2 digits')
size=9,
default='8.0.0.0.1',
help=('Enter the version of your module with 5 digits')
)
auto_install = fields.Boolean(
'Auto Install',

3
module_prototyper/wizard/module_prototyper_module_export.py

@ -33,12 +33,9 @@ class PrototypeModuleExport(models.TransientModel):
_name = "module_prototyper.module.export"
name = fields.Char('File Name', readonly=True)
# It is implemented in order to manage previous and next versions
# of odoo
api_version = fields.Selection(
[
('8.0', '8.0'),
# ('7.0', '7.0')
],
'API version',
required=True,

Loading…
Cancel
Save