From 521bc4357f3da70ed684888ac031c3baa0fd2c91 Mon Sep 17 00:00:00 2001 From: Thibault Francois Date: Thu, 12 May 2016 23:31:02 +0200 Subject: [PATCH] [FIX] last solution for taxes import --- beesdoo_migration_asbl_to_coop/migration.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/beesdoo_migration_asbl_to_coop/migration.py b/beesdoo_migration_asbl_to_coop/migration.py index 989735e..112b755 100644 --- a/beesdoo_migration_asbl_to_coop/migration.py +++ b/beesdoo_migration_asbl_to_coop/migration.py @@ -79,13 +79,6 @@ class migration_framework(import_framework): To be used to avoid duplication of data that don't have ids """ return name - - taxes_mapping = { - '5.5% Marchandise' : '6% Marchandises', - '6% Marchandise' : '6% Marchandises', - '21% Services incluse' : '21% Services', - } - def get_mapping(self): return { @@ -195,8 +188,8 @@ class migration_framework(import_framework): 'sale_delay' : 'sale_delay', 'sale_ok' : 'sale_ok', 'standard_price' : 'standard_price', - 'supplier_taxes_id' : map_val_default('supplier_taxes_id', self.taxes_mapping), #Taxes problème - 'taxes_id' : map_val_default('taxes_id', self.taxes_mapping), + 'supplier_taxes_id/id' : 'supplier_taxes_id/id', #Taxes problème + 'taxes_id/id' : 'taxes_id/id', 'to_weight' : 'to_weight', 'type' : 'type', 'uom_id/id' : 'uom_id/id',