Fix pep8 and pyflakes

This commit is contained in:
Cédric Krier
2012-04-03 20:06:56 +02:00
parent ac26b12d15
commit bd7412a028
3 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -14,7 +14,7 @@
'website': 'http://www.tryton.org/',
'description': '''
''',
'description_ca_ES': '''Afegeix les hores de treball al dia, setmana, mes i
'description_ca_ES': '''Afegeix les hores de treball al dia, setmana, mes i
any per companyia.
''',
'depends': [
+1 -1
View File
@@ -7,7 +7,7 @@ class User(ModelSQL, ModelView):
_name = 'res.user'
def _get_preferences(self, user, context_only=False):
res = super(User, self)._get_preferences(user,
res = super(User, self)._get_preferences(user,
context_only=context_only)
if user.company:
res['company_work_time'] = {
+3 -1
View File
@@ -2,7 +2,8 @@
#This file is part of Tryton. The COPYRIGHT file at the top level of
#this repository contains the full copyright notices and license terms.
import sys, os
import sys
import os
DIR = os.path.abspath(os.path.normpath(os.path.join(__file__,
'..', '..', '..', '..', '..', 'trytond')))
if os.path.isdir(DIR):
@@ -33,6 +34,7 @@ class CompanyWorkTimeTestCase(unittest.TestCase):
'''
test_depends()
def suite():
suite = trytond.tests.test_tryton.suite()
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(