Skip to content

Commit

Permalink
[FIX] pep8 errors generated by odoo.py scaffold
Browse files Browse the repository at this point in the history
Signed-off-by: Sandy Carter <[email protected]>
  • Loading branch information
Sandy Carter committed Jun 6, 2014
1 parent c6445e0 commit 666ea5f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openerp/cli/scaffold.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class ScaffoldModule(object):
"""
def __init__(self, path):
env = jinja2.Environment(loader=jinja2.PackageLoader(
'openerp.cli', 'scaffold'))
'openerp.cli', 'scaffold'), keep_trailing_newline=True)
env.filters['snake'] = snake
self.env = env
self.path = functools.partial(os.path.join, directory(path))
Expand Down
2 changes: 1 addition & 1 deletion openerp/cli/scaffold/__openerp__.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
'version': '0.1',

# any module necessary for this one to work correctly
'depends': ['base','website'],
'depends': ['base', 'website'],
'data': [
],

Expand Down
1 change: 1 addition & 0 deletions openerp/cli/scaffold/models.jinja2
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
from openerp.osv import orm, fields


class {{ model }}(orm.Model):
_name = "{{ module }}.{{ model }}"

Expand Down

0 comments on commit 666ea5f

Please sign in to comment.