Skip to content

[IMP] account_invoice_show_currency_rate: sync with OCA upstream + OCA/account-invoicing#2095 - #281

Open
AungKoKoLin1997 wants to merge 2 commits into
16.0from
16.0-sync-account_invoice_show_currency_rate
Open

AungKoKoLin1997 wants to merge 2 commits into
16.0from
16.0-sync-account_invoice_show_currency_rate

Conversation

@AungKoKoLin1997

Copy link
Copy Markdown
Contributor

Brings account_invoice_show_currency_rate up to OCA/account-invoicing@df7aef02a8c5 (16.0, 16.0.1.0.8) and applies our open OCA PR on top:

The drift audit classified this module as unattributed: the local copy was vendored with #2095 already applied. The upstream change it was missing is OCA/account-invoicing#2401, "keep booked rate on reset to draft" (posted_before). That fix keeps the real booked rate on a posted-then-reset move, so resetting a multi-line foreign-currency bill no longer raises a false "unbalanced entry" error. #2095 has already been rebased onto it, so its inverse-rate test now expects the booked rate to be kept after reset.

Tested locally (--test-enable, fresh DB with l10n_generic_coa): 5 of 5 tests pass. The local i18n/ is kept.

Refs https://github.com/qrtl/qrtl-dev-tools/issues/38

🤖 Generated with Claude Code

…cy rate display format

This commit adds an option to display the exchange rate either as company currency per unit or unit per company currency.

Example (company currency: JPY; 1 USD = 150 JPY):

- (Default) Unit per Company Currency → 0.0066 (USD/JPY)
- Company Currency per Unit → 150 (JPY/USD)
@AungKoKoLin1997
AungKoKoLin1997 requested a review from a team as a code owner October 22, 2026 07:06
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.

1 participant