HR - Payroll Document

hr_payroll_document
REPOSITORY
REPOSITORYOCA/payroll
GIT
GIThttps://github.com/OCA/payroll.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/payroll/tree/17.0/hr_payroll_document
VERSION
VERSION 1.1.2
CATEGORY
CATEGORYPayrolls
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), APSL
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), APSL
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, Simone Rubino, oca-ci, Antoni Marroig Campomar, Paco Montés
WEBSITE
WEBSITEhttps://github.com/OCA/payroll
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:20:08
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - hr
    - base_setup
    - base
    - web
    - phone_validation
    - mail
    - bus
    - web_tour
    - resource
    - base_vat
    - account
    - onboarding
    - product
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES pypdf
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module have a wizard view to manage the different payrolls of employees which is identified by the identification_id attribute.

By default, the employee's payroll is encrypted using their identification number.
This behavior can be changed by the employee in their profile or by HR in the employee's form.

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
hr_employee_view_tree_payroll inherit_view.hr_employee hr.employee xpath Inherits hr.view_employee_form
payrolls_management_wizard_form payroll.management.wizard.form payroll.management.wizard form New
res_users_view_form_profile_inherit hr.res_user.view.form.inherit.document res.users div Inherits hr.res_users_view_form_profile
view_employee_form hr.employee.form hr.employee group Inherits hr.view_employee_form
view_payroll_filter payroll.view.search ir.attachment.payroll.custom search New
view_payroll_tree payroll.view.tree ir.attachment.payroll.custom tree New
Models touched (5)

New fields (2)
  • no_payroll_encryption Boolean
    groups='hr.group_hr_user' help='If this is disabled (default), the PDF payrolls are encrypted using the Identification No.\nOnly future payrolls are affected by this change, existing payrolls will not change their encryption status.' string='Disable payrolls encryption'
  • payroll_count Integer
    compute='_compute_payroll_count'
Public methods (2)
  • action_get_payroll_tree_view(self)
  • write(self, vals)

New fields (2)
  • document_type Selection
    args: [('payroll', 'Payroll')]
  • payrol_rel Many2many → payroll.management.wizard
    string='Attachment' args: 'payroll.management.wizard', 'payrolls', 'attachment_id3', 'document_id'
Public methods (0)

No public methods.

New fields (5)
  • attachment_id Many2one → ir.attachment
    comodel_name='ir.attachment' ondelete='cascade' prefetch=False string='Attachment File'
  • create_date Date
    default=fields.Date.context_today
  • employee Char
  • identification_id Char
    args: 'Identification ID'
  • subject Char
Public methods (1)
  • download(self)

New fields (2)
  • payrolls Many2many → ir.attachment
    copy=False required=True args: 'ir.attachment', 'payrol_rel', 'doc_id', 'attach_id3'
  • subject Char
    help='Enter the title of the payroll whether it is the month, week, day, etc.' required=True
Public methods (4)
  • merge_pdfs(self)
  • send_mail(self, employee, path)
  • send_payrolls(self)
  • validate_id(self, number)

New fields (1)
  • no_payroll_encryption Boolean
    readonly=False related='employee_id.no_payroll_encryption' related_sudo=False
Public methods (1)
  • action_get_attachment_tree_view(self)
REPOSITORY
REPOSITORYOCA/payroll
GIT
GIThttps://github.com/OCA/payroll.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/payroll/tree/16.0/hr_payroll_document
VERSION
VERSION 1.3.2
CATEGORY
CATEGORYPayrolls
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), APSL
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), APSL
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, Simone Rubino, oca-ci, CristianoMafraJunior, Antoni Marroig Campomar
WEBSITE
WEBSITEhttps://github.com/OCA/payroll
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:53
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - hr
    - base_setup
    - base
    - web
    - mail
    - bus
    - web_tour
    - resource
    - base_vat
    - account
    - product
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES pypdf
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
payrolls_management_wizard_form payroll.management.wizard.form payroll.management.wizard form New
res_users_view_form_profile Add Payroll fields to User profile form view res.users div Inherits hr.res_users_view_form_profile
view_employee_form hr.employee.form hr.employee group Inherits hr.view_employee_form
Models touched (5)

New fields (1)
  • no_payroll_encryption Boolean
    groups='hr.group_hr_user' help='If this is disabled (default), the PDF payrolls are encrypted using the Identification No.\nOnly future payrolls are affected by this change, existing payrolls will not change their encryption status.' string='Disable payrolls encryption'
Public methods (0)

No public methods.

New fields (1)
  • payrol_rel Many2many → payroll.management.wizard
    invisible=1 string='Attachment' args: 'payroll.management.wizard', 'payrolls', 'attachment_id3', 'document_id'
Public methods (0)

No public methods.

New fields (5)
  • attachment_id Many2one → ir.attachment
    comodel_name='ir.attachment' invisible=True ondelete='cascade' prefetch=False string='Attachment File'
  • create_date Date
    default=fields.Date.context_today
  • employee Char
  • identification_id Char
    args: 'Identification ID'
  • subject Char
Public methods (0)

No public methods.

New fields (2)
  • payrolls Many2many → ir.attachment
    copy=False args: 'ir.attachment', 'payrol_rel', 'doc_id', 'attach_id3'
  • subject Char
    help='Enter the title of the payroll whether it is the month, week, day, etc.'
Public methods (4)
  • merge_pdfs(self)
  • send_mail(self, employee, path)
  • send_payrolls(self)
  • validate_id(self, code)

New fields (1)
  • no_payroll_encryption Boolean
    readonly=False related='employee_id.no_payroll_encryption' related_sudo=False
Public methods (0)

No public methods.

STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/payroll
PULL REQUEST
PULL REQUEST[18.0][MIG] hr_payroll_document: Migration to 18.0 (#268)
STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/payroll
PULL REQUEST
PULL REQUEST[18.0][MIG] hr_payroll_document: Migration to 18.0 (#239)