Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
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. |
cav-adhoc
force-pushed
the
19.0-t-64641-cav
branch
10 times, most recently
from
April 28, 2026 19:52
7d2d88c to
806c400
Compare
cav-adhoc
force-pushed
the
19.0-t-64641-cav
branch
2 times, most recently
from
May 27, 2026 13:43
46d2253 to
b8d5796
Compare
cav-adhoc
force-pushed
the
19.0-t-64641-cav
branch
from
May 27, 2026 14:00
b8d5796 to
80f5d43
Compare
…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').
Contributor
Author
|
sigue en adhoc-dev#1 |
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.

No description provided.