Fix pep8 and pyflakes

This commit is contained in:
Cédric Krier committed 2012-04-03 20:07:54 +02:00
1 parent 7db9c70972
commit f6de7e71e4
3 files changed
+7 -2

No files matched your search

+3 -1
View File
@@ -14,7 +14,9 @@ class Line(ModelSQL, ModelView):
_description = __doc__
employee = fields.Many2One('company.employee', 'Employee', required=True,
select=True, domain=[('company', '=', Get(Eval('context', {}), 'company'))])
select=True, domain=[
('company', '=', Get(Eval('context', {}), 'company')),
])
date = fields.Date('Date', required=True, select=True)
hours = fields.Float('Hours', digits=(16, 2), required=True)
work = fields.Many2One('timesheet.work', 'Work',
+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 TimesheetTestCase(unittest.TestCase):
'''
test_depends()
def suite():
suite = trytond.tests.test_tryton.suite()
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(
+1
View File
@@ -121,6 +121,7 @@ class Work(ModelSQL, ModelView):
if not ids:
return {}
res = {}
def _name(work):
if work.parent:
return _name(work.parent) + '\\' + work.name