Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIG] account_invoice_change_currency: Migration to 15.0 #1161

Merged

Conversation

rolandojduartem
Copy link
Contributor

No description provided.

Duc Dao and others added 29 commits May 17, 2022 11:59
[UPD] Update account_invoice_change_currency.pot
[REF] Update readme file

[UPD] README.rst

[UPD] Update account_invoice_change_currency.pot
[IMP] Avoid store old currency in new field, instead of get it from tracking values from messages

[UPD] README.rst

[UPD] Update account_invoice_change_currency.pot
…ertion

[IMP] account_invoice_change_currency: Allow set a a custom rate at currency conversion

[UPD] README.rst

[UPD] Update account_invoice_change_currency.pot
OCA#470)

id, instead search them by messages ids then filter them
fix OCA#469

[REF] account_invoice_change_currency: Sql queries in order to improve performance

[FIX] account_invoice_change_currency: Fixed tests
created, newid record not consider at onchange and get_last_currency
method

[UPD] Update account_invoice_change_currency.pot

Update translation files

Updated by Update PO files to match POT (msgmerge) hook in Weblate.
Currently translated at 25.0% (2 of 8 strings)

Translation: account-invoicing-12.0/account-invoicing-12.0-account_invoice_change_currency
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-12-0/account-invoicing-12-0-account_invoice_change_currency/es/
Currently translated at 87.5% (7 of 8 strings)

Translation: account-invoicing-12.0/account-invoicing-12.0-account_invoice_change_currency
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-12-0/account-invoicing-12-0-account_invoice_change_currency/es/
Currently translated at 100.0% (8 of 8 strings)

Translation: account-invoicing-12.0/account-invoicing-12.0-account_invoice_change_currency
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-12-0/account-invoicing-12-0-account_invoice_change_currency/es/
Currently translated at 12.5% (1 of 8 strings)

Translation: account-invoicing-12.0/account-invoicing-12.0-account_invoice_change_currency
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-12-0/account-invoicing-12-0-account_invoice_change_currency/de/
Currently translated at 100.0% (8 of 8 strings)

Translation: account-invoicing-12.0/account-invoicing-12.0-account_invoice_change_currency
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-12-0/account-invoicing-12-0-account_invoice_change_currency/es/

[UPD] README.rst
Currently translated at 25.0% (2 of 8 strings)

Translation: account-invoicing-12.0/account-invoicing-12.0-account_invoice_change_currency
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-12-0/account-invoicing-12-0-account_invoice_change_currency/de/
convertion.

Before this commit, was returned the same currency that the invoice on
the onchange context, now is returned the currency recorded at the
messages with tracking values.
Currently translated at 75.0% (6 of 8 strings)

Translation: account-invoicing-12.0/account-invoicing-12.0-account_invoice_change_currency
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-12-0/account-invoicing-12-0-account_invoice_change_currency/hr/
Currently translated at 62.5% (5 of 8 strings)

Translation: account-invoicing-12.0/account-invoicing-12.0-account_invoice_change_currency
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-12-0/account-invoicing-12-0-account_invoice_change_currency/de/
**Changes**

Now, the account_invoice_change_currency avoid the mail tracking using account.move, res.currency
and new fields to handle the different calculations.

**New fields**

- original_currency_id: Store the base currency when the invoice is created or the conversion is called for the first time. This is used to calculate conversion from this currency.
- is_original_currency: Check if current currency is the base currency. This is used to hide custom rate field in the form view.
- original_price_unit: Store price unit from every line when the invoice is created or the conversion is called for the first time to use it to convert the amount in the new currency.

[UPD] README.rst
@rolandojduartem rolandojduartem mentioned this pull request May 17, 2022
56 tasks
@rolandojduartem rolandojduartem force-pushed the 15.0-mig-account_invoice_change_currency branch 2 times, most recently from c29d39e to 85238e8 Compare May 17, 2022 18:59
@rolandojduartem
Copy link
Contributor Author

rolandojduartem commented May 17, 2022

Hi, @luisg123v, @moylop260 and @hugho-ad, please, may someone review this migration? T#52382

red tests are related to account_invoice_fiscal_position_update

cc @name1984 @desdelinux)

@rolandojduartem
Copy link
Contributor Author

Hi, @luisg123v, @moylop260 and @hugho-ad, please, may you review this migration? T#52382

red tests are related to account_invoice_fiscal_position_update

cc @name1984 @desdelinux

@rolandojduartem rolandojduartem force-pushed the 15.0-mig-account_invoice_change_currency branch from 6120cb9 to a8af913 Compare May 18, 2022 19:16
@moylop260
Copy link
Contributor

Could you create a new issue related to the red CI for account_invoice_fiscal_position_update module, please?

@moylop260 moylop260 merged commit f9dfc0e into OCA:15.0 May 19, 2022
@moylop260 moylop260 deleted the 15.0-mig-account_invoice_change_currency branch May 19, 2022 18:26
@pedrobaeza
Copy link
Member

The red CI is due to upstream changes, as the last time. You can collaborate as well to fix it. I think this time it can be something with explicitly calling action_post that I have seen around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.