data importing using csv

Asked by Bushair

Hi,
I was trying to import some data using .csv file for the partners code ,partner name and partner city.

i have the following data in my csv file

Code,Name,City
1,"LOCAL",""
2,"MASHAIL AL QASER","DAMMAM"
4,"ERSAL COMMUNICATION","DAMMAM"
5,"SILVER PHONE","RIYADH"
7,"Stock item",""
10,"SAMSUNG",""
14,"MASHAIL AL KHALEEJ","DAMMAM"
19,"NADI-ITASALTH","RIYADH"

After importing the above csv file , i can see the Partners Code and Name of the partners in the partners list.

That is partners name and code is updated ,but not City.
The city filed is Empty.

i have selecte the following fields from the Form-Partners

Code
Name
City.

Can you please tell me why the City is not updated with the above data available in the .csv file.

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Server (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
Vinay Rana (OpenERP)
Solved:
Last query:
Last reply:
Revision history for this message
Best Vinay Rana (OpenERP) (vra-openerp) said :
#1

Hello Bushair,

City is available in res.partner.address object which one2many relation in res.partner object so you can not one2many field from partner object directly instead you need yo go to partner address form and from there you will able to import city with partner reference.
This way you can do your task very easily.

Hope this will help you.
Thanks.

Revision history for this message
Bushair (bushairka) said :
#2

Hi,
Thank you very much for the information

Thanks
Bushair