Repository
OCA/l10n-brazil · module folder · Try on Runboat
Module version
3.0.0
Category
Uncategorized
Folder size
0.08 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/l10n-brazil
Last tracking update
2026-08-07 08:09:13
Authors
Akretion, Odoo Community Association (OCA), Escodoo
Maintainers
Akretion, Odoo Community Association (OCA), Escodoo
Committers
Raphaël Valyi, OCA-git-bot, oca-ci, Antonio Neto, Antônio Neto
Odoo dependencies
Python dependencies
erpbrasil.base, email-validator, num2words, phonenumbers
System dependencies
None
Required by
None
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.

Code Analysis

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 (1)
  • wh_cityhall Boolean
    default=False string='Is City Hall?'
Public methods (0)

No public methods.

Loading…

Loading…