[ADD] account_exchange_difference_invoice: add tests#888
Open
cav-adhoc wants to merge 1 commit into
Open
Conversation
Contributor
9744d02 to
e3b5db1
Compare
There was a problem hiding this comment.
Pull request overview
Este PR agrega una suite completa de 14 tests automatizados para el módulo account_exchange_difference_invoice, que maneja la conversión de diferencias de cambio en notas de débito/crédito en Odoo 19.
Changes:
- Se agregaron 14 tests que cubren la funcionalidad principal del módulo: creación automática de asientos de diferencia de cambio, wizard de conversión a NC/ND, reconciliación, validaciones y flujos completos
- Se implementó la configuración de datos demo para tests mediante el método
_install_exchange_diff_demo - Se agregó un método helper
_get_unprocessed_exchange_entriespara facilitar la obtención de asientos no procesados
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 11 comments.
| File | Description |
|---|---|
| account_exchange_difference_invoice/tests/init.py | Importa el módulo de tests para que sea reconocido por el framework de testing de Odoo |
| account_exchange_difference_invoice/tests/test_exchange_difference_invoice.py | Implementa 14 tests completos que verifican: creación de asientos de diferencia de cambio, campos computados, wizard de conversión, reconciliación, validaciones, filtros de dominio, y datos demo |
e3b5db1 to
bb294ae
Compare
fc93bef to
20a088f
Compare
20a088f to
206cea3
Compare
Test comprehensive functionality of exchange difference invoice module: Core functionality tests: test_01 - Verifies exchange_info computed field and updates after processing test_02 - Tests domain filter returns only unprocessed exchange entries test_03 - Verifies exchange difference action opens with correct filters Wizard functionality tests: test_04 - Tests wizard data grouping by partner and basic validations test_05 - Tests wizard with automatic and manual fiscal position modes Processing and reconciliation tests: test_06 - Validates complete workflow: debit/credit notes creation, reversal entries and reconciliation test_07 - Confirms zero-balance partners show warning and skip invoice creation Configuration and edge case tests: test_08 - Tests behavior when exchange difference product is not configured test_09 - Validates wizard edge cases and already processed entries handling test_10 - Tests invoice creation with taxes when fiscal position mapping applies
206cea3 to
642c5df
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Test comprehensive functionality of exchange difference invoice module:
Core functionality tests:
test_01 - Verifies exchange_info computed field and updates after processing
test_02 - Tests domain filter returns only unprocessed exchange entries
test_03 - Verifies exchange difference action opens with correct filters
Wizard functionality tests:
test_04 - Tests wizard data grouping by partner and basic validations
test_05 - Tests wizard with automatic and manual fiscal position modes
Processing and reconciliation tests:
test_06 - Validates complete workflow: debit/credit notes creation, reversal entries and reconciliation
test_07 - Confirms zero-balance partners show warning and skip invoice creation
Configuration and edge case tests:
test_08 - Tests behavior when exchange difference product is not configured
test_09 - Validates wizard edge cases and already processed entries handling
test_10 - Tests invoice creation with taxes when fiscal position mapping applies