From f7780c0caa5c4f78ecb28fd51194eb665177f03e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 28 Feb 2009 17:07:12 +0100 Subject: [PATCH] Remove OSV and WizardOSV --- line.py | 17 ++++++++--------- work.py | 12 ++++++------ 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/line.py b/line.py index 7d51e38408..b621a38658 100644 --- a/line.py +++ b/line.py @@ -1,12 +1,11 @@ #This file is part of Tryton. The COPYRIGHT file at the top level #of this repository contains the full copyright notices and license terms. "Timesheet Line" - -from trytond.osv import fields, OSV -from trytond.wizard import Wizard, WizardOSV +from trytond.model import ModelView, ModelSQL, fields +from trytond.wizard import Wizard -class Line(OSV): +class Line(ModelSQL, ModelView): 'Timesheet Line' _name = 'timesheet.line' _description = __doc__ @@ -67,7 +66,7 @@ class Line(OSV): Line() -class EnterLinesInit(WizardOSV): +class EnterLinesInit(ModelView): 'Enter Lines Init' _name = 'timesheet.enter_lines.init' _description = __doc__ @@ -141,7 +140,7 @@ class EnterLines(Wizard): EnterLines() -class HoursEmployee(OSV): +class HoursEmployee(ModelSQL, ModelView): 'Hours per Employee' _name = 'timesheet.hours_employee' _description = __doc__ @@ -170,7 +169,7 @@ class HoursEmployee(OSV): HoursEmployee() -class OpenHoursEmployeeInit(WizardOSV): +class OpenHoursEmployeeInit(ModelView): 'Open Hours Employee Init' _name = 'timesheet.open_hours_employee.init' _description = __doc__ @@ -224,7 +223,7 @@ class OpenHoursEmployee(Wizard): OpenHoursEmployee() -class HoursEmployeeWeekly(OSV): +class HoursEmployeeWeekly(ModelSQL, ModelView): 'Hours per Employee per Week' _name = 'timesheet.hours_employee_weekly' _description = __doc__ @@ -253,7 +252,7 @@ class HoursEmployeeWeekly(OSV): HoursEmployeeWeekly() -class HoursEmployeeMonthly(OSV): +class HoursEmployeeMonthly(ModelSQL, ModelView): 'Hours per Employee per Month' _name = 'timesheet.hours_employee_monthly' _description = __doc__ diff --git a/work.py b/work.py index e131e92b31..93b6aeb8e4 100644 --- a/work.py +++ b/work.py @@ -1,11 +1,11 @@ -#This file is part of Tryton. The COPYRIGHT file at the top level of this repository contains the full copyright notices and license terms. +#This file is part of Tryton. The COPYRIGHT file at the top level of +#this repository contains the full copyright notices and license terms. "Work" - -from trytond.osv import fields, OSV -from trytond.wizard import Wizard, WizardOSV +from trytond.model import ModelView, ModelSQL, fields +from trytond.wizard import Wizard -class Work(OSV): +class Work(ModelSQL, ModelView): 'Work' _name = 'timesheet.work' _description = __doc__ @@ -113,7 +113,7 @@ class Work(OSV): Work() -class OpenWorkInit(WizardOSV): +class OpenWorkInit(ModelView): 'Open Work Init' _name = 'timesheet.work.open.init' _description = __doc__