Bad Debt Requalification
Overview
This module allows accountants to create a requalification accounting entry that moves doubtful client balances from account 43600000 (Clients de cobrament dubtós) to account 69400000 (Pèrdues per deteriorament de crèdits).
It is designed for Odoo 16 and follows standard OCA/Spanish accounting practices for bad debt provisions.
Features
- Wizard launched from the Account Move list view.
- Automatic generation of a balancing journal entry:
- Debit/Credit to 43600000 to cancel the original doubtful line.
- Debit/Credit to 69400000 to record the loss.
- Automatic reconciliation between the original account move line and the newly created compensating line.
- Validation warnings for:
- Missing moves selection.
- Moves from different companies.
- Missing accounts 43600000 or 69400000.
- Already reconciled lines.
- User-friendly notification showing moves created, lines reconciled, and total amounts in €.
Configuration
No additional configuration is required. The module depends on account and searches for accounts with codes 43600000 and 69400000 in the active company.
Usage
- Go to Invoicing / Accounting / Journal Entries.
- Select one or more posted moves that contain lines in account 43600000.
- From the action menu, choose "Bad debt requalification entry to 694".
- In the wizard, select a Journal (General type) and the Date.
- Click "Create move".
- The new move will be posted and, where possible, the 436 lines will be reconciled.
Architecture / Controllers
- Model:
requalify.bad.debt.wizard(TransientModel) - Main Method:
action_requalify()- Creates an
account.moveof typeentry. - Builds line dictionary (
line_vals) dynamically based on the sign of each 436 line balance. - Posts the move.
- Reconciles matching original vs. new lines by partner, name, and amounts.
- Returns a
display_notificationaction.
- Creates an
- Views:
views/requalify_bad_debt_wizard_views.xml- Wizard form.views/account_move_views.xml- Server action bound toaccount.move.
Security
- Access to the wizard is restricted to the group
account.group_account_invoice. - Defined in
security/ir.model.access.csv.
Testing
- Full coverage suite in
tests/test_requalify_bad_debt.py. - Test cases include:
- Happy path with positive and negative balances.
- Multiple moves aggregated into a single entry.
- Warning validation (different companies, missing accounts, already reconciled lines).
- Empty line selection.
License
AGPL-3
Metadata
Release files for odoo-addon-account-move-requalify-bad-debt 16.0.1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| odoo_addon_account_move_requalify_bad_debt-16.0.1.0.1.tar.gz | 10.1 kB | Without provenance | Details |
Release files / odoo_addon_account_move_requalify_bad_debt-16.0.1.0.1.tar.gz
| Download URL | odoo_addon_account_move_requalify_bad_debt-16.0.1.0.1.tar.gz |
|---|---|
| Size | 10.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
116b3721de0b438520a22d876125b09aeb5c6bd8bf13ce678ee727a7f5e319ca
|
|
BLAKE2b-256 checksum How to use checksums |
5ece3abbcd0daac59decd62d9fea95dc77ef52132d72640fa882e07943554500
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Security for odoo-addon-account-move-requalify-bad-debt 16.0.1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.