HR Worked Days From Timesheet

hr_worked_days_from_timesheet
REPOSITORY
REPOSITORYOCA/hr
GIT
GIThttps://github.com/OCA/hr.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/hr/tree/15.0/hr_worked_days_from_timesheet
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYGeneric Modules/Human Resources
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Acysos S.L., ForgeFlow, Serpent Consulting Services Pvt. Ltd., Savoir-faire Linux
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Acysos S.L., ForgeFlow, Serpent Consulting Services Pvt. Ltd., Savoir-faire Linux
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Juany Davila
WEBSITE
WEBSITEhttps://github.com/OCA/hr
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:46:36
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/payroll:
    - payroll
OCA/timesheet:
    - hr_timesheet_sheet
OCA/web:
    - web_widget_x2many_2d_matrix
odoo/odoo:
    - hr_contract
    - hr
    - base_setup
    - base
    - web
    - mail
    - bus
    - web_tour
    - resource
    - hr_holidays
    - calendar
    - hr_timesheet
    - analytic
    - uom
    - project
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - rating
    - digest
    - sale_timesheet
    - sale_project
    - sale_management
    - sale
    - sales_team
    - payment
    - account
    - product
    - utm
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_hr_payslip_form hr.payslip.form hr.payslip field Inherits payroll.hr_payslip_view_form
Models touched (2)

New fields (0)

No new fields.

Public methods (3)
  • get_timesheets_from_employee(self, employee, date_from, date_to)
    @api.model
  • import_worked_days(self)
    This method retrieves the employee's timesheet for a payslip period and creates worked days records from the imported timesheet
  • prepare_worked_days(self, payslip, ts_sheet, date_from, date_to)
    @api.model

New fields (2)
  • imported_from_timesheet Boolean
    default=False
  • timesheet_sheet_id Many2one → hr_timesheet.sheet
    comodel_name='hr_timesheet.sheet' string='Timesheet'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/hr
GIT
GIThttps://github.com/OCA/hr.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/hr/tree/14.0/hr_worked_days_from_timesheet
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYGeneric Modules/Human Resources
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Acysos S.L., ForgeFlow, Serpent Consulting Services Pvt. Ltd., Savoir-faire Linux
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Acysos S.L., ForgeFlow, Serpent Consulting Services Pvt. Ltd., Savoir-faire Linux
COMMITTERS
COMMITTERSOCA Transbot, Weblate, OCA-git-bot, oca-ci, Juany Davila
WEBSITE
WEBSITEhttps://github.com/OCA/hr
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:41:02
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/payroll:
    - payroll
OCA/timesheet:
    - hr_timesheet_sheet
OCA/web:
    - web_widget_x2many_2d_matrix
odoo/odoo:
    - hr_contract
    - hr
    - base_setup
    - base
    - web
    - mail
    - bus
    - web_tour
    - resource
    - hr_holidays
    - calendar
    - hr_timesheet
    - analytic
    - uom
    - project
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - rating
    - digest
    - sale_timesheet
    - sale_project
    - sale_management
    - sale
    - sales_team
    - payment
    - account
    - product
    - utm
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_hr_payslip_form hr.payslip.form hr.payslip field Inherits payroll.hr_payslip_view_form
Models touched (2)

New fields (0)

No new fields.

Public methods (3)
  • get_timesheets_from_employee(self, employee, date_from, date_to)
    @api.model
  • import_worked_days(self)
    This method retreives the employee's timesheets for a payslip period and creates worked days records from the imported timesheets
  • prepare_worked_days(self, payslip, ts_sheet, date_from, date_to)
    @api.model

New fields (2)
  • imported_from_timesheet Boolean
    default=False string='Imported From Timesheet'
  • timesheet_sheet_id Many2one → hr_timesheet.sheet
    comodel_name='hr_timesheet.sheet' string='Timesheet'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/hr
GIT
GIThttps://github.com/OCA/hr.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/hr/tree/12.0/hr_worked_days_from_timesheet
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYGeneric Modules/Human Resources
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Acysos S.L., Eficent, Serpent Consulting Services Pvt. Ltd., Savoir-faire Linux
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Acysos S.L., Eficent, Serpent Consulting Services Pvt. Ltd., Savoir-faire Linux
COMMITTERS
COMMITTERSmreficent, OCA Transbot, oca-travis, Weblate, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/hr
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:19
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/timesheet:
    - hr_timesheet_sheet
OCA/web:
    - web_widget_x2many_2d_matrix
odoo/odoo:
    - hr_payroll
    - hr_contract
    - hr
    - base_setup
    - base
    - web
    - mail
    - bus
    - web_tour
    - resource
    - hr_holidays
    - calendar
    - decimal_precision
    - hr_timesheet
    - analytic
    - uom
    - project
    - portal
    - http_routing
    - rating
    - digest
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_hr_payslip_form hr.payslip.form hr.payslip field Inherits hr_payroll.view_hr_payslip_form
Models touched (2)

New fields (0)

No new fields.

Public methods (3)
  • get_timesheets_from_employee(self, employee, date_from, date_to)
    @api.model
  • import_worked_days(self)
    @api.multi
    This method retreives the employee's timesheets for a payslip period and creates worked days records from the imported timesheets
  • prepare_worked_days(self, payslip, ts_sheet, date_from, date_to)
    @api.model

New fields (2)
  • imported_from_timesheet Boolean
    default=False string='Imported From Timesheet'
  • timesheet_sheet_id Many2one → hr_timesheet.sheet
    comodel_name='hr_timesheet.sheet' string='Timesheet'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/hr
GIT
GIThttps://github.com/OCA/hr.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/hr/tree/10.0/hr_worked_days_from_timesheet
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYGeneric Modules/Human Resources
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Acysos S.L., Eficent, Serpent Consulting Services Pvt. Ltd., Savoir-faire Linux
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Acysos S.L., Eficent, Serpent Consulting Services Pvt. Ltd., Savoir-faire Linux
COMMITTERS
COMMITTERSPedro M. Baeza, GitHub, Stéphane Bidoul (ACSONE), OCA Transbot, oca-travis, aheficent, Iryna Vyshnevska, Nikul Chaudhary
WEBSITE
WEBSITEhttps://www.savoirfairelinux.com/
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:19:57
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - hr_payroll
    - hr_contract
    - base_action_rule
    - base
    - resource
    - mail
    - base_setup
    - web_kanban
    - web
    - bus
    - web_tour
    - hr
    - hr_holidays
    - calendar
    - web_calendar
    - product
    - decimal_precision
    - report
    - hr_timesheet_sheet
    - hr_timesheet
    - account
    - analytic
    - web_planner
    - project
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_hr_payslip_form hr.payslip.form hr.payslip xpath Inherits hr_payroll.view_hr_payslip_form
Models touched (2)

New fields (0)

No new fields.

Public methods (3)
  • get_timesheets_from_employee(self, employee, date_from, date_to)
    @api.model
  • import_worked_days(self)
    @api.multi
    This method retreives the employee's timesheets for a payslip period and creates worked days records from the imported timesheets
  • prepare_worked_days(self, payslip, ts_sheet, date_from, date_to)
    @api.model

New fields (2)
  • imported_from_timesheet Boolean
    default=False string='Imported From Timesheet'
  • timesheet_sheet_id Many2one → hr_timesheet_sheet.sheet
    comodel_name='hr_timesheet_sheet.sheet' string='Timesheet'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/hr
GIT
GIThttps://github.com/OCA/hr.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/hr/tree/9.0/hr_worked_days_from_timesheet
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYGeneric Modules/Human Resources
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Acysos S.L., Eficent, Savoir-faire Linux
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Acysos S.L., Eficent, Savoir-faire Linux
COMMITTERS
COMMITTERSPedro M. Baeza, Stéphane Bidoul (ACSONE), OCA Transbot, oca-travis, aheficent, lreficent
WEBSITE
WEBSITEhttps://www.savoirfairelinux.com/
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:15:21
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - hr_payroll
    - hr
    - base_setup
    - base
    - web_kanban
    - web
    - mail
    - bus
    - resource
    - web_tip
    - hr_contract
    - base_action_rule
    - hr_holidays
    - calendar
    - web_calendar
    - report
    - decimal_precision
    - hr_timesheet_sheet
    - hr_timesheet
    - account
    - product
    - analytic
    - web_planner
    - hr_attendance
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_hr_payslip_form hr.payslip.form hr.payslip xpath Inherits hr_payroll.view_hr_payslip_form
Models touched (2)

New fields (0)

No new fields.

Public methods (2)
  • get_timesheets_from_employee(self, employee, date_from, date_to)
    @api.model
  • import_worked_days(self)
    @api.multi
    This method retreives the employee's timesheets for a payslip period and creates worked days records from the imported timesheets

New fields (2)
  • imported_from_timesheet Boolean
    default=False string='Imported From Timesheet'
  • timesheet_sheet_id Many2one → hr_timesheet_sheet.sheet
    comodel_name='hr_timesheet_sheet.sheet' string='Timesheet'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/hr
GIT
GIThttps://github.com/OCA/hr.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/hr/tree/8.0/hr_worked_days_from_timesheet
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYGeneric Modules/Human Resources
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Acysos S.L., Savoir-faire Linux
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Acysos S.L., Savoir-faire Linux
COMMITTERS
COMMITTERSStéphane Bidoul, Stéphane Bidoul (ACSONE), OCA Transbot, oca-travis, Andhitia Rama
WEBSITE
WEBSITEhttps://www.savoirfairelinux.com/
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:23
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - hr_payroll
    - hr
    - base_setup
    - base
    - web_kanban
    - web
    - mail
    - resource
    - board
    - hr_contract
    - base_action_rule
    - hr_holidays
    - calendar
    - web_calendar
    - decimal_precision
    - report
    - hr_timesheet_sheet
    - hr_timesheet
    - account
    - product
    - analytic
    - edi
    - email_template
    - hr_attendance
    - hr_timesheet_invoice
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_hr_payslip_form hr.payslip.form hr.payslip separator Inherits hr_payroll.view_hr_payslip_form
Models touched (2)

New fields (0)

No new fields.

Public methods (1)
  • import_worked_days(self)
    @api.multi
    This method retreives the employee's timesheets for a payslip period and creates worked days records from the imported timesheets

New fields (2)
  • imported_from_timesheet Boolean
    default=False string='Imported From Timesheet'
  • timesheet_sheet_id Many2one → hr_timesheet_sheet.sheet
    comodel_name='hr_timesheet_sheet.sheet' string='Timesheet'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/hr
GIT
GIThttps://github.com/OCA/hr.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/hr/tree/7.0/hr_worked_days_from_timesheet
VERSION
VERSION 1.0
CATEGORY
CATEGORYGeneric Modules/Human Resources
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Savoir-faire Linux
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Savoir-faire Linux
COMMITTERS
COMMITTERSAlexandre Fayolle, OCA Transbot, Rudolf Schnapka, dufresnedavid, Maxime Chambreuil - http://www.savoirfairelinux.com
WEBSITE
WEBSITEhttps://www.savoirfairelinux.com/
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:07:14
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - hr_payroll
    - hr
    - base_setup
    - base
    - web_kanban
    - web
    - mail
    - resource
    - process
    - board
    - hr_contract
    - hr_holidays
    - base_calendar
    - base_status
    - base_action_rule
    - decimal_precision
    - hr_timesheet_sheet
    - hr_timesheet
    - account
    - product
    - analytic
    - edi
    - email_template
    - hr_attendance
    - hr_timesheet_invoice
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Worked Days From Timesheet
==========================
* Add a button to import worked days from timesheet in a single payslip
* Add the option to import worked days from timesheet in payslip batches
  when generating payslips.

Contributors
------------
* David Dufresne <david.dufresne@savoirfairelinux.com>
* Pierre Lamarche <pierre.lamarche@savoirfairelinux.com>

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
view_hr_payslip_by_employees hr_payroll_payslip_employees hr.payslip.employees separator Inherits hr_payroll.view_hr_payslip_by_employees
view_hr_payslip_form hr.payslip.form hr.payslip separator Inherits hr_payroll.view_hr_payslip_form
Models touched (4)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (3)
  • get_timesheets_from_employee(self, cr, uid, employee_id, date_from, date_to, context=None)
    Get timesheet sheets of an employee for a period of time
  • import_worked_days(self, cr, uid, payslip_ids, context=None)
    Retreive the employee's timesheets for a payslip period and create worked days records from the imported timesheets
  • timesheet_mapping(self, cr, uid, timesheet_sheets, payslip, date_from, date_to, date_format, context=None)
    Take timesheet objects imported from the timesheet module and create a dict of worked days to be created in the payslip.

New fields (0)

No new fields.

Public methods (1)
  • compute_sheet(self, cr, uid, ids, context=None)
    If import_from_timesheet boolean is True, import worked days before computing each payslip, othewise, only compute the payslips.

New fields (0)

No new fields.

Public methods (0)

No public methods.