Skip to content

Commit

Permalink
Inline comments :: 'js':[],'css':[],'qweb':[]
Browse files Browse the repository at this point in the history
I propose to add inline comments for the following reason:

General understanding is promoted when reading the source files as probablyt the main entry point for a developer.
js,css,qweb are taken from other manifests I've seen. They are explained in the link. I think completedness of the manifest scaffold also helps reduce ambiguity about it.

Lastly, I introduced newlines for better readability and grouping.

I hope these changes, well (marginally) improve the usefulness of this great module.
  • Loading branch information
blaggacao authored and Maxime Chambreuil committed Oct 9, 2015
1 parent ee0a983 commit e109b24
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions prototype/templates/8.0/__openerp__.py.template
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,15 @@
{
'name': '{{ prototype.name }}',
'version': '{{ prototype.version }}',

'author': '{{ prototype.author }}',
'maintainer': '{{ prototype.maintainer }}',
'website': '{{ prototype.website }}',
'license': '{{ prototype.licence }}',

# Categories can be used to filter modules in modules listing
# Check https://github.com/odoo/odoo/blob/master/openerp/addons/base/module/module_data.xml
# for the full list
'category': '{{ prototype.category_id.name }}',
'summary': '{{ prototype.summary }}',
'description': """
Expand All @@ -16,22 +21,36 @@
* If you have any questions, please contact Savoir-faire Linux \
([email protected])
""",

# any module necessary for this one to work correctly
'depends': [
{% for dependency in prototype.dependency_ids -%}
'{{ dependency.name }}',
{% endfor -%}],
'external_dependencies': {
'python': [],
},

# always loaded
'data': [
{% for data_file in data_files -%}
'{{ data_file }}',
{% endfor -%}],
# only loaded in demonstration mode
'demo': [
{% for demo_file in prototype.demo_ids -%}
'{{ demo_file.name }}',
{% endfor -%}],

# used for Javascript Web CLient Testing with QUnit / PhantomJS
# https://www.odoo.com/documentation/8.0/reference/javascript.html#testing-in-odoo-web-client
'js': [],
'css': [],
'qweb': [],

'installable': True,
# Install this module automatically if all dependency have been previously and independently installed.
# Used for synergetic or glue modules.
'auto_install': {{ prototype.auto_install }},
'application': {{ prototype.application }},
}
Expand Down

0 comments on commit e109b24

Please sign in to comment.