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