导入供应商价目表¶
设置供应商价格,以便在添加产品后自动在询价单(RFQ)或采购订单(PO)中填入单价,从而减少错误并节省时间。
在 Odoo 中,供应商价目表可以 在产品表单上单独添加,或 通过 XLSX 或 CSV 文件批量导入。
重要
在上传供应商价目表之前,请查看此 导入指南 。
在产品表单¶
要在产品表单上手动添加供应商价格,请转到
,然后点击所需的产品。注解
产品表单可通过多个应用程序访问,如 销售、库存 和 制造。
在产品表单的 采购 选项卡中,输入供应商及其价格,以便每次列出产品时都能在询价时自动填充这些信息。

导入供应商价目表¶
要导入供应商价目表,请确保 XLSX 或 CSV 文件填写准确。要获得格式正确的模板(包括产品名称、引用和供应商详细信息),最好的方法是首先 从数据库导出价格表。
根据需要修改导出文件,然后将其导入 Odoo 数据库。
导出价目表¶
要导出价目表,请转到
。在页面上,勾选所需供应商价目表的复选框。
然后,点击出现的 操作 按钮,并从下拉菜单中选择 导出。

在弹出的窗口中,要导出的字段 部分中列出的字段将包含在导出文件中。要添加更多字段,请在 可用字段 部分找到所需字段,然后点击字段右侧的 (加号) 图标。
注解
要更新现有记录,请勾选 我想更新数据(兼容导入导出)`复选框,并参考 :ref:`外部 ID <purchase/products/external-id> 字段。
有关导入供应商价目表常用字段的详细信息,请参阅 常见字段 部分。
选择所需的 导出格式:XLSX 或 CSV。
要将选定字段保存为模板,请点击 模板 字段,并从下拉菜单中选择 新模板。键入新模板的名称,然后点击 (保存) 图标。之后,点击 模板 字段时,该模板将成为一个可选项。
最后,点击 导出。
注解
打开 开发者模式 后,导出文件的列名将显示 字段名称 和括号中的 技术名称。
Example

以 XLSX 格式导出供应商价目表。它包括 产品模板 和 待导出字段 部分中的其他字段。¶
外部ID¶
外部 ID 是用于更新现有供应商价目表的唯一标识符。如果没有它,导入的记录将创建新条目,而不是更新现有条目。在 XLSX 或 CSV 中包含此字段,表示该行替换了 Odoo 数据库中的现有供应商价目表。
Example

Ready Mat
appears twice because the external ID was omitted during the price update from
$790
to $780
.¶
To look-up the External ID for a vendor pricelist, tick the I want to update data (import-compatible export) checkbox at the top of the Export Data pop-up window.
注解
Selecting External ID from the Available fields section with the I want to update data (import-compatible export) checkbox ticked results in an export file with two columns containing the external ID.
Common fields¶
Below is a list of commonly-used fields when importing vendor pricelists:
字段名称 |
Used for |
Field in Odoo database |
Technical name of field |
---|---|---|---|
供应商 |
The only required field for creating a vendor pricelist record. This field specifies the vendor associated with the product. |
Vendor field in the vendor pricelist of the product form. |
|
产品模板 |
供应商价目表条目相关的 Odoo 产品。 |
供应商价目表中的 产品 字段。 |
|
数量 |
以指定价格接收产品所需的最小数量。 |
供应商价目表中的 数量 字段。(如果不可见,请点击 (调整) 图标,然后勾选 :guilabel:` 数量` 复选框,启用该选项) |
|
单价 |
从供应商处购买产品的价格。 |
供应商价目表中的 价格 字段。 |
|
交货提前时间 |
Number of days before receiving the product after confirming a purchase order. |
Delivery Lead Time field on the vendor pricelist. |
|
序列 |
Defines the order of vendors in the pricelist when multiple vendors are available. For
example, if |
无 |
|
公司 |
Name of company the product belongs to. |
Company field in the vendor pricelist. |
|
Unique ID of a record used to update existing vendor pricelists. |
无 |
|
导入记录¶
With a template downloaded, fill out the XLSX or CSV file with the necessary information. After inputting everything, import the file back into the Odoo database, by going to
.On the page, click the (gear) icon in the top-left corner. In the drop-down menu that appears, click Import records.
Then, click Upload File in the upper-left corner, and after selecting the XLSX or CSV file, confirm the correct fields, and click Import.

Formatting import file¶
To understand how to format import files for vendor pricelists, consider the following example.
Storage Box
(Reference:E-COM08
) is sold byWood Corner
for$10
.Large Desk
(Reference:E-COM09
) has no records in the vendor pricelist.
An import file is created to do the following:
Update the price for
Wood Corner
from$10
to$13
.Add pricelist for
Storage Box
: the vendor,Ready Mat
intends to sell the product for$14
.Add pricelist for
Large Desk
: vendor isWood Corner
, price is$1299
.Add pricelist for
Large Desk
: vendor isAzure Interior
, price is$1399
.
id |
company_id |
delay |
price |
product_tmpl_id |
顺序 |
partner_id |
---|---|---|---|---|---|---|
product.product_supplierinfo_3 |
My Company (San Francisco) |
3 |
13.00 |
[E-COM08] 储存盒 |
4 |
Wood Corner |
My Company (San Francisco) |
3 |
14.00 |
[E-COM08] 储存盒 |
5 |
Ready Mat |
|
My Company (San Francisco) |
2 |
1299.00 |
[E-COM09] 大书桌 |
6 |
Wood Corner |
|
My Company (San Francisco) |
4 |
1399.00 |
[E-COM09] 大书桌 |
7 |
Azure Interior |
注解
技术字段名称 用于创建此信息。