diff options
| author | Yenthe <yenthevg@gmail.com> | 2015-12-15 08:53:56 +0100 |
|---|---|---|
| committer | Xavier Morel <xmo@odoo.com> | 2015-12-15 10:17:59 +0100 |
| commit | 8e81abfeb55babb1d147901138efb23c02a00746 (patch) | |
| tree | d41f35849f79a81e00e5a396ee57814fb010815d /openerp/cli | |
| parent | 17896a92da39d265fda7b0e2f32479a18d0b8ace (diff) | |
[FIX] Scaffold according to new module structure
fixes #10074
Diffstat (limited to 'openerp/cli')
| -rw-r--r-- | openerp/cli/templates/default/__init__.py | 4 | ||||
| -rw-r--r-- | openerp/cli/templates/default/__init__.py.template | 3 | ||||
| -rw-r--r-- | openerp/cli/templates/default/__openerp__.py.template | 6 | ||||
| -rw-r--r-- | openerp/cli/templates/default/controllers/__init__.py | 3 | ||||
| -rw-r--r-- | openerp/cli/templates/default/controllers/controllers.py.template (renamed from openerp/cli/templates/default/controllers.py.template) | 0 | ||||
| -rw-r--r-- | openerp/cli/templates/default/demo/demo.xml.template (renamed from openerp/cli/templates/default/demo.xml.template) | 0 | ||||
| -rw-r--r-- | openerp/cli/templates/default/models/__init__.py | 3 | ||||
| -rw-r--r-- | openerp/cli/templates/default/models/models.py.template (renamed from openerp/cli/templates/default/models.py.template) | 0 | ||||
| -rw-r--r-- | openerp/cli/templates/default/views/templates.xml.template (renamed from openerp/cli/templates/default/templates.xml.template) | 0 | ||||
| -rw-r--r-- | openerp/cli/templates/default/views/views.xml.template (renamed from openerp/cli/templates/default/views.xml) | 3 |
10 files changed, 14 insertions, 8 deletions
diff --git a/openerp/cli/templates/default/__init__.py b/openerp/cli/templates/default/__init__.py new file mode 100644 index 00000000000..aa4d0fd63a9 --- /dev/null +++ b/openerp/cli/templates/default/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- + +from . import controllers +from . import models diff --git a/openerp/cli/templates/default/__init__.py.template b/openerp/cli/templates/default/__init__.py.template deleted file mode 100644 index 43dbbaa6318..00000000000 --- a/openerp/cli/templates/default/__init__.py.template +++ /dev/null @@ -1,3 +0,0 @@ -# -*- coding: utf-8 -*- -import controllers -import models diff --git a/openerp/cli/templates/default/__openerp__.py.template b/openerp/cli/templates/default/__openerp__.py.template index 1e8f759ba4e..97b8372007c 100644 --- a/openerp/cli/templates/default/__openerp__.py.template +++ b/openerp/cli/templates/default/__openerp__.py.template @@ -25,11 +25,11 @@ # always loaded 'data': [ # 'security/ir.model.access.csv', - 'views.xml', - 'templates.xml', + 'views/views.xml', + 'views/templates.xml', ], # only loaded in demonstration mode 'demo': [ - 'demo.xml', + 'demo/demo.xml', ], } diff --git a/openerp/cli/templates/default/controllers/__init__.py b/openerp/cli/templates/default/controllers/__init__.py new file mode 100644 index 00000000000..b0f26a9a602 --- /dev/null +++ b/openerp/cli/templates/default/controllers/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import controllers diff --git a/openerp/cli/templates/default/controllers.py.template b/openerp/cli/templates/default/controllers/controllers.py.template index 505208171fc..505208171fc 100644 --- a/openerp/cli/templates/default/controllers.py.template +++ b/openerp/cli/templates/default/controllers/controllers.py.template diff --git a/openerp/cli/templates/default/demo.xml.template b/openerp/cli/templates/default/demo/demo.xml.template index 5ca25672404..5ca25672404 100644 --- a/openerp/cli/templates/default/demo.xml.template +++ b/openerp/cli/templates/default/demo/demo.xml.template diff --git a/openerp/cli/templates/default/models/__init__.py b/openerp/cli/templates/default/models/__init__.py new file mode 100644 index 00000000000..cde864bae21 --- /dev/null +++ b/openerp/cli/templates/default/models/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import models diff --git a/openerp/cli/templates/default/models.py.template b/openerp/cli/templates/default/models/models.py.template index 562aa3a851b..562aa3a851b 100644 --- a/openerp/cli/templates/default/models.py.template +++ b/openerp/cli/templates/default/models/models.py.template diff --git a/openerp/cli/templates/default/templates.xml.template b/openerp/cli/templates/default/views/templates.xml.template index b9166501678..b9166501678 100644 --- a/openerp/cli/templates/default/templates.xml.template +++ b/openerp/cli/templates/default/views/templates.xml.template diff --git a/openerp/cli/templates/default/views.xml b/openerp/cli/templates/default/views/views.xml.template index 2a1be8942b4..b19f7f7067b 100644 --- a/openerp/cli/templates/default/views.xml +++ b/openerp/cli/templates/default/views/views.xml.template @@ -1,6 +1,5 @@ {%- set mod = name|snake -%} {%- set model = "%s.%s"|format(mod, mod) -%} -<?xml version="1.0" encoding="utf-8"?> <openerp> <data> <!-- explicit list view definition --> @@ -41,7 +40,7 @@ </field> </record> --> - + <!-- Top menu item --> <!-- <menuitem name="{{name}}" id="{{mod}}.menu_root"/> |
