| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/l10n-brazil |
| GIT | |
| GIT | https://github.com/OCA/l10n-brazil.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/l10n-brazil/tree/19.0/l10n_br_resource |
| VERSION | |
| VERSION | 2.0.0 |
| CATEGORY | |
| CATEGORY | Uncategorized |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), KMEE |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), KMEE |
| COMMITTERS | |
| COMMITTERS | Raphaël Valyi, Weblate, OCA-git-bot, oca-ci, Cristiano Mafra Junior |
| WEBSITE | |
| WEBSITE | https://github.com/OCA/l10n-brazil |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 19:40:47 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
OCA/l10n-brazil: - l10n_br_base odoo/odoo: - base - base_setup - web - base_address_extended - contacts - bus - web_tour - html_editor - resource |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES |
workalendar email-validator erpbrasil.base num2words phonenumbers |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION | This module extends the core resource module to add data for Brazil. It defines a Brazilian calendar and some tools to compute dates used in financial and payroll modules. |
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
resource_calendar_form_view |
resource.calendar.form (in l10n_br_resource) | resource.calendar | field | Inherits resource.resource_calendar_form |
resource_calendar_leaves_form_view |
resource.calendar.leaves.form (in l10n_br_resource) | resource.calendar.leaves | field | Inherits resource.resource_calendar_leave_form |
resource_calendar_leaves_search_view |
resource.calendar.leaves.search (in l10n_br_resource) | resource.calendar.leaves | field | Inherits resource.view_resource_calendar_leaves_search |
resource_calendar_leaves_tree_view |
resource.calendar.leaves.tree (in l10n_br_resource) | resource.calendar.leaves | field | Inherits resource.resource_calendar_leave_tree |
resource_calendar_search_view |
resource.calendar.search (in l10n_br_resource) | resource.calendar | field | Inherits resource.view_resource_calendar_search |
resource_calendar_tree_view |
resource.calendar.tree (in l10n_br_resource) | resource.calendar | field | Inherits resource.view_resource_calendar_tree |
view_workalendar_holiday_import |
Import Holidays | wizard.workalendar.holiday.import | form | New |
child_ids
One2many → resource.calendar
string='Child Calendar'
args: 'resource.calendar', 'parent_id'
country_id
Many2one → res.country
l10n_br_city_id
Many2one → res.city
domain="[('state_id','=',state_id)]"
args: 'res.city', 'Municipality'
leave_ids
Many2many → resource.calendar.leaves
comodel_name='resource.calendar.leaves'
compute='_compute_leave_ids'
parent_id
Many2one → resource.calendar
index=True
ondelete='restrict'
string='Parent Calendar'
args: 'resource.calendar'
parent_path
Char
index=True
state_id
Many2one → res.country.state
domain="[('country_id','=',country_id)]"
args: 'res.country.state', 'State'
count_business_days(self, start_date, end_date)
get_base_days(self, date_from, date_to, commercial_month=True)
get_leave_intervals(self, resource_id=None, start_datetime=None, end_datetime=None)
is_bank_business_day(self, date)
is_bank_holiday(self, reference_date)
is_business_day(self, date)
is_extended_holiday(self, reference_date)
is_holiday(self, date)
next_bank_business_day(self, reference_date)
next_business_day(self, reference_date)
country_id
Many2one → res.country
related='calendar_id.country_id'
string='Country'
args: 'res.country'
coverage
Selection
selection=HOLIDAY_COVERAGE_LABELS
l10n_br_city_id
Many2one → res.city
domain="[('state_id','=',state_id)]"
related='calendar_id.l10n_br_city_id'
args: 'res.city', 'Municipality'
leave_type
Selection
selection=HOLIDAY_TYPE_LABELS
string='Type'
state_id
Many2one → res.country.state
domain="[('country_id','=',country_id)]"
related='calendar_id.state_id'
args: 'res.country.state', 'State'
No public methods.
calendar_id
Many2one → resource.calendar
string='Work Time'
args: 'resource.calendar'
end_date
Date
compute='_compute_end_date'
interval_number
Integer
default=1
string='Interval'
interval_type
Selection
default='years'
required=True
string='Type'
args: [('days', 'Day(s)'), ('weeks', 'Week(s)'), ('months', 'Month(s)'), ('years', 'Year(s)')]
start_date
Date
default=fields.Date.today
readonly=True
get_calendar_for_city(self, holiday)
get_calendar_for_country(self)
get_calendar_for_state(self, holiday)
get_country_from_calendar(self, holiday)
get_state_from_calendar(self, holiday)
holiday_import(self)
| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/l10n-brazil |
| GIT | |
| GIT | https://github.com/OCA/l10n-brazil.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/l10n-brazil/tree/18.0/l10n_br_resource |
| VERSION | |
| VERSION | 2.0.0 |
| CATEGORY | |
| CATEGORY | Uncategorized |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), KMEE |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), KMEE |
| COMMITTERS | |
| COMMITTERS | Weblate, OCA-git-bot, oca-ci, Wesley Oliveira, CristianoMafraJunior |
| WEBSITE | |
| WEBSITE | https://github.com/OCA/l10n-brazil |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 19:30:10 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
OCA/l10n-brazil: - l10n_br_base odoo/odoo: - base - base_setup - web - base_address_extended - contacts - bus - web_tour - html_editor - resource |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES |
workalendar email-validator erpbrasil.base num2words phonenumbers |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION | This module extends the core resource module to add data for Brazil. It defines a Brazilian calendar and some tools to compute dates used in financial and payroll modules. |
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
resource_calendar_form_view |
resource.calendar.form (in l10n_br_resource) | resource.calendar | field | Inherits resource.resource_calendar_form |
resource_calendar_leaves_form_view |
resource.calendar.leaves.form (in l10n_br_resource) | resource.calendar.leaves | field | Inherits resource.resource_calendar_leave_form |
resource_calendar_leaves_search_view |
resource.calendar.leaves.search (in l10n_br_resource) | resource.calendar.leaves | field | Inherits resource.view_resource_calendar_leaves_search |
resource_calendar_leaves_tree_view |
resource.calendar.leaves.tree (in l10n_br_resource) | resource.calendar.leaves | field | Inherits resource.resource_calendar_leave_tree |
resource_calendar_search_view |
resource.calendar.search (in l10n_br_resource) | resource.calendar | field | Inherits resource.view_resource_calendar_search |
resource_calendar_tree_view |
resource.calendar.tree (in l10n_br_resource) | resource.calendar | field | Inherits resource.view_resource_calendar_tree |
view_workalendar_holiday_import |
Import Holidays | wizard.workalendar.holiday.import | form | New |
child_ids
One2many → resource.calendar
string='Child Calendar'
args: 'resource.calendar', 'parent_id'
country_id
Many2one → res.country
l10n_br_city_id
Many2one → res.city
domain="[('state_id','=',state_id)]"
args: 'res.city', 'Municipality'
leave_ids
Many2many → resource.calendar.leaves
comodel_name='resource.calendar.leaves'
compute='_compute_leave_ids'
parent_id
Many2one → resource.calendar
index=True
ondelete='restrict'
string='Parent Calendar'
args: 'resource.calendar'
parent_path
Char
index=True
state_id
Many2one → res.country.state
domain="[('country_id','=',country_id)]"
args: 'res.country.state', 'State'
count_business_days(self, start_date, end_date)
get_base_days(self, date_from, date_to, commercial_month=True)
get_leave_intervals(self, resource_id=None, start_datetime=None, end_datetime=None)
is_bank_business_day(self, date)
is_bank_holiday(self, reference_date)
is_business_day(self, date)
is_extended_holiday(self, reference_date)
is_holiday(self, date)
next_bank_business_day(self, reference_date)
next_business_day(self, reference_date)
country_id
Many2one → res.country
related='calendar_id.country_id'
string='Country'
args: 'res.country'
coverage
Selection
selection=HOLIDAY_COVERAGE_LABELS
l10n_br_city_id
Many2one → res.city
domain="[('state_id','=',state_id)]"
related='calendar_id.l10n_br_city_id'
args: 'res.city', 'Municipality'
leave_type
Selection
selection=HOLIDAY_TYPE_LABELS
string='Type'
state_id
Many2one → res.country.state
domain="[('country_id','=',country_id)]"
related='calendar_id.state_id'
args: 'res.country.state', 'State'
No public methods.
calendar_id
Many2one → resource.calendar
string='Work Time'
args: 'resource.calendar'
end_date
Date
compute='_compute_end_date'
interval_number
Integer
default=1
string='Interval'
interval_type
Selection
default='years'
required=True
string='Type'
args: [('days', 'Day(s)'), ('weeks', 'Week(s)'), ('months', 'Month(s)'), ('years', 'Year(s)')]
start_date
Date
default=fields.Date.today
readonly=True
get_calendar_for_city(self, holiday)
get_calendar_for_country(self)
get_calendar_for_state(self, holiday)
get_country_from_calendar(self, holiday)
get_state_from_calendar(self, holiday)
holiday_import(self)
| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/l10n-brazil |
| GIT | |
| GIT | https://github.com/OCA/l10n-brazil.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/l10n-brazil/tree/17.0/l10n_br_resource |
| VERSION | |
| VERSION | 1.0.0 |
| CATEGORY | |
| CATEGORY | Uncategorized |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), KMEE |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), KMEE |
| COMMITTERS | |
| COMMITTERS | OCA-git-bot, oca-ci, Cristiano Mafra Junior |
| WEBSITE | |
| WEBSITE | https://github.com/OCA/l10n-brazil |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 19:20:04 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
OCA/l10n-brazil: - l10n_br_base odoo/odoo: - base - base_setup - web - base_address_extended - contacts - bus - web_tour - resource |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES |
workalendar email-validator erpbrasil.base num2words phonenumbers |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION | This module extends the core resource module to add data for Brazil. It defines a Brazilian calendar and some tools to compute dates used in financial and payroll modules. |
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
resource_calendar_form_view |
resource.calendar.form (in l10n_br_resource) | resource.calendar | field | Inherits resource.resource_calendar_form |
resource_calendar_leaves_form_view |
resource.calendar.leaves.form (in l10n_br_resource) | resource.calendar.leaves | field | Inherits resource.resource_calendar_leave_form |
resource_calendar_leaves_search_view |
resource.calendar.leaves.search (in l10n_br_resource) | resource.calendar.leaves | field | Inherits resource.view_resource_calendar_leaves_search |
resource_calendar_leaves_tree_view |
resource.calendar.leaves.tree (in l10n_br_resource) | resource.calendar.leaves | field | Inherits resource.resource_calendar_leave_tree |
resource_calendar_search_view |
resource.calendar.search (in l10n_br_resource) | resource.calendar | field | Inherits resource.view_resource_calendar_search |
resource_calendar_tree_view |
resource.calendar.tree (in l10n_br_resource) | resource.calendar | field | Inherits resource.view_resource_calendar_tree |
view_workalendar_holiday_import |
Import Holidays | wizard.workalendar.holiday.import | form | New |
child_ids
One2many → resource.calendar
string='Child Calendar'
args: 'resource.calendar', 'parent_id'
country_id
Many2one → res.country
l10n_br_city_id
Many2one → res.city
domain="[('state_id','=',state_id)]"
args: 'res.city', 'Municipio'
leave_ids
Many2many → resource.calendar.leaves
comodel_name='resource.calendar.leaves'
compute='_compute_leave_ids'
parent_id
Many2one → resource.calendar
index=True
ondelete='restrict'
string='Parent Calendar'
args: 'resource.calendar'
parent_path
Char
index=True
unaccent=False
state_id
Many2one → res.country.state
domain="[('country_id','=',country_id)]"
args: 'res.country.state', 'Estado'
data_eh_dia_util(self, data)
data_eh_dia_util_bancario(self, data)
data_eh_feriado(self, data)
data_eh_feriado_bancario(self, data_referencia)
data_eh_feriado_emendado(self, data_referencia)
get_dias_base(self, data_from, data_to, mes_comercial=True)
get_leave_intervals(self, resource_id=None, start_datetime=None, end_datetime=None)
proximo_dia_util(self, data_referencia)
proximo_dia_util_bancario(self, data_referencia)
quantidade_dias_uteis(self, data_inicio, data_fim)
abrangencia
Selection
selection=<expr>
country_id
Many2one → res.country
related='calendar_id.country_id'
string='País'
args: 'res.country'
l10n_br_city_id
Many2one → res.city
domain="[('state_id','=',state_id)]"
related='calendar_id.l10n_br_city_id'
args: 'res.city', 'Municipio'
leave_type
Selection
selection=<expr>
string='Tipo'
state_id
Many2one → res.country.state
domain="[('country_id','=',country_id)]"
related='calendar_id.state_id'
args: 'res.country.state', 'Estado'
No public methods.
calendar_id
Many2one → resource.calendar
string='Work Time'
args: 'resource.calendar'
end_date
Date
compute='_compute_end_date'
interval_number
Integer
default=1
string='Interval'
interval_type
Selection
default='years'
required=True
string='Type'
args: [('days', 'Day(s)'), ('weeks', 'Week(s)'), ('months', 'Month(s)'), ('years', 'Year(s)')]
start_date
Date
default=fields.Date.today
readonly=1
get_calendar_for_city(self, holiday)
get_calendar_for_country(self)
get_calendar_for_state(self, holiday)
get_country_from_calendar(self, holiday)
get_state_from_calendar(self, holiday)
holiday_import(self)
| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/l10n-brazil |
| GIT | |
| GIT | https://github.com/OCA/l10n-brazil.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/l10n-brazil/tree/16.0/l10n_br_resource |
| VERSION | |
| VERSION | 1.1.0 |
| CATEGORY | |
| CATEGORY | Uncategorized |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), KMEE |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), KMEE |
| COMMITTERS | |
| COMMITTERS | Raphaël Valyi, Weblate, OCA-git-bot, Magno Costa, oca-ci, Antonio Neto |
| WEBSITE | |
| WEBSITE | https://github.com/OCA/l10n-brazil |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 19:11:56 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
OCA/l10n-brazil: - l10n_br_base odoo/odoo: - base - base_setup - web - base_address_extended - resource |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES |
workalendar email-validator erpbrasil.base num2words phonenumbers |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION | This module extends the core resource module to add data for Brazil. It defines a Brazilian calendar and some tools to compute dates used in financial and payroll modules. |
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
resource_calendar_form_view |
resource.calendar.form (in l10n_br_resource) | resource.calendar | field | Inherits resource.resource_calendar_form |
resource_calendar_leaves_form_view |
resource.calendar.leaves.form (in l10n_br_resource) | resource.calendar.leaves | field | Inherits resource.resource_calendar_leave_form |
resource_calendar_leaves_search_view |
resource.calendar.leaves.search (in l10n_br_resource) | resource.calendar.leaves | field | Inherits resource.view_resource_calendar_leaves_search |
resource_calendar_leaves_tree_view |
resource.calendar.leaves.tree (in l10n_br_resource) | resource.calendar.leaves | field | Inherits resource.resource_calendar_leave_tree |
resource_calendar_search_view |
resource.calendar.search (in l10n_br_resource) | resource.calendar | field | Inherits resource.view_resource_calendar_search |
resource_calendar_tree_view |
resource.calendar.tree (in l10n_br_resource) | resource.calendar | field | Inherits resource.view_resource_calendar_tree |
view_workalendar_holiday_import |
Import Holidays | wizard.workalendar.holiday.import | form | New |
child_ids
One2many → resource.calendar
string='Child Calendar'
args: 'resource.calendar', 'parent_id'
country_id
Many2one → res.country
l10n_br_city_id
Many2one → res.city
domain="[('state_id','=',state_id)]"
args: 'res.city', 'Municipio'
leave_ids
Many2many → resource.calendar.leaves
comodel_name='resource.calendar.leaves'
compute='_compute_leave_ids'
parent_id
Many2one → resource.calendar
index=True
ondelete='restrict'
string='Parent Calendar'
args: 'resource.calendar'
parent_path
Char
index=True
unaccent=False
state_id
Many2one → res.country.state
domain="[('country_id','=',country_id)]"
args: 'res.country.state', 'Estado'
data_eh_dia_util(self, data)
data_eh_dia_util_bancario(self, data)
data_eh_feriado(self, data)
data_eh_feriado_bancario(self, data_referencia)
data_eh_feriado_emendado(self, data_referencia)
get_dias_base(self, data_from, data_to, mes_comercial=True)
get_leave_intervals(self, resource_id=None, start_datetime=None, end_datetime=None)
proximo_dia_util(self, data_referencia)
proximo_dia_util_bancario(self, data_referencia)
quantidade_dias_uteis(self, data_inicio, data_fim)
abrangencia
Selection
selection=<expr>
country_id
Many2one → res.country
related='calendar_id.country_id'
string='País'
args: 'res.country'
l10n_br_city_id
Many2one → res.city
domain="[('state_id','=',state_id)]"
related='calendar_id.l10n_br_city_id'
args: 'res.city', 'Municipio'
leave_type
Selection
selection=<expr>
string='Tipo'
state_id
Many2one → res.country.state
domain="[('country_id','=',country_id)]"
related='calendar_id.state_id'
args: 'res.country.state', 'Estado'
No public methods.
calendar_id
Many2one → resource.calendar
string='Work Time'
args: 'resource.calendar'
end_date
Date
compute='_compute_end_date'
interval_number
Integer
default=1
string='Interval'
interval_type
Selection
default='years'
required=True
string='Type'
args: [('days', 'Day(s)'), ('weeks', 'Week(s)'), ('months', 'Month(s)'), ('years', 'Year(s)')]
start_date
Date
default=fields.Date.today
readonly=1
get_calendar_for_city(self, holiday)
get_calendar_for_country(self)
get_calendar_for_state(self, holiday)
get_country_from_calendar(self, holiday)
get_state_from_calendar(self, holiday)
holiday_import(self)
| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/l10n-brazil |
| GIT | |
| GIT | https://github.com/OCA/l10n-brazil.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/l10n-brazil/tree/15.0/l10n_br_resource |
| VERSION | |
| VERSION | 1.0.0 |
| CATEGORY | |
| CATEGORY | Uncategorized |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), KMEE |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), KMEE |
| COMMITTERS | |
| COMMITTERS | Weblate, OCA-git-bot, oca-ci, Rodrigo Neves |
| WEBSITE | |
| WEBSITE | https://github.com/OCA/l10n-brazil |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 00:46:32 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
OCA/l10n-brazil: - l10n_br_base odoo/odoo: - base - base_setup - web - base_address_city - base_address_extended - resource |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES |
workalendar email-validator erpbrasil.base num2words phonenumbers |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION | |
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
resource_calendar_form_view |
resource.calendar.form (in l10n_br_resource) | resource.calendar | field | Inherits resource.resource_calendar_form |
resource_calendar_leaves_form_view |
resource.calendar.leaves.form (in l10n_br_resource) | resource.calendar.leaves | field | Inherits resource.resource_calendar_leave_form |
resource_calendar_leaves_search_view |
resource.calendar.leaves.search (in l10n_br_resource) | resource.calendar.leaves | field | Inherits resource.view_resource_calendar_leaves_search |
resource_calendar_leaves_tree_view |
resource.calendar.leaves.tree (in l10n_br_resource) | resource.calendar.leaves | field | Inherits resource.resource_calendar_leave_tree |
resource_calendar_search_view |
resource.calendar.search (in l10n_br_resource) | resource.calendar | field | Inherits resource.view_resource_calendar_search |
resource_calendar_tree_view |
resource.calendar.tree (in l10n_br_resource) | resource.calendar | field | Inherits resource.view_resource_calendar_tree |
view_workalendar_holiday_import |
Import Holidays | wizard.workalendar.holiday.import | form | New |
child_ids
One2many → resource.calendar
string='Child Calendar'
args: 'resource.calendar', 'parent_id'
country_id
Many2one → res.country
l10n_br_city_id
Many2one → res.city
domain="[('state_id','=',state_id)]"
args: 'res.city', 'Municipio'
leave_ids
Many2many → resource.calendar.leaves
comodel_name='resource.calendar.leaves'
compute='_compute_leave_ids'
parent_id
Many2one → resource.calendar
index=True
ondelete='restrict'
string='Parent Calendar'
args: 'resource.calendar'
parent_path
Char
index=True
state_id
Many2one → res.country.state
domain="[('country_id','=',country_id)]"
args: 'res.country.state', 'Estado'
data_eh_dia_util(self, data)
data_eh_dia_util_bancario(self, data)
data_eh_feriado(self, data)
data_eh_feriado_bancario(self, data_referencia)
data_eh_feriado_emendado(self, data_referencia)
get_dias_base(self, data_from, data_to, mes_comercial=True)
get_leave_intervals(self, resource_id=None, start_datetime=None, end_datetime=None)
proximo_dia_util(self, data_referencia)
proximo_dia_util_bancario(self, data_referencia)
quantidade_dias_uteis(self, data_inicio, data_fim)
abrangencia
Selection
selection=<expr>
country_id
Many2one → res.country
related='calendar_id.country_id'
string='País'
args: 'res.country'
l10n_br_city_id
Many2one → res.city
domain="[('state_id','=',state_id)]"
readonly=True
related='calendar_id.l10n_br_city_id'
args: 'res.city', 'Municipio'
leave_type
Selection
selection=<expr>
string='Tipo'
state_id
Many2one → res.country.state
domain="[('country_id','=',country_id)]"
readonly=True
related='calendar_id.state_id'
args: 'res.country.state', 'Estado'
No public methods.
calendar_id
Many2one → resource.calendar
string='Work Time'
args: 'resource.calendar'
end_date
Date
compute='_compute_end_date'
interval_number
Integer
default=1
string='Interval'
interval_type
Selection
default='years'
required=True
string='Type'
args: [('days', 'Day(s)'), ('weeks', 'Week(s)'), ('months', 'Month(s)'), ('years', 'Year(s)')]
start_date
Date
default=fields.Date.today
readonly=1
get_calendar_for_city(self, holiday)
get_calendar_for_country(self)
get_calendar_for_state(self, holiday)
get_country_from_calendar(self, holiday)
get_state_from_calendar(self, holiday)
holiday_import(self)
| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/l10n-brazil |
| GIT | |
| GIT | https://github.com/OCA/l10n-brazil.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/l10n-brazil/tree/14.0/l10n_br_resource |
| VERSION | |
| VERSION | 1.0.5 |
| CATEGORY | |
| CATEGORY | Uncategorized |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), KMEE |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), KMEE |
| COMMITTERS | |
| COMMITTERS | Raphaël Valyi, OCA Transbot, Luis Felipe Miléo, oca-travis, Weblate, OCA-git-bot, Magno Costa, Marcel Savegnago, Antônio Neto, oca-git-bot |
| WEBSITE | |
| WEBSITE | https://github.com/OCA/l10n-brazil |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 00:40:54 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
OCA/l10n-brazil: - l10n_br_base odoo/odoo: - base - base_setup - web - base_address_city - base_address_extended - resource |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES |
workalendar email-validator erpbrasil.base num2words phonenumbers |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION | |
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
resource_calendar_form_view |
resource.calendar.form (in l10n_br_resource) | resource.calendar | field | Inherits resource.resource_calendar_form |
resource_calendar_leaves_form_view |
resource.calendar.leaves.form (in l10n_br_resource) | resource.calendar.leaves | field | Inherits resource.resource_calendar_leave_form |
resource_calendar_leaves_search_view |
resource.calendar.leaves.search (in l10n_br_resource) | resource.calendar.leaves | field | Inherits resource.view_resource_calendar_leaves_search |
resource_calendar_leaves_tree_view |
resource.calendar.leaves.tree (in l10n_br_resource) | resource.calendar.leaves | field | Inherits resource.resource_calendar_leave_tree |
resource_calendar_search_view |
resource.calendar.search (in l10n_br_resource) | resource.calendar | field | Inherits resource.view_resource_calendar_search |
resource_calendar_tree_view |
resource.calendar.tree (in l10n_br_resource) | resource.calendar | field | Inherits resource.view_resource_calendar_tree |
view_workalendar_holiday_import |
Import Holidays | wizard.workalendar.holiday.import | form | New |
child_ids
One2many → resource.calendar
string='Child Calendar'
args: 'resource.calendar', 'parent_id'
country_id
Many2one → res.country
l10n_br_city_id
Many2one → res.city
domain="[('state_id','=',state_id)]"
args: 'res.city', 'Municipio'
leave_ids
Many2many → resource.calendar.leaves
comodel_name='resource.calendar.leaves'
compute='_compute_leave_ids'
parent_id
Many2one → resource.calendar
index=True
ondelete='restrict'
string='Parent Calendar'
args: 'resource.calendar'
parent_path
Char
index=True
state_id
Many2one → res.country.state
domain="[('country_id','=',country_id)]"
args: 'res.country.state', 'Estado'
data_eh_dia_util(self, data)
data_eh_dia_util_bancario(self, data)
data_eh_feriado(self, data)
data_eh_feriado_bancario(self, data_referencia)
data_eh_feriado_emendado(self, data_referencia)
get_dias_base(self, data_from, data_to, mes_comercial=True)
get_leave_intervals(self, resource_id=None, start_datetime=None, end_datetime=None)
proximo_dia_util(self, data_referencia)
proximo_dia_util_bancario(self, data_referencia)
quantidade_dias_uteis(self, data_inicio, data_fim)
abrangencia
Selection
selection=<expr>
country_id
Many2one → res.country
related='calendar_id.country_id'
string='País'
args: 'res.country'
l10n_br_city_id
Many2one → res.city
domain="[('state_id','=',state_id)]"
readonly=True
related='calendar_id.l10n_br_city_id'
args: 'res.city', 'Municipio'
leave_type
Selection
selection=<expr>
string='Tipo'
state_id
Many2one → res.country.state
domain="[('country_id','=',country_id)]"
readonly=True
related='calendar_id.state_id'
args: 'res.country.state', 'Estado'
No public methods.
calendar_id
Many2one → resource.calendar
string='Work Time'
args: 'resource.calendar'
end_date
Date
compute='_compute_end_date'
interval_number
Integer
default=1
string='Interval'
interval_type
Selection
default='years'
required=True
string='Type'
args: [('days', 'Day(s)'), ('weeks', 'Week(s)'), ('months', 'Month(s)'), ('years', 'Year(s)')]
start_date
Date
default=fields.Date.today
readonly=1
get_calendar_for_city(self, holiday)
get_calendar_for_country(self)
get_calendar_for_state(self, holiday)
get_country_from_calendar(self, holiday)
get_state_from_calendar(self, holiday)
holiday_import(self)
| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/l10n-brazil |
| GIT | |
| GIT | https://github.com/OCA/l10n-brazil.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/l10n-brazil/tree/12.0/l10n_br_resource |
| VERSION | |
| VERSION | 1.1.0 |
| CATEGORY | |
| CATEGORY | Uncategorized |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), KMEE |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), KMEE |
| COMMITTERS | |
| COMMITTERS | Raphaël Valyi, Renato Lima, oca-travis, Weblate, OCA-git-bot, Luis Malta |
| WEBSITE | |
| WEBSITE | https://github.com/OCA/l10n-brazil |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 00:29:15 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
OCA/l10n-brazil: - l10n_br_base odoo/odoo: - base - base_setup - web - base_address_city - base_address_extended - resource |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES |
workalendar erpbrasil.base num2words |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION | |
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
resource_calendar_form_view |
resource.calendar.form (in l10n_br_resource) | resource.calendar | field | Inherits resource.resource_calendar_form |
resource_calendar_leaves_form_view |
resource.calendar.leaves.form (in l10n_br_resource) | resource.calendar.leaves | field | Inherits resource.resource_calendar_leave_form |
resource_calendar_leaves_search_view |
resource.calendar.leaves.search (in l10n_br_resource) | resource.calendar.leaves | field | Inherits resource.view_resource_calendar_leaves_search |
resource_calendar_leaves_tree_view |
resource.calendar.leaves.tree (in l10n_br_resource) | resource.calendar.leaves | field | Inherits resource.resource_calendar_leave_tree |
resource_calendar_search_view |
resource.calendar.search (in l10n_br_resource) | resource.calendar | field | Inherits resource.view_resource_calendar_search |
resource_calendar_tree_view |
resource.calendar.tree (in l10n_br_resource) | resource.calendar | field | Inherits resource.view_resource_calendar_tree |
view_workalendar_holiday_import |
Import Holidays | wizard.workalendar.holiday.import | form | New |
child_ids
One2many → resource.calendar
string='Child Calendar'
args: 'resource.calendar', 'parent_id'
country_id
Many2one → res.country
l10n_br_city_id
Many2one → res.city
domain="[('state_id','=',state_id)]"
args: 'res.city', 'Municipio'
leave_ids
Many2many → resource.calendar.leaves
comodel_name='resource.calendar.leaves'
compute='_compute_leave_ids'
parent_id
Many2one → resource.calendar
index=True
ondelete='restrict'
string='Parent Calendar'
args: 'resource.calendar'
parent_path
Char
index=True
state_id
Many2one → res.country.state
domain="[('country_id','=',country_id)]"
args: 'res.country.state', 'Estado'
data_eh_dia_util(self, data)
data_eh_dia_util_bancario(self, data)
data_eh_feriado(self, data)
data_eh_feriado_bancario(self, data_referencia)
data_eh_feriado_emendado(self, data_referencia)
get_dias_base(self, data_from, data_to, mes_comercial=True)
get_leave_intervals(self, resource_id=None, start_datetime=None, end_datetime=None)
proximo_dia_util(self, data_referencia)
proximo_dia_util_bancario(self, data_referencia)
quantidade_dias_uteis(self, data_inicio, data_fim)
abrangencia
Selection
selection=<expr>
string='Abrangencia'
country_id
Many2one → res.country
related='calendar_id.country_id'
string='País'
args: 'res.country'
l10n_br_city_id
Many2one → res.city
domain="[('state_id','=',state_id)]"
readonly=True
related='calendar_id.l10n_br_city_id'
args: 'res.city', 'Municipio'
leave_type
Selection
selection=<expr>
string='Tipo'
state_id
Many2one → res.country.state
domain="[('country_id','=',country_id)]"
readonly=True
related='calendar_id.state_id'
args: 'res.country.state', 'Estado'
No public methods.
calendar_id
Many2one → resource.calendar
string='Work Time'
args: 'resource.calendar'
end_date
Date
compute='_compute_end_date'
string='End Date'
interval_number
Integer
default=1
string='Interval'
interval_type
Selection
default='years'
required=True
string='Type'
args: [('days', 'Day(s)'), ('weeks', 'Week(s)'), ('months', 'Month(s)'), ('years', 'Year(s)')]
start_date
Date
default=fields.Date.today
readonly=1
string='Start Date'
get_calendar_for_city(self, holiday)
get_calendar_for_country(self)
get_calendar_for_state(self, holiday)
get_country_from_calendar(self, holiday)
get_state_from_calendar(self, holiday)
holiday_import(self)
| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/l10n-brazil |
| GIT | |
| GIT | https://github.com/OCA/l10n-brazil.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/l10n-brazil/tree/10.0/l10n_br_resource |
| VERSION | |
| VERSION | 1.0.0 |
| CATEGORY | |
| CATEGORY | Uncategorized |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), KMEE |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), KMEE |
| COMMITTERS | |
| COMMITTERS | Raphaël Valyi, GitHub, Luis Felipe Mileo, OCA Transbot, Luis Felipe Miléo, oca-travis, OCA-git-bot, Hendrix Costa, Renato, Bianca Bartolomei, the-bmb |
| WEBSITE | |
| WEBSITE | https://github.com/OCA/l10n-brazil |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 00:19:54 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
OCA/l10n-brazil: - l10n_br_base odoo/odoo: - base - base_setup - web_kanban - web - resource |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES |
pybrasil num2words |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION | |
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
resource_calendar_form_view |
resource.calendar.form (in l10n_br_resource) | resource.calendar | field | Inherits resource.resource_calendar_form |
resource_calendar_leaves_form_view |
resource.calendar.leaves.form (in l10n_br_resource) | resource.calendar.leaves | field | Inherits resource.resource_calendar_leave_form |
resource_calendar_leaves_search_view |
resource.calendar.leaves.search (in l10n_br_resource) | resource.calendar.leaves | field | Inherits resource.view_resource_calendar_leaves_search |
resource_calendar_leaves_tree_view |
resource.calendar.leaves.tree (in l10n_br_resource) | resource.calendar.leaves | field | Inherits resource.resource_calendar_leave_tree |
resource_calendar_search_view |
resource.calendar.search (in l10n_br_resource) | resource.calendar | field | Inherits resource.view_resource_calendar_search |
resource_calendar_tree_view |
resource.calendar.tree (in l10n_br_resource) | resource.calendar | field | Inherits resource.view_resource_calendar_tree |
view_workalendar_holiday_import |
Import Holidays | wizard.workalendar.holiday.import | form | New |
child_ids
One2many → resource.calendar
string='Child Calendar'
args: 'resource.calendar', 'parent_id'
country_id
Many2one → res.country
l10n_br_city_id
Many2one → l10n_br_base.city
domain="[('state_id','=',state_id)]"
args: 'l10n_br_base.city', 'Municipio'
leave_ids
Many2many → resource.calendar.leaves
comodel_name='resource.calendar.leaves'
compute='_compute_leave_ids'
parent_id
Many2one → resource.calendar
index=True
ondelete='restrict'
string='Parent Calendar'
args: 'resource.calendar'
parent_left
Integer
index=True
parent_right
Integer
index=True
state_id
Many2one → res.country.state
domain="[('country_id','=',country_id)]"
args: 'res.country.state', 'Estado'
data_eh_dia_util(self, data=datetime.now())
data_eh_dia_util_bancario(self, data=datetime.now())
data_eh_feriado(self, data_referencia=datetime.now())
data_eh_feriado_bancario(self, data_referencia=datetime.now())
data_eh_feriado_emendado(self, data_referencia=datetime.now())
get_dias_base(self, data_from=datetime.now(), data_to=datetime.now(), mes_comercial=True)
get_leave_intervals(self, resource_id=None, start_datetime=None, end_datetime=None)
proximo_dia_util(self, data_referencia=datetime.now())
proximo_dia_util_bancario(self, data_referencia=datetime.now())
quantidade_dias_uteis(self, data_inicio=datetime.now(), data_fim=datetime.now())
abrangencia
Selection
selection=<expr>
string='Abrangencia'
country_id
Many2one → res.country
related='calendar_id.country_id'
string='País'
args: 'res.country'
l10n_br_city_id
Many2one → l10n_br_base.city
domain="[('state_id','=',state_id)]"
readonly=True
related='calendar_id.l10n_br_city_id'
args: 'l10n_br_base.city', 'Municipio'
leave_type
Selection
selection=<expr>
string='Tipo'
state_id
Many2one → res.country.state
domain="[('country_id','=',country_id)]"
readonly=True
related='calendar_id.state_id'
args: 'res.country.state', 'Estado'
No public methods.
calendar_id
Many2one → resource.calendar
string='Work Time'
args: 'resource.calendar'
end_date
Date
compute='_compute_end_date'
string='End Date'
interval_number
Integer
default=1
string='Interval'
interval_type
Selection
default='years'
required=True
string='Type'
args: [('days', 'Day(s)'), ('weeks', 'Week(s)'), ('months', 'Month(s)'), ('years', 'Year(s)')]
start_date
Date
default=fields.Date.today
readonly=1
string='Start Date'
get_calendar_for_city(self, holiday)
get_calendar_for_country(self)
get_calendar_for_state(self, holiday)
get_country_from_calendar(self, holiday)
get_state_from_calendar(self, holiday)
holiday_import(self)