Skip to content

[IMP] product_currency: add demo data and tests for product currency - #869

Closed
cav-adhoc wants to merge 2 commits into
ingadhoc:19.0from
adhoc-dev:19.0-t-64641-cav
Closed

cav-adhoc wants to merge 2 commits into
ingadhoc:19.0from
adhoc-dev:19.0-t-64641-cav

Conversation

@cav-adhoc

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings March 11, 2026 14:34
@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 busca añadir datos demo y tests automatizados para validar el comportamiento de “moneda forzada” en product.template dentro del addon product_currency.

Changes:

  • Añade un test transaccional que intenta instalar/cargar datos demo y verificar el efecto de force_currency_id.
  • Sustituye el demo XML de producto por una llamada a una función Python que genera demo data.
  • Incorpora el generador de demo data en Python.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 6 comments.

File Description
product_currency/tests/test_product_currency_demo.py Nuevos tests para validar moneda forzada y aislamiento al copiar registros demo.
product_currency/tests/init.py Inicialización del paquete de tests.
product_currency/demo/product_product_demo.xml Cambia demo XML directo por ejecución de función Python para cargar demo.
product_currency/demo/product_currency_demo.py Implementa el loader Python que crea el producto demo y pretende registrar XML IDs.

Comment thread product_currency/demo/product_currency_demo.py Outdated
Comment thread product_currency/tests/test_product_currency_demo.py Outdated
Comment thread product_currency/tests/__init__.py Outdated
Comment thread product_currency/demo/product_currency_demo.py Outdated
Comment thread product_currency/demo/product_product_demo.xml Outdated
Comment thread product_currency/demo/product_currency_demo.py Outdated
@cav-adhoc
cav-adhoc force-pushed the 19.0-t-64641-cav branch 10 times, most recently from 7d2d88c to 806c400 Compare April 28, 2026 19:52
@cav-adhoc
cav-adhoc force-pushed the 19.0-t-64641-cav branch 2 times, most recently from 46d2253 to b8d5796 Compare May 27, 2026 13:43
…hook

Migrate demo data to a Python generator invoked via demo XML <function>.\n\n- Add EUR demo product product_with_forced_currency to _product_currency_demo_records.\n- Keep USD demo demo_product_usd.\n- Remove post_init_hook and hooks import from __init__.py.\n- Add demo_data_pattern.md documenting the pattern and test usage.\n\nTests can call env['product.template']._install_product_currency_demo() and use env.ref('product_currency.product_with_forced_currency').
@cav-adhoc

Copy link
Copy Markdown
Contributor Author

sigue en adhoc-dev#1

@cav-adhoc cav-adhoc closed this May 27, 2026
@fw-bot-adhoc
fw-bot-adhoc deleted the 19.0-t-64641-cav branch June 3, 2026 14:28
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