[MERGE] Sync with trunk
[odoo/odoo.git] / addons / l10n_fr_hr_payroll / l10n_fr_hr_payroll.py
1 #-*- coding:utf-8 -*-
2 ##############################################################################
3 #
4 #    OpenERP, Open Source Management Solution
5 #    Copyright (C) 2011 OpenERP SA (<http://openerp.com>). All Rights Reserved
6 #
7 #    This program is free software: you can redistribute it and/or modify
8 #    it under the terms of the GNU Affero General Public License as published by
9 #    the Free Software Foundation, either version 3 of the License, or
10 #    (at your option) any later version.
11 #
12 #    This program is distributed in the hope that it will be useful,
13 #    but WITHOUT ANY WARRANTY; without even the implied warranty of
14 #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 #    GNU Affero General Public License for more details.
16 #
17 #    You should have received a copy of the GNU Affero General Public License
18 #    along with this program.  If not, see <http://www.gnu.org/licenses/>.
19 #
20 ##############################################################################
21
22 from openerp.osv import fields, osv
23 import openerp.addons.decimal_precision as dp
24
25
26 class res_company(osv.osv):
27     _inherit = 'res.company'
28
29     _columns = {
30         'plafond_secu': fields.float('Plafond de la Securite Sociale', digits_compute=dp.get_precision('Payroll')),
31         'nombre_employes': fields.integer('Nombre d\'employes'),
32         'cotisation_prevoyance': fields.float('Cotisation Patronale Prevoyance', digits_compute=dp.get_precision('Payroll')),
33         'org_ss': fields.char('Organisme de securite sociale', size=64),
34         'conv_coll': fields.char('Convention collective', size=64),
35     }
36
37
38 class hr_contract(osv.osv):
39     _inherit = 'hr.contract'
40
41     _columns = {
42         'qualif': fields.char('Qualification', size=64),
43         'niveau': fields.char('Niveau', size=64),
44         'coef': fields.char('Coefficient', size=64),
45     }
46
47 class hr_payslip(osv.osv):
48     _inherit = 'hr.payslip'
49
50     _columns = {
51         'payment_mode': fields.char('Mode de paiement', size=64),
52     }
53
54 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: