Skip to content

Commit

Permalink
[10.0][MIG] Module Prototyper (OCA#634)
Browse files Browse the repository at this point in the history
* [ADD] Updated manifest and README

* [ADD] Version 10.0 template and api_version model

* [ADD] Updated license header, updated api call

* [FIX] Flake

* [FIX] Flake

* [FIX] Tests

* [FIX] Flake8

* [ADD] Extra test for changed method 'set_jinja_env'

* [FIX] Fixed 'Try me on runbot' button
  • Loading branch information
Dennis Sluijk authored and lasley committed Dec 20, 2016
1 parent 47462f2 commit 4271241
Show file tree
Hide file tree
Showing 32 changed files with 549 additions and 346 deletions.
25 changes: 10 additions & 15 deletions module_prototyper/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ things like default values or onchange methods.

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/149/9.0
:target: https://runbot.odoo-community.org/runbot/149/10.0

Known issues / Roadmap
======================
Expand All @@ -69,10 +69,10 @@ Known issues / Roadmap
Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-tools/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed feedback
`here <https://github.com/OCA/server-tools/issues/new?body=module:%20module_prototyper%0Aversion:%209.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Bugs are tracked on `GitHub Issues
<https://github.com/OCA/server-tools/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smashing it by providing a detailed and welcomed feedback.

Credits
=======
Expand All @@ -87,6 +87,7 @@ Contributors
* Savoir-faire Linux <[email protected]>
* Vincent Vinet <[email protected]>
* Nicolas JEUDY <[email protected]>
* Dennis Sluijk <[email protected]>

Maintainer
----------
Expand All @@ -97,14 +98,8 @@ Maintainer

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.
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.

Changelog
=========

v9.0.0.1.0
----------

* Initial V9 version from V8.0.3
To contribute to this module, please visit https://odoo-community.org.
2 changes: 1 addition & 1 deletion module_prototyper/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
Expand Down
10 changes: 6 additions & 4 deletions module_prototyper/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
Expand All @@ -22,8 +22,9 @@

{
'name': 'Module Prototyper',
'version': '9.0.0.1.0',
'author': 'Savoir-faire Linux, Odoo Community Association (OCA), Sudokeys',
'version': '10.0.1.0.0',
'author': 'Savoir-faire Linux, Sudokeys, Onestein, '
'Odoo Community Association (OCA)',
'maintainer': 'Savoir-faire Linux',
'website': 'http://www.savoirfairelinux.com',
'license': 'AGPL-3',
Expand All @@ -34,11 +35,12 @@
'python': [],
},
'data': [
'data/module_prototyper_api_version_data.xml',
'wizard/module_prototyper_module_export_view.xml',
'views/module_prototyper_view.xml',
'views/ir_model_fields_view.xml',
'security/ir.model.access.csv',
],
'installable': False,
'installable': True,
'application': True,
}
54 changes: 34 additions & 20 deletions module_prototyper/data/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,37 @@
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3

===========
Module name
===========
==============
{module_title}
==============

This module was written to extend the functionality of ... to support ...
and allow you to ...
This module extends the functionality of ... to support ...
and to allow you to ...

Installation
============

To install this module, you need to:

* do this ...
#. Do this ...

Configuration
=============

To configure this module, you need to:

* go to ...
#. Go to ...

.. figure:: path/to/local/image.png
:alt: alternative description
:width: 600 px

Usage
=====

To use this module, you need to:

* go to ...
#. Go to ...

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
Expand All @@ -37,42 +41,52 @@ To use this module, you need to:
.. 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

Known issues / Roadmap
======================

* ...
* Add ...

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/{project_repo}/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed feedback
`here <https://github.com/OCA/{project_repo}/issues/new?body=module:%20{module_name}%0Aversion:%20{version}%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Bugs are tracked on `GitHub Issues
<https://github.com/OCA/{project_repo}/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smashing it by providing a detailed and welcomed feedback.

Credits
=======

Images
------

* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.

Contributors
------------

* Firstname Lastname <[email protected]>
* Second Person <[email protected]>

Funders
-------

The development of this module has been financially supported by:

* Company 1 name
* Company 2 name

Maintainer
----------

.. image:: http://odoo-community.org/logo.png
.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: http://odoo-community.org
:target: https://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.
To contribute to this module, please visit https://odoo-community.org.
16 changes: 16 additions & 0 deletions module_prototyper/data/module_prototyper_api_version_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2016 Onestein (<http://www.onestein.eu>)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>

<record id="api_version_80" model="module_prototyper.api_version">
<field name="name">8.0</field>
<field name="manifest_file_name">__openerp__</field>
</record>

<record id="api_version_100" model="module_prototyper.api_version">
<field name="name">10.0</field>
<field name="manifest_file_name">__manifest__</field>
</record>

</odoo>
3 changes: 2 additions & 1 deletion module_prototyper/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
Expand All @@ -21,5 +21,6 @@
##############################################################################
from . import (
module_prototyper,
module_prototyper_api_version,
ir_model_fields
)
21 changes: 10 additions & 11 deletions module_prototyper/models/ir_model_fields.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
Expand All @@ -20,11 +20,10 @@
#
##############################################################################

from openerp import fields, models
from openerp.tools.translate import _
from odoo import fields, models


class ir_model_fields(models.Model):
class IrModelFields(models.Model):
"""Addition of text fields to fields."""
_inherit = "ir.model.fields"

Expand All @@ -33,17 +32,17 @@ class ir_model_fields(models.Model):
# TODO: Make column1 and 2 required if a model has a m2m to itself
column1 = fields.Char(
'Column1',
help=_("name of the column referring to 'these' records in the "
"relation table"),
help="name of the column referring to 'these' records in the "
"relation table",
)
column2 = fields.Char(
'Column2',
help=_("name of the column referring to 'those' records in the "
"relation table"),
help="name of the column referring to 'those' records in the "
"relation table",
)
limit = fields.Integer('Read limit', help=_("Read limit"))
limit = fields.Integer('Read limit', help="Read limit")
client_context = fields.Char(
'Context',
help=_("Context to use on the client side when handling the field "
"(python dictionary)"),
help="Context to use on the client side when handling the field "
"(python dictionary)",
)
2 changes: 1 addition & 1 deletion module_prototyper/models/licenses.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
# #############################################################################
#
# OpenERP, Open Source Management Solution
Expand Down
Loading

0 comments on commit 4271241

Please sign in to comment.