From 577422b85ddc0af5aa17586b045fd33418996466 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 9 Jun 2008 16:54:33 +0200 Subject: [PATCH] Rename work_type into work --- __init__.py | 2 +- __tryton__.py | 2 +- line.py | 2 +- line.xml | 6 +- work_type.py => work.py | 95 ++++++++++++------------ work_type.xml => work.xml | 150 +++++++++++++++++++------------------- 6 files changed, 129 insertions(+), 128 deletions(-) rename work_type.py => work.py (71%) rename work_type.xml => work.xml (52%) 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 @@