Commit Graph

334 Commits

Author SHA1 Message Date
Luc De Meyer
a0ed803a88 [FIX] account_chart_update: ignore template fields that do not exist in real 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
Reyes4711
475688672b [13.0][IMP] account_chart_update: black, isort, prettier 2022-04-09 22:20:38 +02:00
OCA-git-bot
4c1cb88ed5 account_chart_update 13.0.1.0.5 2022-04-09 22:20:38 +02:00
Luc De Meyer
961005777f [13.0][FIX]account_chart_update inactive taxes false positives 2022-04-09 22:20:38 +02:00
OCA Transbot
f193829cc4 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: account-financial-tools-13.0/account-financial-tools-13.0-account_chart_update
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-13-0/account-financial-tools-13-0-account_chart_update/
2022-04-09 22:20:38 +02:00
Pedro M. Baeza
b3c4aae11f [IMP] account_chart_update: Search for real XML-IDs only
Previously, only a check on an existing XML-ID which is not coming from exportation
was done, but now we check that the XML-ID is the exact one. With this, we avoid
that the same record changed their XML-ID and thus, there's no more link between
them.
2022-04-09 22:20:38 +02:00
OCA Transbot
85ba7e55e8 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: account-financial-tools-13.0/account-financial-tools-13.0-account_chart_update
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-13-0/account-financial-tools-13-0-account_chart_update/
2022-04-09 22:20:38 +02:00
OCA-git-bot
a1327491df account_chart_update 13.0.1.0.3 2022-04-09 22:20:38 +02:00
ps-tubtim
a58e23be7c [13.0][FIX] account_chart_update: Remove @api.multi 2022-04-09 22:20:38 +02:00
Pedro M. Baeza
9518b140df [FIX+IMP] account_chart_update: Add consistency method
With this, we prevent lock due to infinite loop if children taxes are matched, but
not the parent one and it's marked to be created.
2022-04-09 22:20:38 +02:00
Pedro M. Baeza
44d7a1c3b2 [FIX+IMP] account_chart_update: Create taxes in batch
With this, we gain some performance, but also prevent an error if there are template
taxes that have children taxes, as Odoo standard method forces that in the same call
all of them are created simultaneously, or it will enter in an infinite loop.
2022-04-09 22:20:38 +02:00
OCA-git-bot
c45bec68f4 pre-commit update 2022-04-09 22:20:38 +02:00
OCA Transbot
4472cdb69a Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: account-financial-tools-13.0/account-financial-tools-13.0-account_chart_update
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-13-0/account-financial-tools-13-0-account_chart_update/
2022-04-09 22:20:38 +02:00
Pedro M. Baeza
3487d3bf02 [FIX] account_chart_update: Clear caches before searching
If not, changes done in for example taxes are not reflected.
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
Bole
7816d83c42 Translated using Weblate (Croatian)
Currently translated at 30.5% (36 of 118 strings)

Translation: account-financial-tools-12.0/account-financial-tools-12.0-account_chart_update
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-12-0/account-financial-tools-12-0-account_chart_update/hr/
2022-04-09 22:20:38 +02:00
Josep M
f9db5be322 Translated using Weblate (Spanish)
Currently translated at 72.0% (85 of 118 strings)

Translation: account-financial-tools-12.0/account-financial-tools-12.0-account_chart_update
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-12-0/account-financial-tools-12-0-account_chart_update/es/
2022-04-09 22:20:38 +02:00
OCA Transbot
38cc80a896 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: account-financial-tools-12.0/account-financial-tools-12.0-account_chart_update
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-12-0/account-financial-tools-12-0-account_chart_update/
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
OCA Transbot
e659313e97 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: account-financial-tools-11.0/account-financial-tools-11.0-account_chart_update
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-11-0/account-financial-tools-11-0-account_chart_update/
2022-04-09 22:20:38 +02:00
ernesto
7b9ac0e92b account_chart_update: Fix number of updates and insertions in log 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
Thorsten Vocks
c44cf90260 Translated using Weblate (German)
Currently translated at 100.0% (100 of 100 strings)

Translation: account-financial-tools-11.0/account-financial-tools-11.0-account_chart_update
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-11-0/account-financial-tools-11-0-account_chart_update/de/
2022-04-09 22:20:38 +02:00
OCA Transbot
9b744265d6 Update translation files
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
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
amcor
3362140b15 [MIG] account_chart_update: Migration to 11.0 2022-04-09 22:20:38 +02:00
Stéphane Bidoul (ACSONE)
8f1146fb78 account_chart_update: copy inactive tax templates too
In v10, tax templates have an active flag. It is useful to copy them too, letting the user select which one he wants to activate in it's instance.
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
Pedro M. Baeza
9ebfe20e56 [FIX] account_chart_update: Don't cache recordsets
When marking methods as ormcache, you can't return recordsets, as they keep
the cursor information, and that cursor can be closed (worker spawn for example)
when you need to access again data.

This is fixed returning IDs instead, and browsing when needed
2022-04-09 22:20:38 +02:00
moutio
a016612a9b [FIX] account_chart_update: Limit fiscal position search with same name (#651) 2022-04-09 22:20:38 +02:00
amcor
d8a7a3587a [MIG][ADD] i18n directly from 10.0 2022-04-09 22:20:38 +02:00
Pedro M. Baeza
2652f2b583 [FIX] account_chart_update: Fetch account code digits correctly 2022-04-09 22:20:38 +02:00
Sylvain Van Hoof
4dab46bfc6 [MIG] account_chart_update: Migration to 10.0 2022-04-09 22:20:38 +02:00
Pedro M. Baeza
dc9dd56a07 [FIX+IMP] account_chart_update: Fix fiscal position mapping + translations + clean authors
As this module has been written from scratch with a totally different technique, I clean the list and update copyrights.
2022-04-09 22:20:38 +02:00
Jairo Llopis
b1b71a0931 [MIG][9.0][account_chart_update] Migrate.
- New-style license headers.
- Remove .pot file.
- Remove tax codes stuff, now removed from v9.
- Refactor methods for search, create, update, delete. Now they are smaller, fitter, happier, more productive.
- Only update fields that have any kind of change on any updated record.
- Place the wizard in the configuration page, instead of its own menu item.
- Display amount of disabled taxes at ending page.
2022-04-09 22:20:38 +02:00
Stéphane Bidoul
8f3ca7bdce [FIX] account_chart_update:
* Process price_include field
* Detect change in price_include field
2022-04-09 22:20:38 +02:00
PabloCM
5713f567b7 [FIX] Include acc templates from parent CoA templates 2022-04-09 22:20:38 +02:00
Pedro M. Baeza
4ec95b4473 [FIX] account_chart_update: Don't write code on account update
As there's a constraint that forbids to write the code of the account
if it has moves, we delete the corresponding entry on update only,
because the method that prepares the values is the same for new and
existing accounts.
2022-04-09 22:20:38 +02:00
Angel Moya
52fb7a35fc [FIX][account-financial-tools] depends key is duplicated 2022-04-09 22:20:38 +02:00
Pedro M. Baeza
63339f1b62 [FIX] account_chart_update: Call mapping function instead of removed cache. Closes #240 2022-04-09 22:20:38 +02:00
Antonio Espinosa
a701f89d0b [FIX+IMP] account_chart_update: Several things
* Set updated taxes as active
* Check parent_id field in '_is_different_tax' method
* PEP8
* Spanish translation
2022-04-09 22:20:38 +02:00
Pedro M. Baeza
b7530f280c [IMP] account_chart_update: Whole refactoring
* Fix calculated field when showing inactives + add field to view
* Migrated to new API.
* Provided hooks for detecting changes and for adding update/create values.
* Purge dead error detection code (not applying).
* Use global mapping dictionaries stored on class instead of passing arguments down to top and viceversa.
* Number fields computed by a function field instead of being computed by hand.
* Use recordsets as indexes instead of ids to avoid repetitive browses.
* Re-enable local cache variables
* README + authors
2022-04-09 22:20:38 +02:00
Stéphane Bidoul
95916d029a [FIX+IMP] account_chart_update: Several things
* search on code first to match tax codes

  The tax code code should be more discriminant that the tax code name.

* compare more fields in tax codes
* deletion of tax codes removed from templates

  For tax codes, it make sense to propose deletion, since tax codes
  are normally defined by the tax authority and the user does not
  customize them.

* update accounts on taxes even if an update of the account was not requested

  Useful when the chart of taxes changes but the chart of account
  need not be updated.

* depth-first search of tax codes

  This helps creating parents before children.

* compare more fields in taxes
* add active field on tax code

  Deactivate tax codes which are not in the template.

* deactivate taxes that are not in the template
* multi-company criteria for taxes
* avoid inserting duplicates in presence of inactive taxes or tax codes
2022-04-09 22:20:38 +02:00
Adrien Peiffer
f34fb5625f [MIG] account_chart_update: Migration to 8.0
* Move out of unported
* Set account_chart_update installable
* value_reference of ir.property is a char
* Use get_by_record method of ir.property
* number digits is returned before assignment in case of property exist but account not
* product_obj isn't used
2022-04-09 22:20:38 +02:00
Nicolas Bessi
9594eec772 Set all addons to uninstallable 2022-04-09 22:20:38 +02:00
Pedro M. Baeza
9dd1700b4a [FIX] account_chart_update: Selection of operations to do now is working.
[FIX] account_chart_update: Adapted to work with inherited account chart templates.
[FIX] account_chart_update: Remove required=True for chart_template_id on DB and put on screen to avoid error when removing chart templates.
[FIX] account_chart_update: Change method to compare taxes of fiscal positions to match with the one comparing taxes.
[FIX] account_chart_update: Change method to compare accounts of fiscal positions to match with the one comparing accounts.
[IMP] account_chart_update: Wizard now shows in tree view modification notes.
[IMP] account_chart_update: For new data to be created, it is marked on notes the reason for the creation (just for clarity).
[IMP] account_chart_update: Tabs for operations that are not going to be performed are hidden.
[IMP] account_chart_update: Some PEP8 here and there.
[IMP] account_chart_update: Enhance a little the mapping searches (there's more room to improve).
[IMP] account_chart_update: Now it takes into account name and description for mapping taxes.
2022-04-09 22:20:38 +02:00