Skip to content
Health
80/100
good
  • Security25/25
    No findings
  • Activity25/25
    Human commit this month
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 4 Odoo series since 15.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.08 MB
Module directory on disk
Code analysis 0 migration notes 3 models 3 views 0 HTTP endpoints

Description

This module allows to update employee's costs from a given date onwards, and logs cost changes in a separate table.

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

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.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'
  • employee_id Many2one → hr.employee
    comodel_name='hr.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 args: 'res.currency'
  • employee_id Many2one → hr.employee
    comodel_name='hr.employee' ondelete='cascade' required=True
  • 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…

Loading…