Skip to Content
Menu
This question has been flagged
2 Replies
1258 Views

Hi,


I have created a custom model via the web interface to be used with the CRM Leads. This model is very simple and only contains 2 custom fields (code and description).


When importing leads using the import from file functionality, I want to be able to provide one or more "code" values separated by commas to be attached to the imported lead.


When manually creating/modifying leads, I can correctly link the custom model items to the lead. When using the import from file functionality, I can only link the records in the custom model to the lead by using the External IDs or Database IDs in the CSV, and making sure the "matching with subfields" is checked on the import page.


Lets say we have 2 records in the custom model:

Code

DescriptionDatabase ID

557799

Some description here1023
993355Some other description1024


How can I ensure that I can import the leads with a column in the CSV named "code" and with the value of "557799,993355" and have it correctly map to the custom model items? Right now, it only works when using "1023,1024" as value and then configuring the import to map it to the custom model database ID field.


Thanks in advance!

Avatar
Discard
Best Answer

Hi  Rob Reus,

I think this video can help you: https://www.youtube.com/watch?v=etMYrOJyaiU&list=PLSKcWRTtEl5qzvRaI-VTGavfReiHS_EEb&index=2 (starting at 16:00 in this video)


Avatar
Discard
Author Best Answer

That video is about an app that costs 1200 euros, that is not really an option for me. I know how to code python, so I am also okay with making a custom solution for this. I just need some pointers on where to start as the docs are lacking in this area and I am not yet familiar with the odoo codebase.

Avatar
Discard

Hi Rob Reus,

I think you should contact the module author to ask. In the module description I see a contact email.

Related Posts Replies Views Activity
1
Nov 24
951
4
Nov 18
7675
1
Mar 15
3900
0
Mar 15
3742
1
Feb 24
1558