Skip to content
Health
80/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 1 month ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 9 Odoo series since 8.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
5 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.47 MB
Module directory on disk
Code analysis 0 migration notes 11 models 11 views 0 HTTP endpoints

Description

Este é o módulo base dos recursos humanos brasileiro e implementa adaptações nos modelos básicos do cadastro de Empregados e suas dependências:

  • Campo CPF (armazenado sem máscara, como dígitos puros, no vat do contato de trabalho — convenção do l10n_br_base, pronto para o eSocial) com validação;
  • CPTS com validação;
  • PIS/PASEF (armazenado como dígitos puros, com máscara disponível no campo pis_pasep_formatted);
  • Certificado de serviço militar;
  • Naturalidade;
  • Escolaridade - usar hr_skills;
  • Dependentes - Usar hr_employee_relative;
  • RG;
  • Título de eleitor;
  • Paternidade;
  • Etinia;
  • Tipo sanguíneo;
  • Incapacidade física;
  • Tipo: Funcionário / Autônomo / Terceirizado / Cedido;

Dependencies

Odoo dependencies
Python dependencies
erpbrasil-base>=2.4.2, email-validator, num2words, phonenumbers, python-dateutil
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 11

XML IDNameModelTypeStatus
partner_form l10n_br_hr.res.partner.form res.partner form Inherits l10n_br_base.l10n_br_base_partner_form
view_hr_deficiency_tree hr.deficiency.tree.view hr.deficiency list New
view_hr_ethnicity_form hr.ethnicity.form.view hr.ethnicity form New
view_hr_ethnicity_tree hr.ethnicity.tree.view hr.ethnicity list New
view_hr_identity_type_tree hr.identity.type.tree.view hr.identity.type list New
view_l10n_br_hr_cbo_filter Código Brasileiro de Ocupações l10n_br_hr.cbo search New
view_l10n_br_hr_cbo_form l10n_br_hr.cbo.form l10n_br_hr.cbo form New
view_l10n_br_hr_cbo_tree l10n_br_hr.cbo.tree l10n_br_hr.cbo list New
view_l10n_br_hr_employee_form l10n_br_hr_employee.form hr.employee form Inherits hr.view_employee_form
view_l10n_br_hr_job_form l10n_br_hr_job.form hr.job form Inherits hr.view_hr_job_form
view_res_company_form_l10n_br_hr res.company in l10n_br_hr res.company form Inherits l10n_br_base.l10n_br_base_res_company_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 11

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (36)
  • alternate_email Char
    groups='hr.group_hr_user'
  • alternate_phone Char
    groups='hr.group_hr_user'
  • birth_city_id Many2one → res.city
    comodel_name='res.city' groups='hr.group_hr_user'
  • blood_type Selection
    groups='hr.group_hr_user' selection=[('a+', 'A+'), ('a-', 'A-'), ('b+', 'B+'), ('b-', 'B-'), ('o+', 'O+'), ('o-', 'O-'), ('ab+', 'AB+'), ('ab-', 'AB-')]
  • civil_certificate_type_id Many2one → hr.civil.certificate.type
    comodel_name='hr.civil.certificate.type' groups='hr.group_hr_user' string='Civil certificate type'
  • country_id Many2one → res.country
    comodel_name='res.country' default=<expr>
  • creservist Char
    groups='hr.group_hr_user' string='Military service status certificate'
  • cresv_categ Selection
    default='3' groups='hr.group_hr_user' selection=[('1', 'First Category'), ('2', 'Second Category'), ('3', 'Third Category')] string='Military service status category'
  • ctps Char
    groups='hr.group_hr_user' help='CTPS number' string='CTPS'
  • ctps_date Date
    groups='hr.group_hr_user' string='CTPS emission date'
  • ctps_series Char
    groups='hr.group_hr_user' string='CTPS series'
  • ctps_uf_id Many2one → res.country.state
    comodel_name='res.country.state' groups='hr.group_hr_user' string='CTPS district'
  • deficiency_description Char
    groups='hr.group_hr_user'
  • deficiency_id Many2one → hr.deficiency
    comodel_name='hr.deficiency' groups='hr.group_hr_user' tracking=True
  • driver_categ Char
    groups='hr.group_hr_user' string='Driver license category'
  • driver_license Char
    groups='hr.group_hr_user' string='Driver license number'
  • employee_relationship_type Selection
    default='funcionario' groups='hr.group_hr_user' required=True selection=[('funcionario', 'Funcionário'), ('autonomo', 'Autônomo'), ('terceirizado', 'Terceirizado'), ('cedido', 'Funcionário Cedido')] string='Tipo de Colaborador'
  • ethnicity Many2one → hr.ethnicity
    comodel_name='hr.ethnicity' groups='hr.group_hr_user'
  • expiration_date Date
    groups='hr.group_hr_user'
  • father_name Char
    groups='hr.group_hr_user'
  • identity_city_id Many2one → res.city
    comodel_name='res.city' domain="[('state_id','=',identity_uf_id)]" groups='hr.group_hr_user' string='ID expedition city'
  • identity_type_id Many2one → hr.identity.type
    comodel_name='hr.identity.type' groups='hr.group_hr_user' string='ID type'
  • identity_uf_id Many2one → res.country.state
    comodel_name='res.country.state' groups='hr.group_hr_user' string='ID expedition district'
  • identity_validity Date
    groups='hr.group_hr_user' string='ID expiration date'
  • l10n_br_rg_code Char
    groups='hr.group_hr_user' help='National ID number' related='work_contact_id.l10n_br_rg_code'
  • mother_name Char
    groups='hr.group_hr_user'
  • organ_exp Char
    groups='hr.group_hr_user' string='Dispatcher organ'
  • pis_pasep Char
    groups='hr.group_hr_user' string='PIS/PASEP'
  • pis_pasep_date Date
    groups='hr.group_hr_user' string='PIS/PASEP emission date'
  • pis_pasep_formatted Char
    compute='_compute_pis_pasep_formatted' groups='hr.group_hr_user' help='PIS/PASEP displayed with punctuation (XXX.XXXXX.XX-X); it is stored unformatted in the pis_pasep field.' inverse='_inverse_pis_pasep_formatted' string='PIS/PASEP Formatted'
  • registration Char
    groups='hr.group_hr_user' string='Registration number'
  • rg_emission Date
    groups='hr.group_hr_user' string='Emission date'
  • vat Char
    groups='hr.group_hr_user' readonly=False related='work_contact_id.vat' string='CPF'
  • voter_section Char
    groups='hr.group_hr_user'
  • voter_title Char
    groups='hr.group_hr_user'
  • voter_zone Char
    groups='hr.group_hr_user'
Public methods (3)
  • create(self, vals_list)
    @api.model_create_multi
  • onchange_vat(self)
    @api.onchange('vat')
    Keep the employee VAT (CPF) unformatted, following the l10n_br_base convention of storing res_partner.vat as plain digits (eSocial ready); the formatted value is available on the work contact through vat_formatted_cnpj.
  • write(self, vals)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (3)
  • employee_ids Many2many → hr.employee
    comodel_name='hr.employee' string='Employees'
  • initials Char
    required=True
  • name Char
    required=True string='Identity type'
Public methods (0)

No public methods.

New fields (1)
  • cbo_id Many2one → l10n_br_hr.cbo
    comodel_name='l10n_br_hr.cbo' string='CBO'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (2)
  • code Char
    index=True required=True
  • name Text
    index=True required=True
Public methods (0)

No public methods.

New fields (1)
  • cnpj_cei Char
    string='CNPJ/CEI Tomadora/Obra'
Public methods (0)

No public methods.

New fields (1)
  • union_entity_code Char
    string='Union Entity code'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…