OdooWiki OCA HUB

L10n Br Resource

l10n_br_resource folder_open OCA/l10n-brazil open_in_new
Uncategorised License: AGPL-3

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.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Adds Brazilian holiday calendars to Odoo, with a wizard that imports national, state and city holidays and tools to check business days, bank business days and extended holidays.

This module extends Odoo's working-time calendars (resource.calendar) with Brazilian location data: country, state and municipality, plus a parent/child hierarchy so a city calendar can inherit from its state and national calendars. A validation prevents circular hierarchies.

A new menu "Import Brazilian Holidays" appears under the Working Time configuration menu. It opens a wizard where you choose a start date and an interval (days, weeks, months or years); the end date is calculated automatically. Pressing Import creates the missing country, state and city calendars and their holiday records, avoiding duplicates.

Holidays (resource.calendar.leaves) gain a Type (holiday, bank holiday, commemorative date) and a Coverage (national, state, municipal), visible in the form, list and search views.

On each calendar, helper methods let other modules check whether a date is a holiday, a bank holiday, an extended (bridged) holiday, a business day or a bank business day, and find the next or previous business day or bank business day. There is also a count of business days in a period and a calculation of payable days using a 30-day commercial month. These tools are meant for financial and payroll calculations.

Depends on

l10n_br_baseresource

Menus it adds

Import Brazilian Holidays
Models and fields (3)
  • resource.calendar · extends an existing modelstate_id, child_ids (Child Calendar), leave_ids, parent_id (Parent Calendar), country_id, parent_path, l10n_br_city_id
  • resource.calendar.leaves · extends an existing modelcoverage, state_id, country_id (Country), leave_type (Type), l10n_br_city_id
  • wizard.workalendar.holiday.import · new modelend_date, start_date, calendar_id (Work Time), interval_type (Type), interval_number (Interval)

Text generated by AI (DeepSeek) from reading the Odoo 19.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 7 confirmed, 2 with no information of 9 versions.

Sources · Odoo 12.0

Confirmed on 2026-11-03 in branch 12.0 of OCA/l10n-brazil.

terminal Installation and usage

OCA documentation · Odoo 19.0

To install this module, you need to:

  • Install

Após a instalação do módulo acesse Configurações \> Técnico \> Recursos \> Importar calendário brasileiro. Definir um intervalo, selecionando o seu tipo e intervalo para que o calendário seja carregado.

To use this module, you need to:

  • Call your methods in modules inherited from it;
  • Add manual calendar leaves manualy if you need;
info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.