-
-
Notifications
You must be signed in to change notification settings - Fork 702
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[18.0][MIG] account_move_tier_validation:Migration to 18 #1921
base: 18.0
Are you sure you want to change the base?
[18.0][MIG] account_move_tier_validation:Migration to 18 #1921
Conversation
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: account-invoicing-14.0/account-invoicing-14.0-account_move_tier_validation Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-14-0/account-invoicing-14-0-account_move_tier_validation/
* 'Validation In Progress' so as to allow an easy location of the invoices for which a validation has been triggered, but it is not yet completed. * 'Validation Not Started' to locate bills that either require no validation, or the request for validation has not yet been initiated.
…not working correctly
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: account-invoicing-14.0/account-invoicing-14.0-account_move_tier_validation Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-14-0/account-invoicing-14-0-account_move_tier_validation/
Currently translated at 100.0% (27 of 27 strings) Translation: account-invoicing-14.0/account-invoicing-14.0-account_move_tier_validation Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-14-0/account-invoicing-14-0-account_move_tier_validation/sv/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: account-invoicing-15.0/account-invoicing-15.0-account_move_tier_validation Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-15-0/account-invoicing-15-0-account_move_tier_validation/
…lidation, rejection
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: account-invoicing-15.0/account-invoicing-15.0-account_move_tier_validation Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-15-0/account-invoicing-15-0-account_move_tier_validation/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: account-invoicing-16.0/account-invoicing-16.0-account_move_tier_validation Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-16-0/account-invoicing-16-0-account_move_tier_validation/
Currently translated at 100.0% (26 of 26 strings) Translation: account-invoicing-16.0/account-invoicing-16.0-account_move_tier_validation Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-16-0/account-invoicing-16-0-account_move_tier_validation/es/
Currently translated at 100.0% (27 of 27 strings) Translation: account-invoicing-16.0/account-invoicing-16.0-account_move_tier_validation Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-16-0/account-invoicing-16-0-account_move_tier_validation/es/
Currently translated at 100.0% (27 of 27 strings) Translation: account-invoicing-16.0/account-invoicing-16.0-account_move_tier_validation Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-16-0/account-invoicing-16-0-account_move_tier_validation/sv/
…moves with tier validation Added tests for changes Updated error to be checked in tests Updated error to be checked in tests
Currently translated at 100.0% (28 of 28 strings) Translation: account-invoicing-16.0/account-invoicing-16.0-account_move_tier_validation Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-16-0/account-invoicing-16-0-account_move_tier_validation/it/
Edit a new journal entry with lines in currency X different from company currency Y. Say you have a line of value (amount_currency) N, which is converted to Y(N) (debit/credit). Then `amount_total` is also N. Because the `readonly="not(review_ids)"` was added, `amount_total` is dirty and sent at save. Therefore, Odoo uses it and sets the debit/credit values of the lines to N (instead of Y(N), the converted value). It's as if it's ignoring the currency conversion (note that the values are correct through onchange before the save). To avoid this, exclude the field from being modified in `get_view`.
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.
LGTM, just a minor change
@xaviedoanhduy @pedrobaeza @bosd @StefanRijnhart could you please review this?
class TestAccountTierValidation(TransactionCase): | ||
@classmethod | ||
def setUpClass(cls): | ||
super().setUpClass() | ||
cls.env = cls.env(context=dict(cls.env.context, **DISABLED_MAIL_CONTEXT)) |
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.
This class can inherit from BaseCommon, allowing setUpClass
to be removed.
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.
Functional test on runboat
Replace #1830