Skip to content

[ADD] account_exchange_difference_invoice: add tests#888

Open
cav-adhoc wants to merge 1 commit into
ingadhoc:19.0from
adhoc-dev:19.0-t-62582-cav
Open

[ADD] account_exchange_difference_invoice: add tests#888
cav-adhoc wants to merge 1 commit into
ingadhoc:19.0from
adhoc-dev:19.0-t-62582-cav

Conversation

@cav-adhoc

@cav-adhoc cav-adhoc commented Jan 22, 2026

Copy link
Copy Markdown
Contributor

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

Copilot AI review requested due to automatic review settings January 22, 2026 19:47
@roboadhoc

Copy link
Copy Markdown
Contributor

Pull request status dashboard

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_entries para 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

Comment thread account_exchange_difference_invoice/tests/test_exchange_difference_invoice.py Outdated
Comment thread account_exchange_difference_invoice/tests/test_exchange_difference_invoice.py Outdated
Comment thread account_exchange_difference_invoice/tests/test_exchange_difference_invoice.py Outdated
Comment thread account_exchange_difference_invoice/tests/test_exchange_difference_invoice.py Outdated
Comment thread account_exchange_difference_invoice/tests/test_exchange_difference_invoice.py Outdated
Comment thread account_exchange_difference_invoice/tests/test_exchange_difference_invoice.py Outdated
Comment thread account_exchange_difference_invoice/tests/test_exchange_difference_invoice.py Outdated
Comment thread account_exchange_difference_invoice/tests/test_exchange_difference_invoice.py Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 9 comments.

Comment thread account_exchange_difference_invoice/tests/test_exchange_difference_invoice.py Outdated
Comment thread account_exchange_difference_invoice/tests/test_exchange_difference_invoice.py Outdated
@cav-adhoc cav-adhoc force-pushed the 19.0-t-62582-cav branch 5 times, most recently from fc93bef to 20a088f Compare February 3, 2026 20:40
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants