forked from Mapan/odoo17e
20 lines
1004 B
Python
20 lines
1004 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
from odoo import models, fields
|
|
|
|
|
|
class HRContract(models.Model):
|
|
_inherit = 'hr.contract'
|
|
|
|
l10n_sa_housing_allowance = fields.Monetary(string='Saudi Housing Allowance')
|
|
l10n_sa_transportation_allowance = fields.Monetary(string='Saudi Transportation Allowance')
|
|
l10n_sa_other_allowances = fields.Monetary(string='Saudi Other Allowances')
|
|
l10n_sa_number_of_days = fields.Integer(string='Saudi Number of Days',
|
|
help='Number of days of basic salary to be added to the end of service provision per year')
|
|
l10n_sa_company_country_code = fields.Char(related='company_country_id.code', depends=['company_country_id'], string='Saudi Company Country Code')
|
|
|
|
_sql_constraints = [
|
|
('l10n_sa_hr_payroll_number_of_days_constraint', 'CHECK(l10n_sa_number_of_days >= 0)',
|
|
'Number of Days must be equal to or greater than 0')
|
|
]
|