L10n Br Account Withholding

l10n_br_account_withholding
REPOSITORY
REPOSITORYOCA/l10n-brazil
GIT
GIThttps://github.com/OCA/l10n-brazil.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-brazil/tree/16.0/l10n_br_account_withholding
VERSION
VERSION 3.0.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion, Escodoo
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion, Escodoo
COMMITTERS
COMMITTERSRaphaël Valyi, OCA-git-bot, oca-ci, Antonio Neto, Antônio Neto
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-brazil
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:11:55
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/l10n-brazil:
    - l10n_br_account
    - l10n_br_coa
    - l10n_br_fiscal
    - l10n_br_base
OCA/product-attribute:
    - uom_alias
odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - base_address_extended
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES erpbrasil.base
email-validator
num2words
phonenumbers
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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 group Inherits l10n_br_account.invoice_form
l10n_br_fiscal_tax_group_form_view l10n_br_fiscal.tax.group field Inherits l10n_br_fiscal.tax_group_form
l10n_br_fiscal_tax_group_search_view l10n_br_fiscal.tax.group filter Inherits l10n_br_fiscal.tax_group_search
l10n_br_fiscal_tax_group_tree_view l10n_br_fiscal.tax.group field Inherits l10n_br_fiscal.tax_group_tree
partner_form_view l10n_br_fiscal.partner.form (in l10n_br_account_withholding) res.partner xpath Inherits l10n_br_base.l10n_br_base_partner_form
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.

REPOSITORY
REPOSITORYOCA/l10n-brazil
GIT
GIThttps://github.com/OCA/l10n-brazil.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-brazil/tree/15.0/l10n_br_account_withholding
VERSION
VERSION 1.1.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion, Escodoo
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion, Escodoo
COMMITTERS
COMMITTERSRaphaël Valyi, Weblate, OCA-git-bot, oca-ci, Marcel Savegnago
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-brazil
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:00:35
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-payment:
    - account_due_list
OCA/l10n-brazil:
    - l10n_br_account
    - l10n_br_coa
    - l10n_br_fiscal
    - l10n_br_base
    - l10n_br_account_due_list
odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - base_address_city
    - base_address_extended
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES erpbrasil.base
email-validator
num2words
phonenumbers
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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 (4)
XML IDNameModelTypeStatus
account_move_form_view account.move group Inherits l10n_br_account.invoice_form
l10n_br_fiscal_tax_group_form_view l10n_br_fiscal.tax.group field Inherits l10n_br_fiscal.tax_group_form
l10n_br_fiscal_tax_group_search_view l10n_br_fiscal.tax.group filter Inherits l10n_br_fiscal.tax_group_search
l10n_br_fiscal_tax_group_tree_view l10n_br_fiscal.tax.group field Inherits l10n_br_fiscal.tax_group_tree
Models touched (3)

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 (2)
  • 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'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/l10n-brazil
GIT
GIThttps://github.com/OCA/l10n-brazil.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-brazil/tree/14.0/l10n_br_account_withholding
VERSION
VERSION 1.6.1
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion, Escodoo
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion, Escodoo
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Marcel Savegnago, Antônio Neto, Felipe Motter Pereira, kaynnan, Felipe Motter
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-brazil
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 18:50:06
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-payment:
    - account_due_list
OCA/l10n-brazil:
    - l10n_br_account
    - l10n_br_coa
    - l10n_br_fiscal
    - l10n_br_base
    - l10n_br_account_due_list
odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - base_address_city
    - base_address_extended
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES erpbrasil.base
email-validator
num2words
phonenumbers
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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 group Inherits l10n_br_account.invoice_form
l10n_br_fiscal_tax_group_form_view l10n_br_fiscal.tax.group field Inherits l10n_br_fiscal.tax_group_form
l10n_br_fiscal_tax_group_search_view l10n_br_fiscal.tax.group filter Inherits l10n_br_fiscal.tax_group_search
l10n_br_fiscal_tax_group_tree_view l10n_br_fiscal.tax.group field Inherits l10n_br_fiscal.tax_group_tree
partner_form_view l10n_br_fiscal.partner.form (in l10n_br_account_withholding) res.partner xpath Inherits l10n_br_base.l10n_br_base_partner_form
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="[('internal_type', '=', '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.