[FIX] pep8 errors generated by odoo.py scaffold

Signed-off-by: Sandy Carter <sandy.carter@savoirfairelinux.com>
This commit is contained in:
Sandy Carter 2014-06-04 12:06:06 +02:00
parent c6445e0fe6
commit 666ea5f98a
3 changed files with 3 additions and 2 deletions

View File

@ -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))

View File

@ -19,7 +19,7 @@
'version': '0.1',
# any module necessary for this one to work correctly
'depends': ['base','website'],
'depends': ['base', 'website'],
'data': [
],

View File

@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
from openerp.osv import orm, fields
class {{ model }}(orm.Model):
_name = "{{ module }}.{{ model }}"