~grzegorz-og.pl/openobject-addons/extra-5.0_account_asset

« back to all changes in this revision

Viewing changes to c2c_timesheet_reports/hr_employee.py

  • Committer: nicolas.bessi at camptocamp
  • Date: 2009-07-10 13:34:11 UTC
  • Revision ID: nicolas.bessi@camptocamp.com-20090710133411-mm1hd38lwe0wxcol
adding c2c_modules in stable

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
##############################################################################
 
3
#
 
4
# Copyright (c) Camptocamp SA
 
5
# Author: Arnaud Wüst
 
6
#
 
7
#
 
8
#    This file is part of the c2c_timesheet_report module
 
9
#
 
10
#
 
11
# WARNING: This program as such is intended to be used by professional
 
12
# programmers who take the whole responsability of assessing all potential
 
13
# consequences resulting from its eventual inadequacies and bugs
 
14
# End users who are looking for a ready-to-use solution with commercial
 
15
# garantees and support are strongly adviced to contract a Free Software
 
16
# Service Company
 
17
#
 
18
# This program is Free Software; you can redistribute it and/or
 
19
# modify it under the terms of the GNU General Public License
 
20
# as published by the Free Software Foundation; either version 2
 
21
# of the License, or (at your option) any later version.
 
22
#
 
23
# This program is distributed in the hope that it will be useful,
 
24
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
25
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
26
# GNU General Public License for more details.
 
27
#
 
28
# You should have received a copy of the GNU General Public License
 
29
# along with this program; if not, write to the Free Software
 
30
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
31
#
 
32
##############################################################################
 
33
from osv import fields, osv
 
34
 
 
35
 
 
36
class custom_res_partner_bank (osv.osv):
 
37
        _inherit = "hr.employee"
 
38
        _columns  = {
 
39
                'started' : fields.date('started on'),
 
40
                'ended' : fields.date('Ended on'),
 
41
                'receive_timesheet_alerts': fields.boolean('Receive Timesheet Alerts'),
 
42
        }
 
43
        
 
44
        _defaults = {
 
45
                'receive_timesheet_alerts': lambda *a: True,
 
46
        }
 
47
        
 
48
custom_res_partner_bank()
 
49