Commit Graph

42 Commits

Author SHA1 Message Date
Valentin Vinagre Urteaga
ea49620dab [MIG] account_tax_balance: Migration to 15.0 2024-12-06 14:42:42 +01:00
Valentin Vinagre Urteaga
ea203ac0f2 [IMP] account_tax_balance: black, isort, prettier 2024-12-06 14:42:42 +01:00
Stefan Rijnhart
2036c141bd [14.0][FIX] account_tax_balance: init hook refund confusion 2024-12-06 14:42:42 +01:00
Luis Escobar
a8e66f563f [FIX] account_tax_balance: Fixed translation of the financial type field values 2024-12-06 14:42:42 +01:00
tafaRU
be7123e9a9 account_tax_balance: change development_status to Production/Stable 2024-12-06 14:42:42 +01:00
mreficent
7339f2630c [IMP] account_tax_balance: use rename_fields instead of rename_columns
The rename_fields method is cleaner, because it handles ir_model_fields and translations.
2024-12-06 14:42:42 +01:00
SimoRubi
81c9a3aa8b Manage renamed move_type column
OpenUpgrade renames the column to its legacy name.
Enterprise renames to move_type_custom.
2024-12-06 14:42:42 +01:00
João Marques
78617e5663 [FIX] account_tax_balance: Remove unnecessary text from button
In previous versions, string was converted to button title and wasn't displayed
Now it was being shown, so this converts it back to the button title

TT29027
2024-12-06 14:42:42 +01:00
João Marques
ad5031d1d9 [FIX] account_tax_balance: Fix tests
Take into account previously created taxes

TT28423
2024-12-06 14:42:42 +01:00
Francisco Ivan Anton Prieto
9fbb756b87 [MIG] account_tax_balance: Migration to 14.0 2024-12-06 14:42:42 +01:00
Francisco Ivan Anton Prieto
54339092f3 [IMP] account_tax_balance: black, isort, prettier 2024-12-06 14:42:42 +01:00
Andrea
30f1f36484 [FIX] select company in multicompany 2024-12-06 14:42:42 +01:00
Pedro M. Baeza
d9702bceab [RFR] Apply a mapping instead of separate queries 2024-12-06 14:42:42 +01:00
Stefan Rijnhart
6cf151aa48 [ADD] Prefill move_type
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.
2024-12-06 14:42:42 +01:00
Andrea
a16df11ecb Black, isort, etc... 2024-12-06 14:42:42 +01:00
Andrea
873dcee063 Code review 2024-12-06 14:42:42 +01:00
Andrea
5574d668b9 Convert onchange to computed 2024-12-06 14:42:42 +01:00
Andrea
b8e91371e1 [13.0][MIG] account_tax_balance 2024-12-06 14:42:42 +01:00
Andrea
c4a0f593df [IMP] Ease extension if multicompany fiscal unit 2024-12-06 14:42:42 +01:00
David Beal
235c64809c [IMP] tax_balance: breadcrumb name (#548) 2024-12-06 14:42:42 +01:00
Pedro M. Baeza
6d7954fc4c [IMP] account_tax_balance: Ensure test correctness (2)
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.
2024-12-06 14:42:42 +01:00
Pedro M. Baeza
cc47b15e5f [IMP] account_tax_balance: Ensure test correctness
On certain environments, expense account might not exist, so we create it directly
for avoiding problems.
2024-12-06 14:42:42 +01:00
Andrea
c9c51e6ebb [FIX] at_install/post_install test decorators 2024-12-06 14:42:42 +01:00
Andrea
667dee8bd8 [12.0][MIG] account_tax_balance 2024-12-06 14:42:42 +01:00
hveficent
7772169b20 utf-8 remove from .py files 2024-12-06 14:42:42 +01:00
Pedro M. Baeza
49da62e548 [IMP] account_tax_balance: Change tests to post instal and protect again freezes 2024-12-06 14:42:42 +01:00
Jordi Ballester
7213521d04 dynamize general ledger 2024-12-06 14:42:42 +01:00
Pedro M. Baeza
cdf59c4033 [MIG] account_tax_balance: Migration to 11.0 2024-12-06 14:42:42 +01:00
Stéphane Bidoul (ACSONE)
9c43ee99f5 [IMP] account_tax_balance: add index
This indexes improve the display time of
account_tax_balance by a factor of 10 on a database
with 1M move lines.
2024-12-06 14:42:42 +01:00
Lara Baggio
3350026521 add condition tax_exigible in domain variable 2024-12-06 14:42:42 +01:00
Stéphane Bidoul (ACSONE)
8ac6a73170 account_tax_balance: improve test coverage 2024-12-06 14:42:42 +01:00
Stéphane Bidoul (ACSONE)
8fea288900 [IMP] account_tax_balance: faster search of taxes with moves 2024-12-06 14:42:42 +01:00
Stéphane Bidoul (ACSONE)
28092deea0 [IMP] account_tax_balance: performance
Let the database do some computations (sum) and do not
put large lists of ids in action domain.
2024-12-06 14:42:42 +01:00
Stefan Rijnhart
48fb957fc5 [FIX] Include tax amounts from all move types 2024-12-06 14:42:42 +01:00
eLBati
d3fcbb4455 [FIX+IMP] account_tax_balance:
* Test
* README
* add extra parent menu. If not, with the web_responsive module is mixed
  between other menus
2024-12-06 14:42:42 +01:00
Stéphane Bidoul (ACSONE)
052ebd4472 [MIG] account_tax_balance 10.0 2024-12-06 14:42:42 +01:00
Antonio Espinosa
3b74e4813c Consider normal and refund operations separately
Allow to explore all move lines

Spanish translation

Bugfixes

Show negative lines too

Show move type in account.move views

Tests include new fields
2024-12-06 14:42:42 +01:00
eLBati
a48acb15d4 [FIX+IMP] account_tax_balance:
* 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
2024-12-06 14:42:42 +01:00
gfcapalbo
980f35ce5e tests 2024-12-06 14:42:42 +01:00
eLBati
174a14ef3c [ADD] account_tax_balance: Compute tax balances based on date range 2024-12-06 14:42:42 +01:00
oca-git-bot
caf8ce9698 [IMP] update dotfiles 2024-10-20 15:39:21 +00:00
OCA Bot
27a9e74b76 Initial commit 2024-10-08 12:47:04 +00:00