Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

What should be used in "seller_ids" field to specify a given supplier while importing products? Is it possible to use the "external id"?

By
E.M.
on 5/31/15, 4:20 AM 464 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

 

0
E.M.
On 5/31/15, 5:23 AM

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". 


0
Tidy Way
On 5/31/15, 4:39 AM

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

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 5/31/15, 4:20 AM
Seen: 464 times
Last updated: 5/31/15, 5:23 AM