Skip to content
Health
73/100
fair
  • Security25/25
    No findings
  • Activity25/25
    Human commit this month
  • Required by5/25
    0 modules depend on it
  • Maturity18/25
    In 3 Odoo series since 14.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.09 MB
Module directory on disk
Code analysis 2 migration notes 4 models 5 views 0 HTTP endpoints

Description

Automatize a conformidade fiscal brasileira, simplificando a criação de faturas a pagar para impostos retidos em compras de fornecedores. Garanta a precisão e eficiência no gerenciamento de obrigações fiscais com o módulo l10n_br_account_withholding para Odoo.

Dependencies

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

XML IDNameModelTypeStatus
account_move_form_view account.move form Inherits l10n_br_account.invoice_form
l10n_br_fiscal_tax_group_form_view l10n_br_fiscal.tax.group form Inherits l10n_br_fiscal.tax_group_form
l10n_br_fiscal_tax_group_search_view l10n_br_fiscal.tax.group search Inherits l10n_br_fiscal.tax_group_search
l10n_br_fiscal_tax_group_tree_view l10n_br_fiscal.tax.group tree Inherits l10n_br_fiscal.tax_group_tree
partner_form_view l10n_br_fiscal.partner.form (in l10n_br_account_withholding) res.partner form Inherits l10n_br_base.l10n_br_base_partner_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 4

New fields (2)
  • wh_invoice_count Integer
    compute='_compute_wh_invoice_ids' readonly=True string='WH Invoice Count'
  • wh_invoice_ids Many2many → account.move
    comodel_name='account.move' compute='_compute_wh_invoice_ids' copy=False readonly=True string='WH Invoices'
Public methods (3)
  • action_view_wh_invoice(self)
    Open the view for withholding invoices associated with the current record. Map 'wh_invoice_ids' to retrieve the related invoices. Prepare and return an action dict to open the invoice view. If no invoices are found, return an action to close the window. :return: A dictionary with action details to open related invoices or close the window.
  • button_draft(self)
  • create_wh_invoices(self)
    Create withholding tax invoices for applicable lines in the move. Iterate over each move in the recordset. For each tax line in the move that matches the criteria, create a withholding tax invoice if the line belongs to a supplier invoice and is associated with a tax that requires withholding. Prepare and post these invoices. :return: None. Generate withholding tax invoices and post them.

New fields (1)
  • wh_move_line_id Many2one → account.move.line
    comodel_name='account.move.line' ondelete='restrict' string='WH Account Move Line'
Public methods (1)
  • write(self, values)

New fields (3)
  • generate_wh_invoice Boolean
    company_dependent=True default=False string='Generate WH Invoice'
  • journal_id Many2one → account.journal
    comodel_name='account.journal' company_dependent=True domain="[('type', '=', 'purchase')]" string='Account Journal'
  • wh_payable_account_id Many2one → account.account
    comodel_name='account.account' company_dependent=True domain="[('account_type', 'in', ('asset_receivable', 'liability_payable'))]" help='Special account payable for withholding invoices' string='WH Payable Account'
Public methods (0)

No public methods.

New fields (2)
  • wh_cityhall Boolean
    default=False string='Is City Hall?'
  • wh_state_treasury Boolean
    default=False help="Partner that collects state taxes withheld in this state, such as ICMS. Used to fill the vendor of the withholding invoice when the fiscal tax group scope is 'State'." string='Is State Treasury?'
Public methods (0)

No public methods.

Loading…

Loading…