From 656e69351ac777affc10fd3e03b4f61a166f9bc7 Mon Sep 17 00:00:00 2001 From: Stephane Wirtel Date: Wed, 21 Jan 2009 03:22:38 +0100 Subject: [PATCH] [IMP] hr_timesheet_project - The date field is mandatory in a task work lp bug: https://launchpad.net/bugs/319312 fixed bzr revid: stephane@tinyerp.com-20090121022238-hdlcpeck044wbbdh --- addons/hr_timesheet_project/__init__.py | 1 + .../hr_timesheet_project.py | 32 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 addons/hr_timesheet_project/hr_timesheet_project.py diff --git a/addons/hr_timesheet_project/__init__.py b/addons/hr_timesheet_project/__init__.py index 5152cda9e9e..9e910c034d9 100644 --- a/addons/hr_timesheet_project/__init__.py +++ b/addons/hr_timesheet_project/__init__.py @@ -20,6 +20,7 @@ # ############################################################################## +import hr_timesheet_project import wizard # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/hr_timesheet_project/hr_timesheet_project.py b/addons/hr_timesheet_project/hr_timesheet_project.py new file mode 100644 index 00000000000..5388f48f805 --- /dev/null +++ b/addons/hr_timesheet_project/hr_timesheet_project.py @@ -0,0 +1,32 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2009 Tiny SPRL (). All Rights Reserved +# $Id$ +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +############################################################################## + +from osv import osv, fields + +class project_work(osv.osv): + _inherit = 'project.task.work' + _columns = { + 'date' : fields.datetime('Date', required=True), + } +project_work() + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: