35 lines
1.3 KiB
Python
35 lines
1.3 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class ResCompany(models.Model):
|
|
_inherit = 'res.company'
|
|
|
|
plafond_secu = fields.Float(string='Plafond de la Securite Sociale', digits='Payroll')
|
|
nombre_employes = fields.Integer(string='Nombre d\'employes')
|
|
cotisation_prevoyance = fields.Float(string='Cotisation Patronale Prevoyance', digits='Payroll')
|
|
org_ss = fields.Char(string='Organisme de securite sociale')
|
|
conv_coll = fields.Char(string='Convention collective')
|
|
|
|
|
|
class HrVersion(models.Model):
|
|
_inherit = 'hr.version'
|
|
|
|
qualif = fields.Char(string='Qualification', groups="hr_payroll.group_hr_payroll_user", tracking=True)
|
|
niveau = fields.Char(groups="hr_payroll.group_hr_payroll_user", tracking=True)
|
|
coef = fields.Char(string='Coefficient', groups="hr_payroll.group_hr_payroll_user", tracking=True)
|
|
|
|
|
|
class HrPayslip(models.Model):
|
|
_inherit = 'hr.payslip'
|
|
|
|
payment_mode = fields.Char(string='Mode de paiement')
|
|
|
|
def _get_out_of_contract_calendar(self):
|
|
self.ensure_one()
|
|
if not self.company_id.country_id.code == 'FR':
|
|
return super()._get_out_of_contract_calendar()
|
|
return self.company_id.resource_calendar_id
|