-
-
Notifications
You must be signed in to change notification settings - Fork 700
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
[17.0][MIG] account_global_discount: Migration to 17.0 #1687
[17.0][MIG] account_global_discount: Migration to 17.0 #1687
Conversation
/ocabot migration account_global_discount |
20b1a28
to
d6bd7b3
Compare
@pedrobaeza I apply same change that OCA/server-backend#275 (comment) |
OK, some reviewers should validate this. |
d6bd7b3
to
ad6b296
Compare
ca1c359
to
77a9b48
Compare
@pedrobaeza all check are green. |
Great. Now some reviewers are needed. We don't need this module for now. |
@etobella @gurneyalex @grindtildeath We've thoroughly tested this module with multiple clients, and it performs reliably. |
Functionally reviewed. LGTM! |
I’d like to thank @Abimael1321 for testing this PR and confirming that it works as expected. |
2 reviewers are needed, and one coming from a PSC: https://github.com/OCA/odoo-community.org/blob/master/website/Contribution/CONTRIBUTING.rst#review |
Functional: LGTM! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments. Most of them look for commit noise reduction, and it seems that there are two errors in views.
77a9b48
to
ab1825f
Compare
The remaining test failures are caused by another module, but there’s an active PR that addresses this issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment, and there are some other tree
view fields with invisible="1"
that should be updated as well, if I'm not wrong
…ine + Discounts in invoice report [IMP] account_global_discount: Discounts in invoice report Give discounts info in the invoice report. [FIX] account_global_discount: link line taxes to discount move line
- We need to take into account invoice lines with multiple taxes, so the link should be m2m. - Migration scripts for preserving the best information on existing installations. - Tests for checking new conditions. - Perform sanity check for not ending in an incompatible situation. - Some refactor done on onchanges for avoiding duplicating operations. - Adjust UI for not allowing to edit computed invoice global discounts.
- Standard procedure - Make test more resilient
In a foreign currency invoice the amounts (amount_total, amount_untaxed) are expressed in the `invoice` currency while the accounting entry lines are expressed in the `company` currency. The base_before_global_discounts has to be expressed in the invoice currency as well in such invoices because the discounts need to be computed in the same currency as the other amounts. Also set the invoice currency_id on the tax line so that it doesn't default to the company currency, and convert the discount journal entry amount to the company currnecy.
- Depending on the installed set of modules, the company currency may be USD or EUR. If the second case, these tests will fail, so we make sure that the company currency is USD for our tests, doing the change by SQL, as there's a Python constraint that prevents it. Not needed in v17 due to: odoo/odoo#107113.
… on big database installation
Currently translated at 100.0% (36 of 36 strings) Translation: account-invoicing-16.0/account-invoicing-16.0-account_global_discount Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-16-0/account-invoicing-16-0-account_global_discount/it/
Currently translated at 100.0% (36 of 36 strings) Translation: account-invoicing-16.0/account-invoicing-16.0-account_global_discount Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-16-0/account-invoicing-16-0-account_global_discount/it/
ab1825f
to
ca0b1fd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are more invisible
that should be moved to column_invisible
, please check.
ca0b1fd
to
5c041f1
Compare
5c041f1
to
5feaf74
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@AaronHForgeFlow is this PR ready to be merged? Thanks!
This PR has the |
Hi @pedrobaeza , this PR has received two approvals. Would it be possible to merge the changes? |
OK, let's go /ocabot merge nobump |
This PR looks fantastic, let's merge it! |
Congratulations, your PR was merged at 33624b7. Thanks a lot for contributing to OCA. ❤️ |
Standard migration to 17.0
Depends: