2
0
Commit Graph

13 Commits

Author SHA1 Message Date
Jairo Llopis
79bbd7cdc4 [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-17 08:54:49 +01:00
manu
b39b008b11 [15.0][FIX] account_chart_update: do not browse rep_line in _update_taxes_pending_for_accounts 2023-01-17 08:54:49 +01:00
Fernando La Chica
7fa493cf91 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
2023-01-17 08:54:49 +01:00
Donatas
7fbf1ab7c6 [IMP] account_chart_update: update tests 2023-01-17 08:54:49 +01:00
Reyes4711
d4094eff87 [14.0][MIG] account_chart_update: Migration to 14.0 2023-01-17 08:54:49 +01:00
ernestotejeda
f20f692994 [MIG] account_chart_update: Migration to 13.0 2023-01-17 08:54:49 +01:00
ernestotejeda
2e7396b485 [IMP] account_chart_update: black, isort 2023-01-17 08:54:49 +01:00
ernesto
4bf18c89b7 [MIG] account_chart_update: Migration to 12.0 2023-01-17 08:54:49 +01:00
ernesto
203c45b253 account_chart_update: allows to set the matching value order
It allows to set the order of matching for Account, Taxes and
Fiscal position.
2023-01-17 08:54:49 +01:00
Pedro M. Baeza
9e63f90527 [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!
2023-01-17 08:54:49 +01:00
Pedro M. Baeza
e206a37bdd [FIX] account_chart_update: Handle updated m2m correctly 2023-01-17 08:54:49 +01:00
Pedro M. Baeza
768276e964 [MIG] account_chart_update: Additional needed changes 2023-01-17 08:54:49 +01:00
Pedro M. Baeza
f833ccdf36 [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
2023-01-17 08:54:49 +01:00