mirror of
https://github.com/c0de-archive/Odoo-Contact-Import.git
synced 2024-12-22 01:02:40 +00:00
Verbage change
This commit is contained in:
parent
ddd4da9d9d
commit
9c40cf260e
@ -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
|
||||
|
4
main.py
4
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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user