[UPD] Add a new file for default value decription field
parent
616b7b7830
commit
4ac755615d
|
@ -63,6 +63,7 @@ Contributors
|
|||
* David Arnold <blaggacao@users.noreply.github.com>
|
||||
* Jordi Riera <jordi.riera@savoirfairelinux.com>
|
||||
* Maxime Chambreuil <maxime.chambreuil@savoirfairelinux.com>
|
||||
* El hadji Dem <elhadji.dem@savoirfairelinux.com>
|
||||
* Savoir-faire Linux <support@savoirfairelinux.com>
|
||||
|
||||
Maintainer
|
||||
|
|
|
@ -22,4 +22,5 @@
|
|||
from . import (
|
||||
module_prototyper,
|
||||
ir_model_fields,
|
||||
default_description
|
||||
)
|
||||
|
|
|
@ -0,0 +1,87 @@
|
|||
# -*- encoding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# This module copyright (C) 2015 Savoir-faire Linux
|
||||
# (<http://www.savoirfairelinux.com>).
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as
|
||||
# published by the Free Software Foundation, either version 3 of the
|
||||
# License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
|
||||
def get_default_description(self):
|
||||
"""
|
||||
Extract the content of default description because the text is very huge
|
||||
in module_prototyper model
|
||||
"""
|
||||
return """
|
||||
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."""
|
|
@ -27,7 +27,7 @@ from datetime import date
|
|||
from collections import namedtuple
|
||||
from jinja2 import Environment, FileSystemLoader
|
||||
from openerp import models, api, fields
|
||||
|
||||
from .default_description import get_default_description
|
||||
YEAR = date.today().year
|
||||
|
||||
|
||||
|
@ -71,66 +71,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.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.
|
||||
"""
|
||||
default=get_default_description
|
||||
)
|
||||
author = fields.Char('Author', required=True, help=('Enter your name'))
|
||||
maintainer = fields.Char(
|
||||
|
|
Loading…
Reference in New Issue