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

I would like to import products and assign a given supplier. Is that possible via CSV?

I have seen that the right field seems to be "seller_ids", but I do not know which value should be used in that field.

I have tried:

- the  database Id of the partner ("id" in "res_partner") and

- the external Id ("id" in "ir_model_data") and

- the external name ("name" in "ir_model_data")

without success.


Ideally I would like to use the "name" in "ir_model_data", not sure if that is possible or not.


This is the partner I am trying to use:


select * from res_partner where id=16;

id | name | company_id | comment | ean13 | create_date | color | image_small | image | date | street | city | display_name | zip | title | function | country_id | parent_id | supplier | ref | email | is_company | website | customer | fax | street2 | employee | credit_limit | write_date | active | tz | write_uid | lang | create_uid | image_medium | phone | mobile | type | use_parent_address | user_id | birthdate | vat | state_id | commercial_partner_id | notify_email | message_last_post | opt_out | signup_type | signup_expiration | signup_token | last_reconciliation_date | vat_subjected | debit_limit | section_id | zip_id | comercial

----+--------------------------------------------------+------------+---------+-------+----------------------------+-------+-------------+-------+------+---------------------------------------------------------------+----------+--------------------------------------------------+--------+-------+----------+------------+-----------+----------+-----+-------+------------+---------+----------+-----------------+---------+----------+--------------+----------------------------+--------+---------------+-----------+-------+------------+--------------+------------------+--------+---------+--------------------+---------+-----------+-----+----------+-----------------------+--------------+-------------------+---------+-------------+-------------------+--------------+--------------------------+---------------+-------------+------------+--------+-----------

16 | Shenzhen Goldkey Machinery & Equipment Co., Ltd. | 1 | | | 2015-05-31 07:48:07.053157 | 0 | | | | Shasan Shangxiawei 2nd Industry Park, Shajin, Bao'an District | Shenzhen | Shenzhen Goldkey Machinery & Equipment Co., Ltd. | 518125 | | | | | t | | | t | | f | 86-755-23016793 | | f | | 2015-05-31 07:50:41.200248 | t | Europe/Madrid | 1 | es_ES | 1 | | 86-755-23016793 | | contact | f | | | | | 16 | always | | f | | | | | t | | | |

 


select * from ir_model_data where res_id=16 and model='res.partner';

id | create_uid | create_date | write_date | write_uid | noupdate | name | date_init | date_update | module | model | res_id

-------+------------+----------------------------+----------------------------+-----------+----------+----------------------------+---------------------+---------------------+--------+-------------+--------

49308 | 1 | 2015-05-31 07:48:07.053157 | 2015-05-31 07:50:41.200248 | 1 | f | shenzhen_goldkey_machinery | 2015-05-31 07:48:07 | 2015-05-31 07:50:41 | | res.partner | 16

 

Avatar
Discard
Author Best Answer

Tidy Way answer helps a lot, but "Supplier/Supplier/Id. Externo" is what I have to choose from combo to use the External Id name. Now I understand a bit better how import works.

I am wondering how could I see which exact keywords should be used as CSV titles: Odoo displays localized names in the combo, so with my locale (es_ES) "Supplier/name" is converted into "Supplier/Supplier" and I can easily identify that what I want is "Supplier/Supplier/Id. Externo" but I do not know how can I get the CSV keyword for that "Supplier/Supplier/Id. Externo". 


Avatar
Discard
Best Answer

You can use "Supplier/name" to import supplier with product.

Hope this help you, for more info contact@tidyway.in 

Avatar
Discard
Related Posts Replies Views Activity
5
Dec 23
16190
2
Mar 15
8405
4
Dec 23
19838
1
Sep 19
2228
1
Mar 15
4056