Browse Source

[FIX] last solution for taxes import

pull/10/head
Thibault Francois 8 years ago
parent
commit
521bc4357f
  1. 11
      beesdoo_migration_asbl_to_coop/migration.py

11
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',

Loading…
Cancel
Save