Skip to content

Commit

Permalink
[IMP] prototype: implementation of jinja syntax.
Browse files Browse the repository at this point in the history
[IMP] prototype: Switched to v8 api.

[IMP] prototype: renamed the templates to avoid confusion with pep8 tests.

[IMP] prototype: renamed some fields in prototype.py.

[IMP] prototype: implemented the process to create the zip file to export.

[IMP] prototype: worked on the generation of __openerp__.py and __init__.py files from the prototype.

[IMP] prototype: pep8

[IMP] prototype: added more comments.

[IMP] prototype: worked on fields.

[IMP] prototype: implemented the generation of files from models/model_name.py.template and models/init.py.template

[IMP] prototype: first work on implementation of generations of views.

[IMP] prototype: improved the arch section in model_view.xml.template

[IMP] prototype: Reviewed the names of many2many from plurials to name_ids.

[IMP] prototype: added menus.

[IMP] prototype: typo in templates/8.0/views/model_view.xml.template

[IMP] prototype: improved template with adding extension to header.template to ease management of file with licence header.

[IMP] prototype: prototype.prototype demo data

[IMP] prototype: worked to get the views and menus properly generated. Added actions to model_menus.xml.template.

[IMP] prototype: should fix pep8 in model_name.py.template.
  • Loading branch information
foutoucour authored and Maxime Chambreuil committed Oct 9, 2015
1 parent 83855cc commit ee0a983
Show file tree
Hide file tree
Showing 36 changed files with 815 additions and 453 deletions.
8 changes: 4 additions & 4 deletions prototype/__openerp__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@
* Maxime Chambreuil <[email protected]>
* Savoir-faire Linux <[email protected]>
More informations
-----------------
* Module developped and tested with Odoo version 8.0
* For questions, please contact our support services \
More information
----------------
* Module developed and tested with Odoo version 8.0
* For questions, please contact our support services
([email protected])
""",
'depends': [
Expand Down
2 changes: 2 additions & 0 deletions prototype/demo/prototype.prototype.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"id","right_ids/id","application","author","auto_install","category_id/id","create_uid/id","create_date","data_ids/id","demo_ids/id","dependency_ids/id","description","field_ids/id","group_ids/id","icon_image","write_uid/id","write_date","licence","maintainer","menu_ids/id","human_name","rule_ids/id","summary","name","version","view_ids/id","website"
"__export__.prototype_22","__export__.ir_model_access_144","False","Savoir-faire Linux","False","base.module_category_uncategorized","base.user_root","2014-12-15 21:07:09","__export__.ir_filters_31","","base.module_crm,base.module_mail,base.module_l10n_et,base.module_l10n_mx","This module is used to test the export of prototype. It uses all the features.","__export__.ir_model_fields_1238","__export__.res_groups_13","/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAC0ALQDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD3+iiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACi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jzG6bsemOB+NY11e3d8Qbu6mnx0EjkgfQdKZFbzTrK0MTyLEpeRlGQgHqe1Ahg6ivXvD//ACLel/8AXnF/6AK8gHUV6/4f/wCRb0v/AK9Iv/QBQBo0UUUDCiiigArl9W8AaBqsjTfZ3tJ25aS1bZk+64Kn8q6iimm1sVCcoO8XY84f4TRb/wB3rUoX0e3Un8wR/Kr1j8LdHgcPeXN3eEfwFhGh/BQD+tdzRVe1n3NniqzVuYr2dja6dbLbWdvHBCv3UjUKBViiioOdu+rCggEYIyKKKAOfv/BmkXztIsT2sjclrdtoP/ASCP0rJb4dpu+XVJAvo0IJ/mK7aigDlbTwFpkLBrma4uSP4WYIv5Lg/rXSW1rb2cCw20KQxL0RFwKmooAKKKKAMfU/DGlaq5lmt9k56zQnYx+vY/iDWFJ8PIS37rU5lX0kiVj+mK7WigDkrTwBp8TBrq5uLnH8GQin8uf1rpI9Ps4rFrKO3jS2ZSpjUYBBGDVmigDjl+HtmLncb2drbP8Aqto3Y9N3p+GfeuvRFijWNFCooCqo6ACnUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFAH//Z","base.user_root","2014-12-26 16:11:10","AGPL-3","OCA","__export__.ir_ui_menu_96","Demo Module","__export__.ir_rule_20","Demo module for prototype","demo_module","0.1","__export__.ir_ui_view_334,__export__.ir_ui_view_333","http://www.savoirfairelinux.com"
4 changes: 2 additions & 2 deletions prototype/i18n/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ msgid "Demo filters"
msgstr "Filtres pour les données de démo"

#. module: prototype
#: view:prototype:prototype.view_prototype_form field:prototype,depends:0
#: view:prototype:prototype.view_prototype_form field:prototype,dependencies:0
msgid "Dependencies"
msgstr "Dépendances"

Expand Down Expand Up @@ -190,7 +190,7 @@ msgid "Module"
msgstr ""

#. module: prototype
#: field:prototype,shortdesc:0
#: field:prototype,human_name:0
msgid "Module Name"
msgstr "Nom du module"

Expand Down
4 changes: 2 additions & 2 deletions prototype/i18n/prototype.pot
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ msgid "Demo filters"
msgstr ""

#. module: prototype
#: view:prototype:prototype.view_prototype_form field:prototype,depends:0
#: view:prototype:prototype.view_prototype_form field:prototype,dependencies:0
msgid "Dependencies"
msgstr ""

Expand Down Expand Up @@ -190,7 +190,7 @@ msgid "Module"
msgstr ""

#. module: prototype
#: field:prototype,shortdesc:0
#: field:prototype,human_name:0
msgid "Module Name"
msgstr ""

Expand Down
8 changes: 3 additions & 5 deletions prototype/models/ir_model_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,10 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
from openerp.osv import fields, osv
from openerp import fields, models


class ir_model_fields(osv.osv):
class ir_model_fields(models.Model):
_inherit = "ir.model.fields"

_columns = {
'notes': fields.text('Notes'),
}
notes = fields.Text('Notes')
Loading

0 comments on commit ee0a983

Please sign in to comment.