-
-
Notifications
You must be signed in to change notification settings - Fork 617
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_tax_balance: Migration to 17.0 #1087
[17.0][MIG] account_tax_balance: Migration to 17.0 #1087
Conversation
* Tests * PEP8 * Use invoice._convert_to_write(invoice._cache). This way, the onchange will be inheritable and will add here also the added values * better get_context_values * unify method compute_balance * open move lines linked to balance
Allow to explore all move lines Spanish translation Bugfixes Show negative lines too Show move type in account.move views Tests include new fields
* Test * README * add extra parent menu. If not, with the web_responsive module is mixed between other menus
Let the database do some computations (sum) and do not put large lists of ids in action domain.
This indexes improve the display time of account_tax_balance by a factor of 10 on a database with 1M move lines.
On certain environments, expense account might not exist, so we create it directly for avoiding problems.
Tests failed if you don't have an account called 'Tax Paid' in your test DB, which can happen when you are integrating tests in other environments, for example with other starting language.
Precreate move_type and fill with appropriate values to prevent a MemoryError when the ORM attempts to call its compute method on a large amount of preexisting moves.
Due to the change at odoo/odoo@15a1b3a it is now required to run tests that require CoA after install.
We have improved this module by hiding the financial type field only in the sales invoices and the purchase invoice and in the refunds
5059125
to
76879da
Compare
/ocabot migration account_tax_balance |
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 review
This PR has the |
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.
/ocabot merge nobump
This PR looks fantastic, let's merge it! |
Congratulations, your PR was merged at 0a2d912. Thanks a lot for contributing to OCA. ❤️ |
No description provided.