L10n Br Account Withholding
l10n_br_account_withholding · OCA/l10n-brazil
-
Security25/25No findings
-
Activity25/25Human commit this month
-
Required by5/250 modules depend on it
-
Maturity18/25In 3 Odoo series since 14.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
account_move_form_view— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourcel10n_br_fiscal_tax_group_form_view— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
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 ID | Name | Model | Type | Status |
|---|---|---|---|---|
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
-
wh_invoice_countIntegercompute='_compute_wh_invoice_ids'readonly=Truestring='WH Invoice Count' -
wh_invoice_idsMany2many → account.movecomodel_name='account.move'compute='_compute_wh_invoice_ids'copy=Falsereadonly=Truestring='WH Invoices'
-
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.
-
wh_move_line_idMany2one → account.move.linecomodel_name='account.move.line'ondelete='restrict'string='WH Account Move Line'
-
write(self, values)
-
generate_wh_invoiceBooleancompany_dependent=Truedefault=Falsestring='Generate WH Invoice' -
journal_idMany2one → account.journalcomodel_name='account.journal'company_dependent=Truedomain="[('type', '=', 'purchase')]"string='Account Journal' -
wh_payable_account_idMany2one → account.accountcomodel_name='account.account'company_dependent=Truedomain="[('account_type', 'in', ('asset_receivable', 'liability_payable'))]"help='Special account payable for withholding invoices'string='WH Payable Account'
No public methods.
-
wh_cityhallBooleandefault=Falsestring='Is City Hall?' -
wh_state_treasuryBooleandefault=Falsehelp="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?'
No public methods.
Loading…
Loading…