Commit Graph

15 Commits

Author SHA1 Message Date
Pedro M. Baeza
57acd2ccbc [FIX+IMP] account_chart_update: Don't depend on l10n_generic_coa + TransactionCase
- Depending on l10n_generic_coa is the lazy option for not putting
  proper initialization data on the test, and it also couples the tests
  to the external module changes.
- Switch to TransactionCase, for populating once the company, CoA, etc.
- Speed up a bit the tests, removing superflual mail operations.
2023-08-10 17:08:34 +02:00
Enric Tobella
6603b37466 [IMP] account_chart_update: Update account groups too 2023-08-03 16:45:28 +02:00
Jairo Llopis
f2f6485264 [FIX] account_chart_update: false positive detecting diff on Html fields
When executing the chart updater and selecting the "notes" field from fiscal positions, you were getting differences 100% of the time.

This was because [fiscal position's notes field is Html][1], while [the template field is Text][2].

@moduon MT-1912

[1]: 5ef647d5d4/addons/account/models/partner.py (L32)
[2]: 5ef647d5d4/addons/account/models/chart_template.py (L1470)
2023-01-11 10:48:22 +00:00
manu
a472d9947f [15.0][FIX] account_chart_update: do not browse rep_line in _update_taxes_pending_for_accounts 2022-06-02 11:40:37 +02:00
Fernando La Chica
cb32510413 Migration and some fixes:
* Ignore changes in mail thread fields
   * account.tax.template._generate_tax return dict of objects
     and wizard fails
   * Load generic coa localization module to improve the test
2022-04-12 16:41:26 +02:00
Donatas
2757b035d3 [IMP] account_chart_update: update tests 2022-04-09 22:20:38 +02:00
Reyes4711
cd240a0bf1 [14.0][MIG] account_chart_update: Migration to 14.0 2022-04-09 22:20:38 +02:00
ernestotejeda
7ca88693b5 [MIG] account_chart_update: Migration to 13.0 2022-04-09 22:20:38 +02:00
ernestotejeda
6e7662e7e4 [IMP] account_chart_update: black, isort 2022-04-09 22:20:38 +02:00
ernesto
2fa9693437 [MIG] account_chart_update: Migration to 12.0 2022-04-09 22:20:38 +02:00
ernesto
3fbd586688 account_chart_update: allows to set the matching value order
It allows to set the order of matching for Account, Taxes and
Fiscal position.
2022-04-09 22:20:38 +02:00
Pedro M. Baeza
12a6bd5ae1 [IMP] account_chart_update: Include field selection
With this option, you can select which fields do you want to compare for updating.

Use case: you have specific accounts in taxes, and you don't want to lose them,
but you want to update their groups through the wizard. Before this, the update
was all or nothing. Now, you have total control!
2022-04-09 22:20:38 +02:00
Pedro M. Baeza
69113c3327 [FIX] account_chart_update: Handle updated m2m correctly 2022-04-09 22:20:38 +02:00
Pedro M. Baeza
77149f257a [MIG] account_chart_update: Additional needed changes 2022-04-09 22:20:38 +02:00
Pedro M. Baeza
15e360a0c0 [FIX+IMP] account_chart_update: Major refactoring
* Compare all fields from template

  Not all fields were properly compared with previous code. This means also
  to exclude some of them, but now we have a full and extensible system.

* Optimize cached method
* Generate accounts and fiscal positions using Odoo methods (tax already did)
* README by fragments
* Add tests up to full coverage
2022-04-09 22:20:38 +02:00