diff --git a/__init__.py b/__init__.py index 5d6e3b899d..ef57a006f8 100644 --- a/__init__.py +++ b/__init__.py @@ -23,5 +23,5 @@ # ############################################################################## -from work_type import * +from work import * from line import * diff --git a/__tryton__.py b/__tryton__.py index e3a3f02895..3cb591bff4 100644 --- a/__tryton__.py +++ b/__tryton__.py @@ -13,7 +13,7 @@ ], 'xml': [ 'timesheet.xml', - 'work_type.xml', + 'work.xml', 'line.xml', ], } diff --git a/line.py b/line.py index 8d981223df..267fefcb1b 100644 --- a/line.py +++ b/line.py @@ -14,7 +14,7 @@ class Line(OSV): select=1) date = fields.Date('Date', required=True, select=1) hours = fields.Float('Hours', digits=(16, 2), required=True) - work_type = fields.Many2One('timesheet.work_type', 'Work Type', + work = fields.Many2One('timesheet.work', 'Work Type', required=True, select=1, domain=[('type', '!=', 'view')]) description = fields.Char('Description') diff --git a/line.xml b/line.xml index 425f3aa2b5..7362e7c1d7 100644 --- a/line.xml +++ b/line.xml @@ -13,8 +13,8 @@