Fix pep8 and pyflakes
This commit is contained in:
1 parent
7db9c70972
commit
f6de7e71e4
3 files changed
+7
-2
No files matched your search
@@ -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',
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user