~camptocamp/magentoerpconnect/oerp6.1-oldstable-stock-config-1070726

« back to all changes in this revision

Viewing changes to magentoerpconnect/settings/1.5.0.0/external.mappinglines.template.csv

[MRG] from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
"id","type_id:id","model_id:id","external_field","type","external_type","in_function","out_function"
2
 
"mag_1500_erp_s_name","magento1500","base_sale_multichannels.model_external_shop_group","name","in_out","unicode","result=[('name',ifield)]","result=[('name',record['name'])]"
3
 
"mag_1500_erp_s_code","magento1500","base_sale_multichannels.model_external_shop_group","code","in_out","unicode","result=[('code',ifield)]",
4
 
"mag_1500_erp_s_web","magento1500","base_sale_multichannels.model_external_shop_group","website_id","in_out","int","result=[('website_id',ifield)]",
5
 
"mag_1500_erp_s_isa","magento1500","base_sale_multichannels.model_external_shop_group","is_default","in_out","unicode","result=[('is_default',bool(eval(ifield)))]",
6
 
"mag_1500_erp_s_stord","magento1500","base_sale_multichannels.model_external_shop_group","sort_order","in_out","int","result=[('sort_order',ifield)]",
7
 
"mag_1500_erp_s_gpid","magento1500","base_sale_multichannels.model_external_shop_group","default_group_id","in_out","int","result=[('default_shop_integer_id',ifield)]",
8
 
"mag_1500_erp_sv_name","magento1500","model_magerp_storeviews","name","in_out","unicode","result=[('name',ifield)]","result=[('name',record['name'])]"
9
 
"mag_1500_erp_sv_code","magento1500","model_magerp_storeviews","code","in_out","unicode","result=[('code',ifield)]",
10
 
"mag_1500_erp_sv_sg","magento1500","model_magerp_storeviews","website_id","in_out","int","result=[('website_id',self.pool.get('external.shop.group').extid_to_oeid(cr, uid, ifield, external_referential_id))]",
11
 
"mag_1500_erp_sv_isa","magento1500","model_magerp_storeviews","is_active","in_out","unicode","result=[('is_active',bool(eval(ifield)))]",
12
 
"mag_1500_erp_sv_stord","magento1500","model_magerp_storeviews","sort_order","in_out","int","result=[('sort_order',ifield)]",
13
 
"mag_1500_erp_sv_gpid","magento1500","model_magerp_storeviews","group_id","in_out","int","result=[('shop_id',self.pool.get('sale.shop').extid_to_oeid(cr, uid, ifield, external_referential_id))]",
14
 
"mag_1500_erp_st_name","magento1500","sale.model_sale_shop","name","in_out","unicode","result=[('name',ifield)]","result=[('name',record['name'])]"
15
 
"mag_1500_erp_st_gpid","magento1500","sale.model_sale_shop","group_id","in_out","int","result=[('group_id',ifield)]",
16
 
"mag_1500_erp_st_grp","magento1500","sale.model_sale_shop","website_id","in_out","int","result=[('shop_group_id',self.pool.get('external.shop.group').extid_to_oeid(cr, uid, ifield, external_referential_id))]",
17
 
"mag_1500_erp_st_default_st","magento1500","sale.model_sale_shop","default_store_id","in_out","int","result=[('default_storeview_integer_id',ifield)]",
18
 
"mag_1500_erp_st_root_categ","magento1500","sale.model_sale_shop","root_category_id","in_out","int","result=[('root_category_id',ifield)]",
19
 
"mag_1500_erp_so_name","magento1500","sale.model_sale_order","increment_id","in_out","unicode","result=[('magento_incrementid',str(ifield)), ('name','mag_' + str(ifield))]",
20
 
"mag_1500_erp_so_total_amount","magento1500","sale.model_sale_order","grand_total","in_out","float","result=[('ext_total_amount',str(ifield))]",
21
 
"mag_1500_erp_so_carrier_id","magento1500","sale.model_sale_order","shipping_method","in_out","unicode","if ifield:
 
1
id,type_id:id,model_id:id,external_field,field_id:id,type,evaluation_type,external_type,child_mapping_id:id,in_function,out_function
 
2
mag_1500_erp_s_name,magento1500,base_sale_multichannels.model_external_shop_group,name,,in_out,function,unicode,,"result=[('name',ifield)]","result=[('name',record['name'])]"
 
3
mag_1500_erp_s_code,magento1500,base_sale_multichannels.model_external_shop_group,code,,in_out,function,unicode,,"result=[('code',ifield)]",
 
4
mag_1500_erp_s_web,magento1500,base_sale_multichannels.model_external_shop_group,website_id,,in_out,function,int,,"result=[('website_id',ifield)]",
 
5
mag_1500_erp_s_isa,magento1500,base_sale_multichannels.model_external_shop_group,is_default,,in_out,function,unicode,,"result=[('is_default',bool(eval(ifield)))]",
 
6
mag_1500_erp_s_stord,magento1500,base_sale_multichannels.model_external_shop_group,sort_order,,in_out,function,int,,"result=[('sort_order',ifield)]",
 
7
mag_1500_erp_s_gpid,magento1500,base_sale_multichannels.model_external_shop_group,default_group_id,,in_out,function,int,,"result=[('default_shop_integer_id',ifield)]",
 
8
mag_1500_erp_sv_name,magento1500,model_magerp_storeviews,name,,in_out,function,unicode,,"result=[('name',ifield)]","result=[('name',record['name'])]"
 
9
mag_1500_erp_sv_code,magento1500,model_magerp_storeviews,code,,in_out,function,unicode,,"result=[('code',ifield)]",
 
10
mag_1500_erp_sv_sg,magento1500,model_magerp_storeviews,website_id,,in_out,function,int,,"result=[('website_id',self.pool.get('external.shop.group').extid_to_oeid(cr, uid, ifield, external_referential_id))]",
 
11
mag_1500_erp_sv_isa,magento1500,model_magerp_storeviews,is_active,,in_out,function,unicode,,"result=[('is_active',bool(eval(ifield)))]",
 
12
mag_1500_erp_sv_stord,magento1500,model_magerp_storeviews,sort_order,,in_out,function,int,,"result=[('sort_order',ifield)]",
 
13
mag_1500_erp_sv_gpid,magento1500,model_magerp_storeviews,group_id,,in_out,function,int,,"result=[('shop_id',self.pool.get('sale.shop').extid_to_oeid(cr, uid, ifield, external_referential_id))]",
 
14
mag_1500_erp_st_name,magento1500,sale.model_sale_shop,name,,in_out,function,unicode,,"result=[('name',ifield)]","result=[('name',record['name'])]"
 
15
mag_1500_erp_st_gpid,magento1500,sale.model_sale_shop,group_id,,in_out,function,int,,"result=[('group_id',ifield)]",
 
16
mag_1500_erp_st_grp,magento1500,sale.model_sale_shop,website_id,,in_out,function,int,,"result=[('shop_group_id',self.pool.get('external.shop.group').extid_to_oeid(cr, uid, ifield, external_referential_id))]",
 
17
mag_1500_erp_st_default_st,magento1500,sale.model_sale_shop,default_store_id,,in_out,function,int,,"result=[('default_storeview_integer_id',ifield)]",
 
18
mag_1500_erp_st_root_categ,magento1500,sale.model_sale_shop,root_category_id,,in_out,function,int,,"result=[('root_category_id',ifield)]",
 
19
mag_1500_erp_so_name,magento1500,sale.model_sale_order,increment_id,,in_out,function,unicode,,"result=[('magento_incrementid',str(ifield)), ('name','mag_' + str(ifield))]",
 
20
mag_1500_erp_so_total_amount,magento1500,sale.model_sale_order,grand_total,,in_out,function,float,,"result=[('ext_total_amount',str(ifield))]",
 
21
mag_1500_erp_so_carrier_id,magento1500,sale.model_sale_order,shipping_method,,in_out,function,unicode,,"if ifield:
22
22
    carrier_ids = self.pool.get('delivery.carrier').search(cr, uid, [('magento_code', '=', ifield)])
23
23
    if carrier_ids:
24
24
        result=[('carrier_id', carrier_ids[0])]
28
28
        model, product_id = model_data_obj.get_object_reference(cr, uid, 'base_sale_multichannels', 'product_product_shipping')
29
29
        carrier_id = self.pool.get('delivery.carrier').create(cr, uid, {'partner_id' : fake_partner_id, 'product_id' : product_id, 'name' : ifield, 'magento_code' : ifield})
30
30
        result=[('carrier_id', carrier_id)]",
31
 
"mag_1500_erp_so_pay","magento1500","sale.model_sale_order","payment","in_out","unicode","
 
31
mag_1500_erp_so_pay,magento1500,sale.model_sale_order,payment,,in_out,function,unicode,,"
32
32
payments_mapping = {'checkmo': 'manual', 'ccsave': 'prepaid', 'free':'prepaid','googlecheckout':'prepaid','paypayl_express':'prepaid', 'paybox_system': 'prepaid', 'paypal_standard': 'prepaid', 'cashondelivery': 'manual', 'servired_standard': 'prepaid', 'bbva': 'prepaid', 'cofidis': 'prepaid'}
33
33
ifield=eval(ifield)
34
34
result=[('order_policy', ifield['method'] in payments_mapping and payments_mapping[ifield['method']] or 'prepaid'), ('ext_payment_method', ifield['method'])]",
35
 
"mag_1500_erp_soline_name","magento1500","sale.model_sale_order_line","name","in_out","unicode","result=[('name', ifield)]
 
35
 
 
36
mag_1500_erp_so_item,magento1500,sale.model_sale_order,items,sale.field_sale_order_order_line,in,sub-mapping,dict,magento_1500_order_line,,
 
37
"mag_1500_erp_soline_name","magento1500","sale.model_sale_order_line","name",,"in_out","function","unicode",,"result=[('name', ifield)]
36
38
",
37
 
"Mag_1500_erp_soline_note","magento1324","sale.model_sale_order_line","product_options","in","unicode","if ifield:
 
39
"Mag_1500_erp_soline_note","magento1324","sale.model_sale_order_line","product_options",,"in","function","unicode",,"if ifield:
38
40
    import re
39
41
    options_label = []
40
42
    clean = re.sub('\w:\w:|\w:\w+;', '', ifield)
45
47
        
46
48
    result=[('notes',  """".join(options_label).replace('""""', '\n').replace('""', ''))]
47
49
",
48
 
"mag_1500_erp_soline_pid","magento1500","sale.model_sale_order_line","product_id","in_out","unicode","context['alternative_key'] = data['sku']
 
50
mag_1500_erp_soline_pid,magento1500,sale.model_sale_order_line,product_id,,in_out,function,unicode,,"context['alternative_key'] = data['sku']
49
51
result=[('product_id',self.pool.get('product.product').extid_to_oeid(cr, uid, ifield, external_referential_id))]",
50
 
"mag_1500_erp_soline_uomqty","magento1500","sale.model_sale_order_line","qty_ordered","in_out","unicode","result=[('product_uom_qty',ifield)]",
51
 
"mag_1500_erp_soline_uosqty","magento1500","sale.model_sale_order_line","qty_ordered","in","unicode","result=[('product_uos_qty',ifield)]",
52
 
"mag_1500_erp_soline_price","magento1500","sale.model_sale_order_line","price","in","unicode","if context.get('price_is_tax_included', False):             
 
52
mag_1500_erp_soline_uomqty,magento1500,sale.model_sale_order_line,qty_ordered,,in_out,function,unicode,,"result=[('product_uom_qty',ifield)]",
 
53
mag_1500_erp_soline_uosqty,magento1500,sale.model_sale_order_line,qty_ordered,,in,function,unicode,,"result=[('product_uos_qty',ifield)]",
 
54
mag_1500_erp_soline_price,magento1500,sale.model_sale_order_line,price,,in,function,unicode,,"if context.get('price_is_tax_included', False):             
53
55
    result=[('price_unit', (float(data['row_total']) + float(data['tax_amount']))/float(data['qty_ordered']))]
54
56
else:
55
57
    result=[('price_unit', float(data['row_total'])/float(data['qty_ordered']))]",
56
 
"mag_1500_erp_soline_disc","magento1500","sale.model_sale_order_line","discount_amount","in","float","if ifield:
 
58
mag_1500_erp_soline_disc,magento1500,sale.model_sale_order_line,discount_amount,,in,function,float,,"if ifield:
57
59
    result=[('discount', float(data['price']) != 0 and float(data['qty_ordered']) != 0 and float(100*ifield)/(float(data['price'])*float(data['qty_ordered'])) or 0)]",
58
 
"mag_1500_erp_procat_2","magento1500","product.model_product_category","level","in","int","result=[('sequence',ifield),('level',ifield)]",
59
 
"mag_1500_erp_procat_3","magento1500","product.model_product_category","parent_id","in_out","int","record_id = self.pool.get('ir.model.data').search(cr, uid, [('model', '=', self._name), ('name', '=', self.prefixed_id(ifield))])
 
60
mag_1500_erp_procat_2,magento1500,product.model_product_category,level,,in,function,int,,"result=[('sequence',ifield),('level',ifield)]",
 
61
mag_1500_erp_procat_3,magento1500,product.model_product_category,parent_id,,in_out,function,int,,"record_id = self.pool.get('ir.model.data').search(cr, uid, [('model', '=', self._name), ('name', '=', self.prefixed_id(ifield))])
60
62
parent_id = False
61
63
if record_id:
62
64
        parent_rec = self.pool.get('ir.model.data').read(cr,uid,record_id[0],[])
69
71
                magento_parent_id = self.oeid_to_extid(cr, uid, record.get('parent_id')[0], external_referential_id)
70
72
if magento_parent_id:
71
73
        result = [('parent_id',magento_parent_id)]"
72
 
"mag_1500_erp_procat_4","magento1500","product.model_product_category","is_active","in_out","unicode","result=[('is_active',ifield and (eval(ifield)) or False)]","result=[('is_active',record['is_active'])]"
73
 
"mag_1500_erp_procat_5","magento1500","product.model_product_category","description","in_out","unicode","result=[('description',ifield)]","result=[('description',record['description'])]"
74
 
"mag_1500_erp_procat_6","magento1500","product.model_product_category","meta_title","in_out","unicode","result=[('meta_title',ifield)]","result=[('meta_title',record['meta_title'])]"
75
 
"mag_1500_erp_procat_7","magento1500","product.model_product_category","meta_keywords","in_out","unicode","result=[('meta_keywords',ifield)]","result=[('meta_keywords',record['meta_keywords'])]"
76
 
"mag_1500_erp_procat_8","magento1500","product.model_product_category","meta_description","in_out","unicode","result=[('meta_description',ifield)]","result=[('meta_description',record['meta_description'])]"
77
 
"mag_1500_erp_procat_9","magento1500","product.model_product_category","url_key","in_out","unicode","result=[('url_key',ifield)]","if context.get('export_url', False) :
 
74
mag_1500_erp_procat_4,magento1500,product.model_product_category,is_active,,in_out,function,unicode,,"result=[('is_active',ifield and (eval(ifield)) or False)]","result=[('is_active',record['is_active'])]"
 
75
mag_1500_erp_procat_5,magento1500,product.model_product_category,description,,in_out,function,unicode,,"result=[('description',ifield)]","result=[('description',record['description'])]"
 
76
mag_1500_erp_procat_6,magento1500,product.model_product_category,meta_title,,in_out,function,unicode,,"result=[('meta_title',ifield)]","result=[('meta_title',record['meta_title'])]"
 
77
mag_1500_erp_procat_7,magento1500,product.model_product_category,meta_keywords,,in_out,function,unicode,,"result=[('meta_keywords',ifield)]","result=[('meta_keywords',record['meta_keywords'])]"
 
78
mag_1500_erp_procat_8,magento1500,product.model_product_category,meta_description,,in_out,function,unicode,,"result=[('meta_description',ifield)]","result=[('meta_description',record['meta_description'])]"
 
79
mag_1500_erp_procat_9,magento1500,product.model_product_category,url_key,,in_out,function,unicode,,"result=[('url_key',ifield)]","if context.get('export_url', False) :
78
80
    result=[('url_key',record['url_key'])]"
79
 
"mag_1500_erp_procat_10","magento1500","product.model_product_category","name","in_out","unicode","result=[('name',ifield or 'UNDEFINED'),('magento_exportable',True)]","result=[('name',record['name'])]"
80
 
"mag_1500_erp_procat_11","magento1500","product.model_product_category","is_anchor","in_out","unicode","result=[('is_anchor',ifield and bool(eval(ifield)) or False)]","result=[('is_anchor',record['is_anchor'])]"
81
 
"mag_1500_erp_procat_12","magento1500","product.model_product_category","available_sort_by","in_out","unicode","attr_ids = []
 
81
mag_1500_erp_procat_10,magento1500,product.model_product_category,name,,in_out,function,unicode,,"result=[('name',ifield or 'UNDEFINED'),('magento_exportable',True)]","result=[('name',record['name'])]"
 
82
mag_1500_erp_procat_11,magento1500,product.model_product_category,is_anchor,,in_out,function,unicode,,"result=[('is_anchor',ifield and bool(eval(ifield)) or False)]","result=[('is_anchor',record['is_anchor'])]"
 
83
mag_1500_erp_procat_12,magento1500,product.model_product_category,available_sort_by,,in_out,function,unicode,,"attr_ids = []
82
84
cat_attr_obj = self.pool.get('magerp.product_category_attribute_options')
83
85
if ifield:
84
86
    for val in ifield:
92
94
    for cat_attr_option in self.pool.get('magerp.product_category_attribute_options').browse(cr, uid, record['available_sort_by'], context=context):
93
95
        res.append(cat_attr_option.value)
94
96
result=[('available_sort_by', res)]"
95
 
"mag_1500_erp_procat_13","magento1500","product.model_product_category","default_sort_by","in_out","unicode","if ifield:
 
97
mag_1500_erp_procat_13,magento1500,product.model_product_category,default_sort_by,,in_out,function,unicode,,"if ifield:
96
98
    att_id = self.pool.get('magerp.product_category_attribute_options').get_create_option_id(cr, uid, ifield,'sort_by', context=context)
97
99
else:
98
100
    att_id = self.pool.get('magerp.product_category_attribute_options').get_create_option_id(cr, uid, 'None','sort_by', context=context)
99
101
result=[('default_sort_by',att_id)]","cat_attr_option = self.pool.get('magerp.product_category_attribute_options').browse(cr, uid, record['default_sort_by'][0], context=context)
100
102
result=[('default_sort_by', cat_attr_option.value)]"
101
 
"mag_1500_erp_procat_14","magento1500","product.model_product_category","updated_at","in","unicode","result=[('magerp_stamp',ifield)]",
102
 
"mag_1500_erp_procat_15","magento1500","product.model_product_category","image","in_out","unicode","image_binary = False
 
103
mag_1500_erp_procat_14,magento1500,product.model_product_category,updated_at,,in,function,unicode,,"result=[('magerp_stamp',ifield)]",
 
104
mag_1500_erp_procat_15,magento1500,product.model_product_category,image,,in_out,function,unicode,,"image_binary = False
103
105
if ifield and not ifield=='None':
104
106
        try:
105
107
                image_binary = conn.call('ol_catalog_category_media.info', [int(data['category_id'])])
115
117
        result = [('image',record['image_name'])]
116
118
else:
117
119
        result=[]"
118
 
"mag_1500_erp_procat_16","magento1500","product.model_product_category","include_in_menu","in_out","unicode","result=[('include_in_menu', ifield and (eval(ifield)) or False)]","result=[('include_in_menu',record['include_in_menu'])]"
119
 
"mag_1500_erp_procat_17","magento1500","product.model_product_category","page_layout","in_out","unicode","if ifield:
 
120
mag_1500_erp_procat_16,magento1500,product.model_product_category,include_in_menu,,in_out,function,unicode,,"result=[('include_in_menu', ifield and (eval(ifield)) or False)]","result=[('include_in_menu',record['include_in_menu'])]"
 
121
mag_1500_erp_procat_17,magento1500,product.model_product_category,page_layout,,in_out,function,unicode,,"if ifield:
120
122
    att_id = self.pool.get('magerp.product_category_attribute_options').get_create_option_id(cr, uid, ifield,'page_layout', context=context)
121
123
else:
122
124
    att_id = self.pool.get('magerp.product_category_attribute_options').get_create_option_id(cr, uid, 'None','page_layout', context=context)
123
125
result=[('page_layout',att_id)]","result=[('page_layout', record['page_layout'][1] or '')]"
124
 
"mag_1500_erp_attrgrp_2","magento1500","model_magerp_product_attribute_groups","attribute_set_id","in_out","int","result=[('attribute_set_id', ifield)]","result=[('attribute_set_id', record['attribute_set_id'])]"
125
 
"mag_1500_erp_attrgrp_3","magento1500","model_magerp_product_attribute_groups","attribute_group_name","in_out","unicode","result=[('attribute_group_name', ifield)]","result=[('attribute_group_name', record['attribute_group_name'])]"
126
 
"mag_1500_erp_attrgrp_4","magento1500","model_magerp_product_attribute_groups","sort_order","in_out","int","result=[('sort_order', ifield)]","result=[('sort_order', record['sort_order'])]"
127
 
"mag_1500_erp_attrgrp_5","magento1500","model_magerp_product_attribute_groups","default_id","in_out","int","result=[('default_id', ifield)]","result=[('default_id', record['default_id'])]"
128
 
"mag_1500_erp_attrset_1","magento1500","model_magerp_product_attribute_set","attribute_set_id","in_out","int","result=[('magento_id', ifield)]","result=[('attribute_set_id', record['magento_id'])]"
129
 
"mag_1500_erp_attrset_2","magento1500","model_magerp_product_attribute_set","sort_order","in_out","int","result=[('sort_order', ifield)]","result=[('sort_order', record['sort_order'])]"
130
 
"mag_1500_erp_attrset_3","magento1500","model_magerp_product_attribute_set","attribute_set_name","in_out","unicode","result=[('attribute_set_name', ifield)]","result=[('attribute_set_name', record['attribute_set_name'])]"
131
 
"mag_1500_erp_attr_1","magento1500","model_magerp_product_attributes","attribute_code","in_out","unicode","result=[('attribute_code', ifield)]","result=[('code', record['attribute_code'])]"
132
 
"mag_1500_erp_attr_2","magento1500","model_magerp_product_attributes","attribute_id","in_out","int","result=[('magento_id', ifield)]",
133
 
"mag_1500_erp_attr_3","magento1500","model_magerp_product_attributes","frontend_input","in_out","unicode","result=[('frontend_input', ifield)]","result=[('frontend_input', record['frontend_input'])]"
134
 
"mag_1500_erp_attr_4","magento1500","model_magerp_product_attributes","frontend_class","in_out","unicode","result=[('frontend_class', ifield)]","result=[('frontend_class', record['frontend_class'])]"
135
 
"mag_1500_erp_attr_5","magento1500","model_magerp_product_attributes","backend_model","in_out","unicode","result=[('backend_model', ifield)]","result=[('backend_model', record['backend_model'])]"
136
 
"mag_1500_erp_attr_6","magento1500","model_magerp_product_attributes","backend_type","in_out","unicode","result=[('backend_type', ifield)]","result=[('backend_type', record['backend_type'])]"
137
 
"mag_1500_erp_attr_7","magento1500","model_magerp_product_attributes","frontend_label","in_out","unicode","result=[('frontend_label', ifield)]","result=[('frontend_label', record['frontend_label'])]"
138
 
"mag_1500_erp_attr_8","magento1500","model_magerp_product_attributes","is_visible_in_advanced_search","in_out","unicode","result=[('is_visible_in_advanced_search', bool(eval(ifield)))]","result=[('is_visible_in_advanced_search', record['is_visible_in_advanced_search'])]"
139
 
"mag_1500_erp_attr_9","magento1500","model_magerp_product_attributes","is_global","in_out","unicode","result=[('is_global', bool(eval(ifield)))]","result=[('is_global', record['is_global'])]"
140
 
"mag_1500_erp_attr_10","magento1500","model_magerp_product_attributes","is_filterable","in_out","unicode","result=[('is_filterable', bool(eval(ifield)))]","result=[('is_filterable', record['is_filterable'])]"
141
 
"mag_1500_erp_attr_11","magento1500","model_magerp_product_attributes","is_comparable","in_out","unicode","result=[('is_comparable', bool(eval(ifield)))]","result=[('is_comparable', record['is_comparable'])]"
142
 
"mag_1500_erp_attr_12","magento1500","model_magerp_product_attributes","is_visible","in_out","unicode","result=[('is_visible', bool(eval(ifield)))]","result=[('is_visible', record['is_visible'])]"
143
 
"mag_1500_erp_attr_13","magento1500","model_magerp_product_attributes","is_searchable","in_out","unicode","result=[('is_searchable', bool(eval(ifield)))]","result=[('is_searchable', record['is_searchable'])]"
144
 
"mag_1500_erp_attr_14","magento1500","model_magerp_product_attributes","is_user_defined","in_out","unicode","result=[('is_user_defined', bool(eval(ifield)))]","result=[('is_user_defined', record['is_user_defined'])]"
145
 
"mag_1500_erp_attr_15","magento1500","model_magerp_product_attributes","is_configurable","in_out","unicode","result=[('is_configurable', bool(eval(ifield)))]","result=[('is_configurable', record['is_configurable'])]"
146
 
"mag_1500_erp_attr_16","magento1500","model_magerp_product_attributes","is_visible_on_front","in_out","unicode","result=[('is_visible_on_front', bool(eval(ifield)))]","result=[('is_visible_on_front', record['is_visible_on_front'])]"
147
 
"mag_1500_erp_attr_17","magento1500","model_magerp_product_attributes","is_used_for_price_rules","in_out","unicode","result=[('is_used_for_price_rules', bool(eval(ifield)))]","result=[('is_used_for_price_rules', record['is_used_for_price_rules'])]"
148
 
"mag_1500_erp_attr_18","magento1500","model_magerp_product_attributes","is_unique","in_out","unicode","result=[('is_unique', bool(eval(ifield)))]","result=[('is_unique', record['is_unique'])]"
149
 
"mag_1500_erp_attr_19","magento1500","model_magerp_product_attributes","is_required","in_out","unicode","result=[('is_required', bool(eval(ifield)))]","result=[('is_required', record['is_required'])]"
150
 
"mag_1500_erp_attr_20","magento1500","model_magerp_product_attributes","position","in_out","int","result=[('position', ifield)]","result=[('position', record['position'])]"
151
 
"mag_1500_erp_attr_21","magento1500","model_magerp_product_attributes","attribute_set_info","in_out","unicode","result=[('attribute_set_info', ifield)]","result=[('attribute_set_info', record['attribute_set_info'])]"
152
 
"mag_1500_erp_attr_22","magento1500","model_magerp_product_attributes","default_value","in_out","unicode","result=[('default_value', ifield)]","result=[('default_value', record['default_value'])]"
153
 
"mag_1500_erp_attr_23","magento1500","model_magerp_product_attributes","note","in_out","unicode","result=[('note', ifield)]","result=[('note', record['note'])]"
154
 
"mag_1500_erp_attr_24","magento1500","model_magerp_product_attributes","entity_type_id","in_out","int","result=[('entity_type_id', ifield)]","result=[('entity_type_id', record['entity_type_id'])]"
155
 
"mag_1500_erp_attr_25","magento1500","model_magerp_product_attributes","apply_to","in_out","unicode","result=[('apply_to', str(ifield))]","result=[('apply_to', eval(record['%s']))]"
156
 
"mag_1500_erp_prd_1","magento1500","product.model_product_product","url_key","in_out","unicode","result=[('x_magerp_url_key',ifield)]","if context.get('export_url', False) :
 
126
mag_1500_erp_attrgrp_2,magento1500,model_magerp_product_attribute_groups,attribute_set_id,,in_out,function,int,,"result=[('attribute_set_id', ifield)]","result=[('attribute_set_id', record['attribute_set_id'])]"
 
127
mag_1500_erp_attrgrp_3,magento1500,model_magerp_product_attribute_groups,attribute_group_name,,in_out,function,unicode,,"result=[('attribute_group_name', ifield)]","result=[('attribute_group_name', record['attribute_group_name'])]"
 
128
mag_1500_erp_attrgrp_4,magento1500,model_magerp_product_attribute_groups,sort_order,,in_out,function,int,,"result=[('sort_order', ifield)]","result=[('sort_order', record['sort_order'])]"
 
129
mag_1500_erp_attrgrp_5,magento1500,model_magerp_product_attribute_groups,default_id,,in_out,function,int,,"result=[('default_id', ifield)]","result=[('default_id', record['default_id'])]"
 
130
mag_1500_erp_attrset_1,magento1500,model_magerp_product_attribute_set,attribute_set_id,,in_out,function,int,,"result=[('magento_id', ifield)]","result=[('attribute_set_id', record['magento_id'])]"
 
131
mag_1500_erp_attrset_2,magento1500,model_magerp_product_attribute_set,sort_order,,in_out,function,int,,"result=[('sort_order', ifield)]","result=[('sort_order', record['sort_order'])]"
 
132
mag_1500_erp_attrset_3,magento1500,model_magerp_product_attribute_set,attribute_set_name,,in_out,function,unicode,,"result=[('attribute_set_name', ifield)]","result=[('attribute_set_name', record['attribute_set_name'])]"
 
133
mag_1500_erp_attr_1,magento1500,model_magerp_product_attributes,attribute_code,,in_out,function,unicode,,"result=[('attribute_code', ifield)]","result=[('code', record['attribute_code'])]"
 
134
mag_1500_erp_attr_2,magento1500,model_magerp_product_attributes,attribute_id,,in_out,function,int,,"result=[('magento_id', ifield)]",
 
135
mag_1500_erp_attr_3,magento1500,model_magerp_product_attributes,frontend_input,,in_out,function,unicode,,"result=[('frontend_input', ifield)]","result=[('frontend_input', record['frontend_input'])]"
 
136
mag_1500_erp_attr_4,magento1500,model_magerp_product_attributes,frontend_class,,in_out,function,unicode,,"result=[('frontend_class', ifield)]","result=[('frontend_class', record['frontend_class'])]"
 
137
mag_1500_erp_attr_5,magento1500,model_magerp_product_attributes,backend_model,,in_out,function,unicode,,"result=[('backend_model', ifield)]","result=[('backend_model', record['backend_model'])]"
 
138
mag_1500_erp_attr_6,magento1500,model_magerp_product_attributes,backend_type,,in_out,function,unicode,,"result=[('backend_type', ifield)]","result=[('backend_type', record['backend_type'])]"
 
139
mag_1500_erp_attr_7,magento1500,model_magerp_product_attributes,frontend_label,,in_out,function,unicode,,"result=[('frontend_label', ifield)]","result=[('frontend_label', record['frontend_label'])]"
 
140
mag_1500_erp_attr_8,magento1500,model_magerp_product_attributes,is_visible_in_advanced_search,,in_out,function,unicode,,"result=[('is_visible_in_advanced_search', bool(eval(ifield)))]","result=[('is_visible_in_advanced_search', record['is_visible_in_advanced_search'])]"
 
141
mag_1500_erp_attr_9,magento1500,model_magerp_product_attributes,is_global,,in_out,function,unicode,,"result=[('is_global', bool(eval(ifield)))]","result=[('is_global', record['is_global'])]"
 
142
mag_1500_erp_attr_10,magento1500,model_magerp_product_attributes,is_filterable,,in_out,function,unicode,,"result=[('is_filterable', bool(eval(ifield)))]","result=[('is_filterable', record['is_filterable'])]"
 
143
mag_1500_erp_attr_11,magento1500,model_magerp_product_attributes,is_comparable,,in_out,function,unicode,,"result=[('is_comparable', bool(eval(ifield)))]","result=[('is_comparable', record['is_comparable'])]"
 
144
mag_1500_erp_attr_12,magento1500,model_magerp_product_attributes,is_visible,,in_out,function,unicode,,"result=[('is_visible', bool(eval(ifield)))]","result=[('is_visible', record['is_visible'])]"
 
145
mag_1500_erp_attr_13,magento1500,model_magerp_product_attributes,is_searchable,,in_out,function,unicode,,"result=[('is_searchable', bool(eval(ifield)))]","result=[('is_searchable', record['is_searchable'])]"
 
146
mag_1500_erp_attr_14,magento1500,model_magerp_product_attributes,is_user_defined,,in_out,function,unicode,,"result=[('is_user_defined', bool(eval(ifield)))]","result=[('is_user_defined', record['is_user_defined'])]"
 
147
mag_1500_erp_attr_15,magento1500,model_magerp_product_attributes,is_configurable,,in_out,function,unicode,,"result=[('is_configurable', bool(eval(ifield)))]","result=[('is_configurable', record['is_configurable'])]"
 
148
mag_1500_erp_attr_16,magento1500,model_magerp_product_attributes,is_visible_on_front,,in_out,function,unicode,,"result=[('is_visible_on_front', bool(eval(ifield)))]","result=[('is_visible_on_front', record['is_visible_on_front'])]"
 
149
mag_1500_erp_attr_17,magento1500,model_magerp_product_attributes,is_used_for_price_rules,,in_out,function,unicode,,"result=[('is_used_for_price_rules', bool(eval(ifield)))]","result=[('is_used_for_price_rules', record['is_used_for_price_rules'])]"
 
150
mag_1500_erp_attr_18,magento1500,model_magerp_product_attributes,is_unique,,in_out,function,unicode,,"result=[('is_unique', bool(eval(ifield)))]","result=[('is_unique', record['is_unique'])]"
 
151
mag_1500_erp_attr_19,magento1500,model_magerp_product_attributes,is_required,,in_out,function,unicode,,"result=[('is_required', bool(eval(ifield)))]","result=[('is_required', record['is_required'])]"
 
152
mag_1500_erp_attr_20,magento1500,model_magerp_product_attributes,position,,in_out,function,int,,"result=[('position', ifield)]","result=[('position', record['position'])]"
 
153
mag_1500_erp_attr_21,magento1500,model_magerp_product_attributes,attribute_set_info,,in_out,function,unicode,,"result=[('attribute_set_info', ifield)]","result=[('attribute_set_info', record['attribute_set_info'])]"
 
154
mag_1500_erp_attr_22,magento1500,model_magerp_product_attributes,default_value,,in_out,function,unicode,,"result=[('default_value', ifield)]","result=[('default_value', record['default_value'])]"
 
155
mag_1500_erp_attr_23,magento1500,model_magerp_product_attributes,note,,in_out,function,unicode,,"result=[('note', ifield)]","result=[('note', record['note'])]"
 
156
mag_1500_erp_attr_24,magento1500,model_magerp_product_attributes,entity_type_id,,in_out,function,int,,"result=[('entity_type_id', ifield)]","result=[('entity_type_id', record['entity_type_id'])]"
 
157
mag_1500_erp_attr_25,magento1500,model_magerp_product_attributes,apply_to,,in_out,function,unicode,,"result=[('apply_to', str(ifield))]","result=[('apply_to', eval(record['%s']))]"
 
158
mag_1500_erp_prd_1,magento1500,product.model_product_product,url_key,,in_out,function,unicode,,"result=[('x_magerp_url_key',ifield)]","if context.get('export_url', False) :
157
159
    result=[('url_key',record['x_magerp_url_key'])]"
158
 
"mag_1500_erp_prd_2","magento1500","product.model_product_product","name","in_out","unicode","result = [('name',ifield)]","result = [('name',record['name'])]"
159
 
"mag_1500_erp_prd_3","magento1500","product.model_product_product","description","in_out","unicode","result = [('description',ifield)]",
160
 
"mag_1500_erp_prd_4","magento1500","product.model_product_product","short_description","in_out","unicode","result = [('description_sale',ifield)]",
161
 
"mag_1500_erp_prd_5","magento1500","product.model_product_product","sku","in_out","unicode","result = [('magento_sku',ifield), ('default_code',ifield)]",
162
 
"mag_1500_erp_prd_6","magento1500","product.model_product_product","weight","in_out","float","result = [('weight',ifield)]","result = [('weight',record['weight'] or 0)]"
163
 
"mag_1500_erp_prd_7","magento1500","product.model_product_product","categories","in_out","list","categ_ids =[]
 
160
mag_1500_erp_prd_2,magento1500,product.model_product_product,name,,in_out,function,unicode,,"result = [('name',ifield)]","result = [('name',record['name'])]"
 
161
mag_1500_erp_prd_3,magento1500,product.model_product_product,description,,in_out,function,unicode,,"result = [('description',ifield)]",
 
162
mag_1500_erp_prd_4,magento1500,product.model_product_product,short_description,,in_out,function,unicode,,"result = [('description_sale',ifield)]",
 
163
mag_1500_erp_prd_5,magento1500,product.model_product_product,sku,,in_out,function,unicode,,"result = [('magento_sku',ifield), ('default_code',ifield)]",
 
164
mag_1500_erp_prd_6,magento1500,product.model_product_product,weight,,in_out,function,float,,"result = [('weight',ifield)]","result = [('weight',record['weight'] or 0)]"
 
165
mag_1500_erp_prd_7,magento1500,product.model_product_product,categories,,in_out,function,list,,"categ_ids =[]
164
166
if ifield:
165
167
    for category_id in ifield:
166
168
        categ_ids.append(self.pool.get('product.category').extid_to_oeid(cr, uid, category_id, external_referential_id))
176
178
    if categ_id:
177
179
        categ_ids.append(categ_id)
178
180
result=[('categories', categ_ids)]"
179
 
"mag_1500_erp_prd_8","magento1500","product.model_product_product","price","in_out","float","result=[('list_price',ifield)]","result=[]#map later"
180
 
"mag_1500_erp_prd_9","magento1500","product.model_product_product","cost","in_out","float","result=[('standard_price',ifield)]","result = [('cost',record['standard_price'] or 0)]"
181
 
"mag_1500_erp_prd_10","magento1500","product.model_product_product","set","in_out","unicode","result=[('set',self.pool.get('magerp.product_attribute_set').extid_to_oeid(cr, uid, ifield, external_referential_id))]",
182
 
"mag_1500_erp_prd_11","magento1500","product.model_product_product","special_price","in_out","float","result = [('x_magerp_special_price',ifield)]",
183
 
"mag_1500_erp_prd_12","magento1500","product.model_product_product","tier_price","in_out","unicode","result=[]#no mapping by default","result=[]#no mapping by default"
184
 
"mag_1500_erp_prd_13","magento1500","product.model_product_product","minimal_price","in_out","float","result = [('x_magerp_minimal_price',ifield)]","
 
181
mag_1500_erp_prd_8,magento1500,product.model_product_product,price,,in_out,function,float,,"result=[('list_price',ifield)]",result=[]#map later
 
182
mag_1500_erp_prd_9,magento1500,product.model_product_product,cost,,in_out,function,float,,"result=[('standard_price',ifield)]","result = [('cost',record['standard_price'] or 0)]"
 
183
mag_1500_erp_prd_10,magento1500,product.model_product_product,set,,in_out,function,unicode,,"result=[('set',self.pool.get('magerp.product_attribute_set').extid_to_oeid(cr, uid, ifield, external_referential_id))]",
 
184
mag_1500_erp_prd_11,magento1500,product.model_product_product,special_price,,in_out,function,float,,"result = [('x_magerp_special_price',ifield)]",
 
185
mag_1500_erp_prd_12,magento1500,product.model_product_product,tier_price,,in_out,function,unicode,,result=[]#no mapping by default,result=[]#no mapping by default
 
186
mag_1500_erp_prd_13,magento1500,product.model_product_product,minimal_price,,in_out,function,float,,"result = [('x_magerp_minimal_price',ifield)]","
185
187
if record['x_magerp_minimal_price'] and record['x_magerp_minimal_price'] != 0:
186
188
    result = [('minimal_price',record['x_magerp_minimal_price'])]
187
189
else:
188
190
    result = [('minimal_price',False)]"
189
 
"mag_1500_erp_prd_14","magento1500","product.model_product_product","type_id","in_out","unicode","if ifield:
 
191
mag_1500_erp_prd_14,magento1500,product.model_product_product,type_id,,in_out,function,unicode,,"if ifield:
190
192
    product_type_ids  = self.pool.get('magerp.product_product_type').search(cr,uid,[('product_type','=',ifield)])
191
193
    if product_type_ids:
192
194
        result = [('product_type',ifield)]","if 'product_type' in record and record['product_type']:
193
195
    result = [('type_id',record['product_type'])]
194
196
else:
195
197
    result = [('type_id','simple')]"
196
 
"mag_1500_erp_prd_15","magento1500","product.model_product_product","websites","in_out","list","websites_ids = []
 
198
mag_1500_erp_prd_15,magento1500,product.model_product_product,websites,,in_out,function,list,,"websites_ids = []
197
199
for ext_id in ifield:
198
200
    websites_ids.append(self.pool.get('external.shop.group').extid_to_oeid(cr, uid, ext_id, external_referential_id))
199
201
 
213
215
    ext_websites_ids.append(self.pool.get('external.shop.group').oeid_to_extid(cr, uid, oe_id, external_referential_id))
214
216
 
215
217
result=[('websites', ext_websites_ids)]"
216
 
"mag_1500_erp_prd_16","magento1500","product.model_product_product","has_options","in","unicode","result =[('x_magerp_has_options',ifield)]",""
217
 
"magento_1500_cst_grp_1","magento1500","base.model_res_partner_category","customer_group_code","in","unicode","result=[('name',ifield)]",
218
 
"magento_1500_cst_grp_3","magento1500","base.model_res_partner_category","tax_class_id","in","int","result=[('tax_class_id',ifield)]",
219
 
"magento_1500_prt_adr_2","magento1500","base.model_res_partner_address","city","in_out","unicode","result=[('city',ifield)]",
220
 
"magento_1500_prt_adr_3","magento1500","base.model_res_partner_address","fax","in_out","unicode","result=[('fax',ifield)]",
221
 
"magento_1500_prt_adr_4","magento1500","base.model_res_partner_address","firstname","in_out","unicode","result = [('name', (data.get('company', False) and (data['company'] + ' ; ') or '') + ifield + ' ' + (data['lastname'] or '')), ('firstname', ifield), ('lastname', (data['lastname'] or ''))]",
222
 
"magento_1500_prt_adr_6","magento1500","base.model_res_partner_address","is_active","in_out","unicode","result=[('active',bool(eval(ifield)))]",
223
 
"magento_1500_prt_adr_7","magento1500","base.model_res_partner_address","country_id","in_out","unicode","result = self.pool.get('res.country').search(cr,uid,[('code','=',ifield)])
 
218
mag_1500_erp_prd_16,magento1500,product.model_product_product,has_options,,in,function,unicode,,"result =[('x_magerp_has_options',ifield)]",
 
219
magento_1500_cst_grp_1,magento1500,base.model_res_partner_category,customer_group_code,,in,function,unicode,,"result=[('name',ifield)]",
 
220
magento_1500_cst_grp_3,magento1500,base.model_res_partner_category,tax_class_id,,in,function,int,,"result=[('tax_class_id',ifield)]",
 
221
magento_1500_prt_adr_2,magento1500,base.model_res_partner_address,city,,in_out,function,unicode,,"result=[('city',ifield)]",
 
222
magento_1500_prt_adr_3,magento1500,base.model_res_partner_address,fax,,in_out,function,unicode,,"result=[('fax',ifield)]",
 
223
magento_1500_prt_adr_4,magento1500,base.model_res_partner_address,firstname,,in_out,function,unicode,,"result = [('name', (data.get('company', False) and (data['company'] + ' ; ') or '') + ifield + ' ' + data['lastname']), ('firstname', ifield), ('lastname', data['lastname'])]",
 
224
magento_1500_prt_adr_6,magento1500,base.model_res_partner_address,is_active,,in_out,function,unicode,,"result=[('active',bool(eval(ifield)))]",
 
225
magento_1500_prt_adr_7,magento1500,base.model_res_partner_address,country_id,,in_out,function,unicode,,"result = self.pool.get('res.country').search(cr,uid,[('code','=',ifield)])
224
226
if result and len(result)==1:
225
227
        result=[('country_id',result[0])]
226
228
else:
227
229
        result=[]
228
230
",
229
 
"magento_1500_prt_adr_8","magento1500","base.model_res_partner_address","street","in_out","unicode","if ifield:
 
231
magento_1500_prt_adr_8,magento1500,base.model_res_partner_address,street,,in_out,function,unicode,,"if ifield:
230
232
        if len(ifield.split('\n')) ==2 :
231
233
                result = [('street', ifield.split('\n')[0]) , ('street2', ifield.split('\n')[1])]
232
234
        else :
233
235
                result = [('street',ifield.replace('\\n',','))]
234
236
else:
235
237
        result = []",
236
 
"magento_1500_prt_adr_9","magento1500","base.model_res_partner_address","postcode","in_out","unicode","result=[('zip',ifield)]",
237
 
"magento_1500_prt_adr_10","magento1500","base.model_res_partner_address","telephone","in_out","unicode","result=[('phone',ifield)]",
238
 
"magento_1500_prt_adr_11","magento1500","base.model_res_partner_address","region","in_out","unicode","if ifield:
 
238
magento_1500_prt_adr_9,magento1500,base.model_res_partner_address,postcode,,in_out,function,unicode,,"result=[('zip',ifield)]",
 
239
magento_1500_prt_adr_10,magento1500,base.model_res_partner_address,telephone,,in_out,function,unicode,,"result=[('phone',ifield)]",
 
240
magento_1500_prt_adr_11,magento1500,base.model_res_partner_address,region,,in_out,function,unicode,,"if ifield:
239
241
        result = self.pool.get('res.country.state').search(cr,uid,[('name','ilike',ifield)])
240
242
        if result and len(result)==1:
241
243
                result = [('state_id',result[0])]
243
245
                result=[]
244
246
else:
245
247
        result=[]",
246
 
"magento_1500_prt_adr_13","magento1500","base.model_res_partner_address","customer_id","in_out","int","result=self.pool.get('res.partner').extid_to_oeid(cr,uid,ifield,external_referential_id)
 
248
magento_1500_prt_adr_13,magento1500,base.model_res_partner_address,customer_id,,in_out,function,int,,"result=self.pool.get('res.partner').extid_to_oeid(cr,uid,ifield,external_referential_id)
247
249
if result:
248
250
        result=[('partner_id',result)]
249
251
else:
250
252
        result=[('partner_id',False)]",
251
 
"magento_1500_prt_adr_14","magento1500","base.model_res_partner_address","address_type","in_out","unicode","if ifield=='billing':
 
253
magento_1500_prt_adr_14,magento1500,base.model_res_partner_address,address_type,,in_out,function,unicode,,"if ifield=='billing':
252
254
        result=[('type','invoice')]
253
255
elif ifield=='shipping':
254
256
        result=[('type','delivery')]
255
257
else:
256
258
        result=[]",
257
 
"magento_1500_prt_adr_15","magento1500","base.model_res_partner_address","email","in_out","unicode","result=[('email',ifield)]",
258
 
"magento_1500_prt_adr_16","magento1500","base.model_res_partner_address","prefix","in_out","unicode","if ifield:
 
259
magento_1500_prt_adr_15,magento1500,base.model_res_partner_address,email,,in_out,function,unicode,,"result=[('email',ifield)]",
 
260
magento_1500_prt_adr_16,magento1500,base.model_res_partner_address,prefix,,in_out,function,unicode,,"if ifield:
259
261
    title_ids = self.pool.get('res.partner.title').search(cr, uid, [('domain', '=', 'contact'), ('shortcut', '=', ifield)])
260
262
    if title_ids:
261
263
        title_id = title_ids[0]
262
264
    else:
263
265
        title_id = self.pool.get('res.partner.title').create(cr, uid, {'domain': 'contact', 'shortcut': ifield, 'name' : ifield})
264
266
    result=[('title', title_id)]",
265
 
"magento_1500_prt_2","magento1500","base.model_res_partner","group_id","in_out","int","if ifield:
 
267
magento_1500_prt_2,magento1500,base.model_res_partner,group_id,,in_out,function,int,,"if ifield:
266
268
        result=self.pool.get('res.partner.category').extid_to_oeid(cr,uid,ifield,external_referential_id)
267
269
        if result:
268
270
                result=[('group_id',result)]",
269
 
"magento_1500_prt_3","magento1500","base.model_res_partner","store_id","in_out","int","if ifield:
 
271
magento_1500_prt_3,magento1500,base.model_res_partner,store_id,,in_out,function,int,,"if ifield:
270
272
        result=self.pool.get('magerp.storeviews').extid_to_oeid(cr,uid,ifield,external_referential_id)
271
273
        if result:
272
274
                lang = self.pool.get('magerp.storeviews').browse(cr, uid, result).lang_id
273
275
                result=[('store_id',result),('lang',lang and lang.code or False)]",
274
 
"magento_1500_prt_4","magento1500","base.model_res_partner","website_id","in_out","int","if ifield:
 
276
magento_1500_prt_4,magento1500,base.model_res_partner,website_id,,in_out,function,int,,"if ifield:
275
277
        result=self.pool.get('external.shop.group').extid_to_oeid(cr,uid,ifield,external_referential_id)
276
278
        if result:
277
279
                result=[('website_id',result)]",
278
 
"magento_1500_prt_5","magento1500","base.model_res_partner","created_in","in_out","unicode","result=[('created_in',ifield)]",
279
 
"magento_1500_prt_6","magento1500","base.model_res_partner","created_at","in_out","unicode","result=[('created_at',ifield)]",
280
 
"magento_1500_prt_7","magento1500","base.model_res_partner","updated_at","in_out","unicode","result=[('updated_at',ifield)]",
281
 
"magento_1500_prt_8","magento1500","base.model_res_partner","firstname","in_out","unicode","result = [('name', ifield + ' ' + data['lastname'])]","add_id = self.browse(cr, uid, record['id'])
 
280
magento_1500_prt_5,magento1500,base.model_res_partner,created_in,,in_out,function,unicode,,"result=[('created_in',ifield)]",
 
281
magento_1500_prt_6,magento1500,base.model_res_partner,created_at,,in_out,function,unicode,,"result=[('created_at',ifield)]",
 
282
magento_1500_prt_7,magento1500,base.model_res_partner,updated_at,,in_out,function,unicode,,"result=[('updated_at',ifield)]",
 
283
magento_1500_prt_8,magento1500,base.model_res_partner,firstname,,in_out,function,unicode,,"result = [('name', ifield + ' ' + data['lastname'])]","add_id = self.browse(cr, uid, record['id'])
282
284
fn = add_id.address[0].firstname
283
285
ln = add_id.address[0].lastname
284
286
result=[('firstname', fn), ('lastname', ln)]"
285
 
"magento_1500_prt_10","magento1500","base.model_res_partner","email","in_out","unicode","result=[('emailid',ifield)]",
286
 
"magento_1500_prt_11","magento1500","base.model_res_partner","taxvat","in_out","unicode","if ifield:
 
287
magento_1500_prt_10,magento1500,base.model_res_partner,email,,in_out,function,unicode,,"result=[('emailid',ifield)]",
 
288
magento_1500_prt_11,magento1500,base.model_res_partner,taxvat,,in_out,function,unicode,,"if ifield:
287
289
        result=[('mag_vat',ifield)]
288
290
else:
289
291
        result=[]",
290
 
"magento_1500_prt_12","magento1500","base.model_res_partner","dob","in_out","unicode","if ifield:
 
292
magento_1500_prt_12,magento1500,base.model_res_partner,dob,,in_out,function,unicode,,"if ifield:
291
293
        result =[('mag_birthday',ifield[:10])]
292
294
else:
293
295
        result=[]",