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

[17.0][MIG] account_tax_balance: Migration to 17.0 #1087

Merged
merged 49 commits into from
Feb 12, 2024

Conversation

ramiadavid
Copy link
Contributor

@ramiadavid ramiadavid commented Nov 27, 2023

No description provided.

eLBati and others added 30 commits November 26, 2023 21:19
* 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.
@ramiadavid ramiadavid marked this pull request as ready for review January 20, 2024 16:34
@HaraldPanten
Copy link

/ocabot migration account_tax_balance

@OCA-git-bot OCA-git-bot added this to the 17.0 milestone Feb 12, 2024
Copy link

@HaraldPanten HaraldPanten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Functional review

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 17.0-ocabot-merge-pr-1087-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 7a17a6a into OCA:17.0 Feb 12, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 0a2d912. Thanks a lot for contributing to OCA. ❤️

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

Successfully merging this pull request may close these issues.