mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[ADD] hr_payroll_overtime: for Odoo 13.0
This commit is contained in:
21
hr_payroll_overtime/models/hr_work_entry.py
Normal file
21
hr_payroll_overtime/models/hr_work_entry.py
Normal file
@@ -0,0 +1,21 @@
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class HRWorkEntryType(models.Model):
|
||||
_inherit = 'hr.work.entry.type'
|
||||
|
||||
overtime_work_type_id = fields.Many2one('hr.work.entry.type', string='Overtime Work Type')
|
||||
overtime_type_id = fields.Many2one('hr.work.entry.overtime.type', string='Overtime Rules')
|
||||
|
||||
|
||||
class HRWorkEntryOvertime(models.Model):
|
||||
_name = 'hr.work.entry.overtime.type'
|
||||
_description = 'Overtime Rules'
|
||||
|
||||
name = fields.Char(string='Name')
|
||||
hours_per_day = fields.Float(string='Hours/Day',
|
||||
help='Number of hours worked in a single day to trigger overtime.')
|
||||
hours_per_week = fields.Float(string='Hours/Week',
|
||||
help='Number of hours worked in a week to trigger overtime.')
|
||||
multiplier = fields.Float(string='Multiplier',
|
||||
help='Rate for when overtime is reached.')
|
||||
Reference in New Issue
Block a user