HR Employee Cost History

hr_employee_cost_history
REPOSITORY
REPOSITORYOCA/timesheet
GIT
GIThttps://github.com/OCA/timesheet.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/timesheet/tree/18.0/hr_employee_cost_history
VERSION
VERSION 1.1.0
CATEGORY
CATEGORYHuman Resources
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Moduon
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Moduon
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Saran440, Sabrina Martín
WEBSITE
WEBSITEhttps://github.com/OCA/timesheet
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:17
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - hr_timesheet
    - hr
    - base_setup
    - base
    - web
    - digest
    - mail
    - bus
    - web_tour
    - html_editor
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
    - phone_validation
    - resource_mail
    - hr_hourly_cost
    - analytic
    - uom
    - project
    - rating
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES freezegun
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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 xpath Inherits hr_hourly_cost.view_employee_form
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.
REPOSITORY
REPOSITORYOCA/timesheet
GIT
GIThttps://github.com/OCA/timesheet.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/timesheet/tree/16.0/hr_employee_cost_history
VERSION
VERSION 1.1.0
CATEGORY
CATEGORYHuman Resources
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Moduon
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Moduon
COMMITTERS
COMMITTERSStéphane Bidoul, Weblate, OCA-git-bot, oca-ci, hda, Eduardo López Peñalver
WEBSITE
WEBSITEhttps://github.com/OCA/timesheet
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:12:05
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - hr_timesheet
    - hr
    - base_setup
    - base
    - web
    - mail
    - bus
    - web_tour
    - resource
    - hr_hourly_cost
    - analytic
    - uom
    - project
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - rating
    - digest
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES freezegun
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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.tree hr.employee.timesheet.cost.history tree 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 xpath Inherits hr_hourly_cost.view_employee_form
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.
REPOSITORY
REPOSITORYOCA/timesheet
GIT
GIThttps://github.com/OCA/timesheet.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/timesheet/tree/15.0/hr_employee_cost_history
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYHuman Resources
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Moduon
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Moduon
COMMITTERS
COMMITTERSWeblate, oca-ci, Eduardo López Peñalver
WEBSITE
WEBSITEhttps://github.com/OCA/timesheet
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:00:41
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - hr_timesheet
    - hr
    - base_setup
    - base
    - web
    - mail
    - bus
    - web_tour
    - resource
    - analytic
    - uom
    - project
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - rating
    - digest
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES freezegun
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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.tree hr.employee.timesheet.cost.history tree 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 xpath Inherits hr.view_employee_form
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 (4)
  • 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 (4)
  • 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.
STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/timesheet
PULL REQUEST
PULL REQUEST[MIG] hr_employee_cost_history : Migration to 19.0. (#914)