Skip to content

Commit

Permalink
[FIX] l10n_fr: add migration to version 2.1 of the module
Browse files Browse the repository at this point in the history
This will allow to get the latest taxes.

closes odoo#109001

Task: 3111528.
Related: odoo#84918, odoo#107158
Signed-off-by: William André (wan) <wan@odoo.com>
  • Loading branch information
clbr-odoo authored and OSevangelist committed Jan 26, 2023
1 parent 8034f7a commit 95bf4d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion addons/l10n_fr/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

{
'name': 'France - Accounting',
'version': '2.0',
'version': '2.1',
'category': 'Accounting/Localizations/Account Charts',
'description': """
This is the module to manage the accounting chart for France in Odoo.
Expand Down
6 changes: 6 additions & 0 deletions addons/l10n_fr/migrations/2.1/post-migrate_update_taxes.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo.addons.account.models.chart_template import update_taxes_from_templates


def migrate(cr, version):
update_taxes_from_templates(cr, 'l10n_fr.l10n_fr_pcg_chart_template')

0 comments on commit 95bf4d8

Please sign in to comment.