Skip to content

[IMP] product_currency: migrate demo to Python, add EUR demo, remove hook#899

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

[IMP] product_currency: migrate demo to Python, add EUR demo, remove hook#899
cav-adhoc wants to merge 2 commits into
ingadhoc:19.0from
adhoc-dev:19.0-t-64641-1-cav

Conversation

@cav-adhoc
Copy link
Copy Markdown
Contributor

Migrate demo data to a Python generator invoked via demo XML .

  • Add EUR demo product product_with_forced_currency to _product_currency_demo_records.
  • Keep USD demo demo_product_usd.
    \n\nTests can call env['product.template']._install_product_currency_demo() and use env.ref('product_currency.product_with_forced_currency').

@roboadhoc
Copy link
Copy Markdown
Contributor

Pull request status dashboard

@cav-adhoc cav-adhoc force-pushed the 19.0-t-64641-1-cav branch 2 times, most recently from 3510920 to 235d58b Compare May 27, 2026 14:52
…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 cav-adhoc force-pushed the 19.0-t-64641-1-cav branch 3 times, most recently from fdf4c0d to 8e059ac Compare May 27, 2026 15:20
@cav-adhoc cav-adhoc force-pushed the 19.0-t-64641-1-cav branch from 8e059ac to 3394614 Compare May 27, 2026 15:51
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.

2 participants