From 5865d97382d4d8d585d0a36a72fd571f7668c063 Mon Sep 17 00:00:00 2001 From: EL HADJI DEM Date: Tue, 7 Apr 2015 16:44:52 -0400 Subject: [PATCH] [UPD] Add a new file for default value decription field --- .../models/default_description.py | 8 +++ module_prototyper/models/module_prototyper.py | 61 +------------------ 2 files changed, 9 insertions(+), 60 deletions(-) diff --git a/module_prototyper/models/default_description.py b/module_prototyper/models/default_description.py index 874a066d4..42e6bce20 100644 --- a/module_prototyper/models/default_description.py +++ b/module_prototyper/models/default_description.py @@ -22,6 +22,7 @@ DEFAULT_DESCRIPTION = """ +=========== Module name =========== @@ -49,6 +50,13 @@ To use this module, you need to: * 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 diff --git a/module_prototyper/models/module_prototyper.py b/module_prototyper/models/module_prototyper.py index f56ae1108..5dd33ca1d 100644 --- a/module_prototyper/models/module_prototyper.py +++ b/module_prototyper/models/module_prototyper.py @@ -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 - -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(