Skip to content

Commit

Permalink
[UPD] Add a new file for default value decription field
Browse files Browse the repository at this point in the history
  • Loading branch information
ehdem authored and Maxime Chambreuil committed Oct 9, 2015
1 parent aeb05be commit d44e189
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 60 deletions.
8 changes: 8 additions & 0 deletions module_prototyper/models/default_description.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@


DEFAULT_DESCRIPTION = """
===========
Module name
===========
Expand Down Expand Up @@ -49,6 +50,13 @@
* go to ...
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/{repo_id}/{branch}
.. repo_id is available in https://github.com/OCA/maintainer-tools/blob/master/tools/repos_with_ids.txt
.. branch is "8.0" for example
For further information, please visit:
* https://www.odoo.com/forum/help-1
Expand Down
61 changes: 1 addition & 60 deletions module_prototyper/models/module_prototyper.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,66 +85,7 @@ 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="""
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 protected]>
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.
"""
default=get_default_description
)
author = fields.Char('Author', required=True, help=('Enter your name'))
maintainer = fields.Char(
Expand Down

0 comments on commit d44e189

Please sign in to comment.