Skip to content
Health
60/100
fair
  • Security25/25
    No findings
  • Activity25/25
    Human commit this month
  • Required by5/25
    0 modules depend on it
  • Maturity5/25
    In 1 Odoo series since 18.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
6 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.05 MB
Module directory on disk
Code analysis 0 migration notes 2 models 1 view 0 HTTP endpoints

Description

Brazilian taxes are not due on a day the banks do not settle, and the rule differs per tax: some anticipate to the previous banking business day, others postpone to the next one. Getting it wrong costs a fine.

This module adds that direction to the payment term, so the due date already comes out right instead of being corrected by hand on every entry.

The calendar comes from l10n_br_resource, which stacks country, state and municipality holidays, so a municipal decree that closes the banks in one city is enough to move an ISS due date there and nowhere else.

Dependencies

Odoo dependencies
Python dependencies
workalendar, email-validator, erpbrasil-base>=2.4.2, num2words, openupgradelib, phonenumbers
System dependencies
None
Required by
None
Glue modules
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 1

XML IDNameModelTypeStatus
view_payment_term_form account.payment.term.form.business.day account.payment.term form Inherits account.view_payment_term_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 2

New fields (2)
  • business_day_policy Selection
    default='none' help='What to do when the due date falls on a day the banks do not settle. The direction belongs to the tax, not to the supplier: a DARF anticipates and an ICMS payment slip postpones, so each one gets its own payment term.' required=True selection=BUSINESS_DAY_POLICIES string='Business Day'
  • holiday_calendar_id Many2one → resource.calendar
    comodel_name='resource.calendar' help='Calendar that decides which days the banks are closed. It stacks with its parents, so a municipal calendar already carries the state and national holidays.' string='Holiday Calendar'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.