Skip to content

Conversation

@fw-bot-adhoc
Copy link
Contributor

Another approach for #854

Forward-Port-Of: #860

@roboadhoc
Copy link

Pull request status dashboard

@fw-bot-adhoc
Copy link
Contributor Author

@jjscarafia @cav-adhoc cherrypicking of pull request #860 failed.

stdout:

Auto-merging account_exchange_difference_invoice/__manifest__.py
CONFLICT (content): Merge conflict in account_exchange_difference_invoice/__manifest__.py

Either perform the forward-port manually (and push to this branch, proceeding as usual) or close this PR (maybe?).

In the former case, you may want to edit this PR message as well.

⚠️ after resolving this conflict, you will need to merge it via @roboadhoc.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

This commit adds comprehensive demo data for testing exchange rate differences
on invoices for Argentinian companies.

Changes:
- Add l10n_ar dependency to __manifest__.py
- Create demo module structure (demo/__init__.py)
- Add account_exchange_demo.py with demo data generation logic
- Add account_exchange_demo.xml to trigger demo data installation

Demo data features:
- Creates USD/ARS exchange rates for first 4 days of current month (rates: 1000, 1100, 1200, 1300)
- Creates a USD cash journal ("Caja USD") for payment operations
- Generates 4 customer invoices in USD using product_product_2:
  * Invoices 1-3: For ADHOC CABA partner on different dates (days 1, 2, 3 of month)
  * Invoice 4: For Gritti Agrimensura partner on day 1 of month
- Creates payments that automatically reconcile invoices at different exchange rates:
  * Payment 1: Pays invoices 1+2 on day 3 @ rate 1200
  * Payment 2: Pays invoice 3 on day 4 @ rate 1300
  * Payment 3: Pays invoice 4 on day 2 @ rate 1100
- Uses _load_data() approach with XML IDs for better test reusability
- Only installs for company base.company_ri

X-original-commit: c0330e6
@cav-adhoc cav-adhoc force-pushed the 19.0-18.0-t-61301-cav-jjs-3018-fw branch from 2280dcf to 7d8c618 Compare January 5, 2026 14:59
@cav-adhoc
Copy link
Contributor

@roboadhoc r+

@roboadhoc roboadhoc closed this in 81fe368 Jan 5, 2026
@roboadhoc roboadhoc deleted the 19.0-18.0-t-61301-cav-jjs-3018-fw branch January 5, 2026 15:14
@roboadhoc roboadhoc added the 18.1 label Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants