From 1db0d4bf9a1bd4a136bfbe6d5e4d1febd2a55803 Mon Sep 17 00:00:00 2001 From: qdp-odoo Date: Fri, 22 Jan 2016 16:18:14 +0100 Subject: [PATCH] [FIX] l10n_be: better tags on taxes in order to have an enhanced VAT report + migration script --- addons/l10n_be/__openerp__.py | 2 +- addons/l10n_be/account_tax_template.xml | 333 ++++++++++-------- .../2.0/post-migrate_tags_on_taxes.py | 6 + 3 files changed, 195 insertions(+), 146 deletions(-) create mode 100644 addons/l10n_be/migrations/2.0/post-migrate_tags_on_taxes.py diff --git a/addons/l10n_be/__openerp__.py b/addons/l10n_be/__openerp__.py index ebfc999e287..536426f4a24 100644 --- a/addons/l10n_be/__openerp__.py +++ b/addons/l10n_be/__openerp__.py @@ -3,7 +3,7 @@ { 'name': 'Belgium - Accounting', - 'version': '1.1', + 'version': '2.0', 'category': 'Localization/Account Charts', 'description': """ This is the base module to manage the accounting chart for Belgium in OpenERP. diff --git a/addons/l10n_be/account_tax_template.xml b/addons/l10n_be/account_tax_template.xml index 4ad10aa2373..f82065e5a93 100644 --- a/addons/l10n_be/account_tax_template.xml +++ b/addons/l10n_be/account_tax_template.xml @@ -1,92 +1,135 @@ - - Tax declaration: base in grid 0 + + Belgium VAT Form: grid 0 taxes - - Tax declaration: base in grid 01 + + Belgium VAT Form: grid 01 taxes - - Tax declaration: base in grid 02 + + Belgium VAT Form: grid 02 taxes - - Tax declaration: base in grid 03 + + Belgium VAT Form: grid 03 taxes - - Tax declaration: base in grid 44 + + Belgium VAT Form: grid 44 taxes - - Tax declaration: base in grid 45 + + Belgium VAT Form: grid 45 taxes - - Tax declaration: base in grid 46L + + Belgium VAT Form: grid 46L taxes - - Tax declaration: base in grid 46T + + Belgium VAT Form: grid 46T taxes - - Tax declaration: base in grid 47 + + Belgium VAT Form: grid 47 taxes - - Tax declaration: base in grid 81 + + Belgium VAT Form: grid 48s44 taxes - - Tax declaration: base in grid 82 + + Belgium VAT Form: grid 48s46L taxes - - Tax declaration: base in grid 83 + + Belgium VAT Form: grid 48s46T taxes - - Tax declaration: base in grid 86 + + Belgium VAT Form: grid 49 taxes - - Tax declaration: base in grid 87 + + Belgium VAT Form: grid 54 taxes - - Tax declaration: base in grid 87 (Importations) + + Belgium VAT Form: grid 55 taxes - - Tax declaration: base in grid 88 + + Belgium VAT Form: grid 56 taxes - - Tax declaration: not deductible with base in 81 + + Belgium VAT Form: grid 57 taxes - - Tax declaration: not deductible with base in 82 + + Belgium VAT Form: grid 59 taxes - - Tax declaration: not deductible with base in 83 + + Belgium VAT Form: grid 63 taxes - - Tax declaration: cocontractant or importations + + Belgium VAT Form: grid 64 taxes - - Tax declaration: intracom + + Belgium VAT Form: grid 81 + taxes + + + Belgium VAT Form: grid 82 + taxes + + + Belgium VAT Form: grid 83 + taxes + + + Belgium VAT Form: grid 84 + taxes + + + Belgium VAT Form: grid 85 + taxes + + + Belgium VAT Form: grid 86 + taxes + + + Belgium VAT Form: base in 87 + taxes + + + Belgium VAT Form: grid 88 + taxes + + + Belgium VAT Form: Tax not deductible (grid 81) + taxes + + + Belgium VAT Form: Tax not deductible (grid 82) + taxes + + + Belgium VAT Form: Tax not deductible (grid 83) + taxes + + + Belgium VAT Form: Tax not deductible (grid 85) taxes - 10 @@ -99,7 +142,7 @@ percent sale - + 11 @@ -112,7 +155,7 @@ percent sale - + 20 @@ -125,7 +168,7 @@ percent sale - + 21 @@ -138,7 +181,7 @@ percent sale - + 30 @@ -151,7 +194,7 @@ percent sale - + 31 @@ -164,7 +207,7 @@ percent sale - + 40 @@ -175,7 +218,7 @@ percent sale - + 41 @@ -186,7 +229,7 @@ percent sale - + 50 @@ -197,7 +240,7 @@ percent sale - + 60 @@ -208,7 +251,7 @@ percent sale - + 61 @@ -219,7 +262,7 @@ percent sale - + 62 @@ -230,7 +273,7 @@ percent sale - + 70 @@ -241,7 +284,7 @@ percent sale - + 110 @@ -254,7 +297,7 @@ percent purchase - + 120 @@ -267,7 +310,7 @@ percent purchase - + 130 @@ -280,7 +323,7 @@ percent purchase - + 140 @@ -291,7 +334,7 @@ percent purchase - + 210 @@ -304,7 +347,7 @@ percent purchase - + 220 @@ -317,7 +360,7 @@ percent purchase - + 230 @@ -330,7 +373,7 @@ percent purchase - + 240 @@ -343,7 +386,7 @@ percent purchase - + 250 @@ -356,7 +399,7 @@ percent purchase - + 260 @@ -369,7 +412,7 @@ percent purchase - + 270 @@ -380,7 +423,7 @@ percent purchase - + 280 @@ -391,7 +434,7 @@ percent purchase - + 310 @@ -404,7 +447,7 @@ percent purchase - + 320 @@ -417,7 +460,7 @@ percent purchase - + 330 @@ -430,7 +473,7 @@ percent purchase - + 340 @@ -441,7 +484,7 @@ percent purchase - + 411 @@ -454,7 +497,7 @@ percent none - + 412 @@ -478,7 +521,7 @@ purchase - + 421 @@ -491,7 +534,7 @@ percent none - + 422 @@ -515,7 +558,7 @@ purchase - + 431 @@ -528,7 +571,7 @@ percent none - + 432 @@ -552,7 +595,7 @@ purchase - + 440 @@ -565,7 +608,7 @@ percent purchase - + 511 @@ -578,7 +621,7 @@ percent none - + 512 @@ -602,7 +645,7 @@ purchase - + 521 @@ -615,7 +658,7 @@ percent none - + 522 @@ -639,7 +682,7 @@ purchase - + 531 @@ -652,7 +695,7 @@ percent none - + 532 @@ -676,7 +719,7 @@ purchase - + 540 @@ -689,7 +732,7 @@ percent purchase - + 611 @@ -702,7 +745,7 @@ percent none - + 612 @@ -726,7 +769,7 @@ purchase - + 621 @@ -739,7 +782,7 @@ percent none - + 622 @@ -763,7 +806,7 @@ purchase - + 631 @@ -776,7 +819,7 @@ percent none - + 632 @@ -800,7 +843,7 @@ purchase - + 640 @@ -813,7 +856,7 @@ percent purchase - + 721 @@ -826,7 +869,7 @@ percent none - + 722 @@ -839,7 +882,7 @@ percent none - + 720 @@ -851,7 +894,7 @@ purchase - + 1111 @@ -864,7 +907,7 @@ percent none - + 1112 @@ -888,7 +931,7 @@ purchase - + 1121 @@ -901,7 +944,7 @@ percent none - + 1122 @@ -925,7 +968,7 @@ purchase - + 1131 @@ -938,7 +981,7 @@ percent none - + 1132 @@ -962,7 +1005,7 @@ purchase - + 1140 @@ -973,7 +1016,7 @@ percent purchase - + 1211 @@ -986,7 +1029,7 @@ percent none - + 1212 @@ -1010,7 +1053,7 @@ purchase - + 1221 @@ -1023,7 +1066,7 @@ percent none - + 1222 @@ -1047,7 +1090,7 @@ purchase - + 1231 @@ -1060,7 +1103,7 @@ percent none - + 1232 @@ -1084,7 +1127,7 @@ purchase - + 1241 @@ -1097,7 +1140,7 @@ percent none - + 1242 @@ -1121,7 +1164,7 @@ purchase - + 1251 @@ -1134,7 +1177,7 @@ percent none - + 1252 @@ -1158,7 +1201,7 @@ purchase - + 1261 @@ -1171,7 +1214,7 @@ percent none - + 1262 @@ -1195,7 +1238,7 @@ purchase - + 1270 @@ -1206,7 +1249,7 @@ percent purchase - + 1311 @@ -1219,7 +1262,7 @@ percent none - + 1312 @@ -1243,7 +1286,7 @@ purchase - + 1280 @@ -1254,7 +1297,7 @@ percent purchase - + 1321 @@ -1267,7 +1310,7 @@ percent none - + 1322 @@ -1291,7 +1334,7 @@ purchase - + 1331 @@ -1304,7 +1347,7 @@ percent none - + 1332 @@ -1328,7 +1371,7 @@ purchase - + 1340 @@ -1339,7 +1382,7 @@ percent purchase - + 2111 @@ -1352,7 +1395,7 @@ percent none - + 2112 @@ -1376,7 +1419,7 @@ purchase - + 2121 @@ -1389,7 +1432,7 @@ percent none - + 2122 @@ -1413,7 +1456,7 @@ purchase - + 2131 @@ -1426,7 +1469,7 @@ percent none - + 2132 @@ -1450,7 +1493,7 @@ purchase - + 2140 @@ -1461,7 +1504,7 @@ percent purchase - + 2211 @@ -1474,7 +1517,7 @@ percent none - + 2212 @@ -1498,7 +1541,7 @@ purchase - + 2221 @@ -1511,7 +1554,7 @@ percent none - + 2222 @@ -1535,7 +1578,7 @@ purchase - + 2231 @@ -1548,7 +1591,7 @@ percent none - + 2232 @@ -1572,7 +1615,7 @@ 6 - + 2240 @@ -1583,7 +1626,7 @@ percent purchase - + 2311 @@ -1596,7 +1639,7 @@ percent none - + 2312 @@ -1620,7 +1663,7 @@ purchase - + 2321 @@ -1633,7 +1676,7 @@ percent none - + 2322 @@ -1657,7 +1700,7 @@ purchase - + 2331 @@ -1670,7 +1713,7 @@ percent none - + 2332 @@ -1694,7 +1737,7 @@ 6 - + 2340 @@ -1705,7 +1748,7 @@ percent purchase - + diff --git a/addons/l10n_be/migrations/2.0/post-migrate_tags_on_taxes.py b/addons/l10n_be/migrations/2.0/post-migrate_tags_on_taxes.py new file mode 100644 index 00000000000..fa56fd00dfa --- /dev/null +++ b/addons/l10n_be/migrations/2.0/post-migrate_tags_on_taxes.py @@ -0,0 +1,6 @@ +from openerp.modules.registry import RegistryManager + +def migrate(cr, version): + registry = RegistryManager.get(cr.dbname) + from openerp.addons.account.models.chart_template import migrate_tags_on_taxes + migrate_tags_on_taxes(cr, registry)