mirror of
https://github.com/c0de-archive/Odoo-Contact-Import.git
synced 2025-08-11 01:08:45 +00:00
Verbage change
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
ERP Contact Import Tool
|
ERP Contact Import Tool
|
||||||
=======================
|
=======================
|
||||||
|
|
||||||
This utility fixes the contacts csv file for importing into the ERP
|
This utility fixes the contacts csv file for importing into our ERP (Odoo)
|
||||||
Specifically this utility will replace all the values in a csv column with a dictionary created through another csv file
|
Specifically this utility will replace all the values in a csv column with a dictionary created through another csv file
|
||||||
|
|
||||||
Copyright (c) 2016 David Todd (alopexc0de) https://c0defox.es
|
Copyright (c) 2016 David Todd (alopexc0de) https://c0defox.es
|
||||||
|
4
main.py
4
main.py
@@ -1,5 +1,5 @@
|
|||||||
# ERP Contact Import Tool
|
# ERP Contact Import Tool
|
||||||
# This utility fixes the contacts csv file for importing into the ERP
|
# This utility fixes the contacts csv file for importing into our ERP (Odoo)
|
||||||
# Specifically this utility is for the step of replacing the company names with their export_ids after the companies have been imported
|
# Specifically this utility is for the step of replacing the company names with their export_ids after the companies have been imported
|
||||||
|
|
||||||
# Copyright (c) 2016 David Todd (alopexc0de) https://c0defox.es
|
# Copyright (c) 2016 David Todd (alopexc0de) https://c0defox.es
|
||||||
@@ -28,7 +28,7 @@ config = {
|
|||||||
|
|
||||||
# Find the index number of a column in a row and return that
|
# Find the index number of a column in a row and return that
|
||||||
def find_index(row=None, col=None):
|
def find_index(row=None, col=None):
|
||||||
if ((row == None) | (col == None)) | ((type(row) != '') | (type(col) != '')):
|
if ((row == None) | (col == None)) | ((type(row) != type(str)) | (type(col) != type(str))):
|
||||||
raise ValueError('find_index requires both row and col to be set to strings')
|
raise ValueError('find_index requires both row and col to be set to strings')
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user