Skip to Content
Menu
This question has been flagged
3 Replies
1627 Views

We had turned on Calendar/Email sync-ing, and we have 50 individuals (contacts) that came into our Odoo Contacts.  At the time, the Company was not created, and I would like to quickly associate all the individuals with the company I have now created.  Is there a way to do this besides going into the company contact and adding them one by one?


We are using Odoo 16

Avatar
Discard
Author

Ok - I will try this, but I did run into another issue that I can't seem to figure out.  While attempting to connect just one contact to a company - which I did that contact still did not show up with the company ID in the list view - I poked around and found that while I could make the association directly under the name of the contact to a company that that info was not filling the field in the "Sales & Purchase" tab.  How does that connection actually work?



Best Answer

With Odoo's advanced searching and filtering features, you might be able to update the contacts in bulk so that they are linked to the business.

Avatar
Discard
Best Answer

Hi,

You can do it by utilizing the mass editing feature in odoo list view, by default the company field is readonly in the tree view, so if you are using studio, you can remove the readonly attribute from the field, and if you don't have access to studio,

1.  enable developer mode

2. click on debugger button after opening the contacts tree view

3. click edit view: list

4. set readonly="0" for company_id field

5. refresh the view, select all the contacts, click on company field and enter the value

6. Once it is saved, bring back the readonly to 1




Thanks

Avatar
Discard
Best Answer

Hi,

Select the contacts that you want to modify in tree view. Export them from action -> export. Export the file as xlsx or csv which ever is convenient (don’t forget to export the company_id field). Then edit the file and give the value for company_id as required (id of the company you want). Then import the file from Favorite -> Import records. Click on Upload File button and choose the file and open. After choosing the necessary fields, click on Import button.

Regards

Avatar
Discard
Related Posts Replies Views Activity
2
Dec 24
136
1
Nov 24
201
1
Sep 24
453
2
Aug 24
464
3
Sep 24
1150