Repository
OCA/timesheet · module folder · Try on Runboat
Module version
1.1.0
Category
Human Resources
Folder size
0.07 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/timesheet
Last tracking update
2026-08-07 08:43:00
Authors
Odoo Community Association (OCA), Moduon
Maintainers
Odoo Community Association (OCA), Moduon
Committers
Saran440, Weblate, OCA-git-bot, oca-ci, Sabrina Martín
Odoo dependencies
Python dependencies
freezegun
System dependencies
None
Required by
None
Description
This module allows to update employee's costs from a given date onwards,
and logs cost changes in a separate table.

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
hr_employee_timesheet_cost_view_tree hr.employee.timesheet.cost.history.view.list hr.employee.timesheet.cost.history list New
hr_employee_timesheet_cost_wizard_view_form hr_employee_timesheet_cost_wizard.view.form hr.employee.timesheet.cost.wizard form New
hr_timesheet_retroactive_cost_view_employee_form_inherit hr.employee.view.form.inherit hr.employee form Inherits hr_hourly_cost.view_employee_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (1)
  • timesheet_cost_history_ids One2many → hr.employee.timesheet.cost.history
    comodel_name='hr.employee.timesheet.cost.history' copy=False inverse_name='employee_id'
Public methods (0)

No public methods.

New fields (5)
  • comment Char
  • currency_id Many2one → res.currency
    comodel_name='res.currency' string='Currency'
  • employee_id Many2one → hr.employee
    comodel_name='hr.employee' string='Employee'
  • hourly_cost Monetary
    currency_field='currency_id'
  • starting_date Date
    default=fields.Date.context_today help='The cost change has effect since this date.'
Public methods (0)

No public methods.

New fields (5)
  • comment Char
  • currency_id Many2one → res.currency
    ondelete='cascade' required=True string='Currency' args: 'res.currency'
  • employee_id Many2one → hr.employee
    comodel_name='hr.employee' ondelete='cascade' required=True string='Employee'
  • hourly_cost Monetary
    currency_field='currency_id' required=True
  • starting_date Date
    default=fields.Datetime.now help='Change timesheet cost from this date onwards.' required=True string='From Date'
Public methods (2)
  • default_get(self, fields)
    @api.model
  • update_employee_cost(self)
    Recalculates employee timesheet cost from the given date. This method uses the base function _timesheet_postprocess from account_analytic_line (hr_timesheet) to recalculate employee costs. Finally logs cost changes in cost history model.

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
green — ready to merge
Open since
101 days ago
Last activity
65 days ago
Repository
OCA/timesheet
Pull request
[MIG] hr_employee_cost_history : Migration to 19.0. (#914)
Status
Open migration PR — not merged yet for this version
CI status
green — ready to merge
Open since
300 days ago
Last activity
99 days ago
Repository
OCA/timesheet
Pull request
[19.0][MIG] hr_employee_cost_history: Migration to 19.0 (#835)