From 9c40cf260ede3c82f42a5e325d76eae2ef6ed6cf Mon Sep 17 00:00:00 2001 From: David Todd Date: Tue, 26 Apr 2016 12:33:50 -0500 Subject: [PATCH] Verbage change --- README.md | 2 +- main.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 61fcb05..8665a7c 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ 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 Copyright (c) 2016 David Todd (alopexc0de) https://c0defox.es diff --git a/main.py b/main.py index 759e444..230b91d 100644 --- a/main.py +++ b/main.py @@ -1,5 +1,5 @@ # 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 # 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 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') exit(1)