[IMP] rename hr_payroll_l10n_be to l10_be_hr_payroll
[odoo/odoo.git] / addons / l10n_be_hr_payroll / hr_payroll_l10n_be.py
1 #-*- coding:utf-8 -*-
2 ##############################################################################
3 #
4 #    OpenERP, Open Source Management Solution
5 #    Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
6 #    d$
7 #
8 #    This program is free software: you can redistribute it and/or modify
9 #    it under the terms of the GNU Affero General Public License as published by
10 #    the Free Software Foundation, either version 3 of the License, or
11 #    (at your option) any later version.
12 #
13 #    This program is distributed in the hope that it will be useful,
14 #    but WITHOUT ANY WARRANTY; without even the implied warranty of
15 #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 #    GNU Affero General Public License for more details.
17 #
18 #    You should have received a copy of the GNU Affero General Public License
19 #    along with this program.  If not, see <http://www.gnu.org/licenses/>.
20 #
21 ##############################################################################
22
23 import time
24 from datetime import date
25 from datetime import datetime
26 from datetime import timedelta
27
28 import netsvc
29 from osv import fields, osv
30 import tools
31 from tools.translate import _
32 import decimal_precision as dp
33
34
35
36 class hr_contract_be(osv.osv):
37     _inherit = 'hr.contract'
38
39     _columns = {
40         'reim_travel':fields.float('Reimbursement of travel expenses', digits=(16,2)),
41         'company_car_emp':fields.float('Company car employer', digits=(16,2)),
42         'company_car_wkr':fields.float('Company Car Deduction for Worker', digits=(16,2)),
43         'mis_ex_onss':fields.float('Miscellaneous exempt ONSS ', digits=(16,2)),
44         'ch_value':fields.float('Check Value Meal ', digits=(16,2)),
45         'ch_worker':fields.float('Check Value Meal - by worker ', digits=(16,2)),
46         'insurance':fields.float('Insurance Group - by worker ', digits=(16,2)),
47         'advantage':fields.float('Benefits of various nature ', digits=(16,2)),
48         'suppl_net':fields.float('Net supplements', digits=(16,2)),
49         'retained_net':fields.float('Net retained ', digits=(16,2)),
50     }
51 hr_contract_be()
52
53 class hr_employee_be(osv.osv):
54     _inherit = 'hr.employee'
55
56     _columns = {
57         'statut_fiscal':fields.selection([('without income','Without Income'),('with income','With Income')], 'Tax status for spouse'),
58         'handicap':fields.boolean('Disabled Spouse', help="if recipient spouse is declared disabled by law"),
59         'handicap_child':fields.boolean('Disabled Children', help="if recipient children is/are declared disabled by law"),
60         'resident':fields.boolean('Nonresident', help="if recipient lives in a foreign country"),
61         'number_handicap':fields.integer('Number of disabled children'),
62     }
63 hr_employee_be()