电子开票(EDI)¶
EDI,即电子数据交换,是指企业间以标准格式传输采购订单和发票等商业文件。按照 EDI 标准发送文件可确保接收方系统能够正确解读信息。根据企业所在国家/地区的不同,有多种 EDI 文件格式可供选择。
EDI 功能帮助企业实现行政管理流程自动化。部分国家政府出于财税管控或行政程序支持的目的,也可能要求使用 EDI。电子化发送客户发票、贷记单或供应商账单等文件就是 EDI 的一种应用场景。
Odoo 支持多个国家/地区的电子发票功能。具体详情请参考 各国/地区页面说明 。
更多内容
配置¶
默认情况下,发送窗口 中可用的格式取决于客户所在国家/地区。
若要为某个客户指定特定的电子发票格式,请前往 ,进入客户表单,切换到 会计 选项卡,在 客户发票 部分选择合适的 格式 。
电子发票生成¶
在已确认的发票上,点击 发送 。在 打印和发送 窗口中,启用相关的电子发票格式选项(例如 通过 Peppol),然后点击 发送 以生成并附加相应的电子发票 XML 文件。
Peppol¶
Peppol 网络确保了企业与政府机构之间的单据和信息交换。它主要用于电子发票,其接入点(连接至 Peppol 网络的连接器)使企业能够发送客户发票和贷记单等电子单据,并接收供应商账单和退款等单据。
在此场景下,Odoo 同时充当接入点和 SMP(服务元数据发布者) ,实现电子发票交易,无需再通过电子邮件或邮寄方式发送发票或账单。
注解
Peppol 注册在 Odoo 社区版中 免费 提供。
支持发送单据的格式包括 BIS Billing 3.0、XRechnung CIUS 和 NLCIUS。
- 以下 国家/地区 可以在 Odoo 中进行 Peppol 注册 :Albania, Andorra, Austria, Belgium, Bosnia and Herzegovina, Bulgaria, Croatia, Cyprus, Czech Republic, Denmark, Estonia, Finland, France, Germany, Greece, Holy See (Vatican City State), Hungary, Iceland, Ireland, Italy, Latvia, Liechtenstein, Lithuania, Luxembourg, Malta, Monaco, Montenegro, Netherlands, North Macedonia, Norway, Poland, Portugal, Romania, San Marino, Serbia, Slovakia, Slovenia, Spain, Sweden, Switzerland, Turkey, United Kingdom.
登记¶
To register on Peppol, go to and scroll down to the Electronic Invoicing section. Then, follow these steps:
Click Activate Peppol and fill in the following fields:
Select an identifying method for your company (VAT, company registry number, or the relevant option) and enter the related information.
Email.
Phone, including the country code (e.g.,
+32in Belgium).
点击 激活 Peppol 。随后注册状态将显示为“待激活”,并应能在一天内自动激活。
更多内容
Peppol 端点 - OpenPeppol eDEC 代码列表 (以 HTML 页面形式打开“参与者标识符方案”)
小技巧
To disconnect from Peppol, click Disconnect Peppol.
要手动触发用于检查 Peppol 注册状态的计划操作,请启用 开发者模式 ,打开设置应用,前往 ,搜索 Peppol:更新参与者状态 。打开该计划动作,然后点击 手动执行 。
To try Peppol without sending real data, enable demo mode by selecting Odoo Demo ID as the Peppol endpoint identifier. To switch back to production mode, deregister from the demo mode and register in production.
配置¶
Once Peppol is activated:
Go to , and scroll down to the Electronic Invoicing section.
By default, the Peppol Contact Email is automatically filled in using the company’s record. This email is used by Odoo to contact you for KYC purposes, information regarding your database, and other exceptional cases. It is recommended not to change this email.
Select the Peppol Participation Role:
Sending & Receiving: to both send and receive Peppol documents.
Sending Only: to send Peppol documents only.
If Sending & Receiving is selected as the Peppol Participation Role, define where Peppol documents should be received:
Recieve as Bills: If multiple purchase journals are used, select the journal where the bills should be posted in the Incoming Accounting Journal field.
Receive as Documents: Select the Document Folder where the Peppol documents should be stored and the Document Tags to assign to them.
注解
If you are using an access point from a previous provider, deregister from it before registering with the new access point. No action is required if the previous access point was Hermes (BOSA), as this migration is handled automatically.
联系验证¶
在使用 Peppol 向联系人发送发票前,请确保该联系人已注册为 Peppol 参与者。具体步骤如下:
前往 并进入客户表单。
在 会计标签页 的 客户发票 区域,检查以下信息:
电子发票格式 :选择相关格式。
使用 (向下箭头) 图标,确保在下拉列表中选择了相关的国家特定 Peppol 端点标识符,然后输入客户的端点标识符(通常为公司注册号或增值税号)。
要验证联系人,请启用 开发者模式 并点击 验证 。如果该联系人在 Peppol 网络中被找到,其 Peppol 端点验证 状态将标记为 有效 。
重要
尽管 Odoo 会根据联系人的可用信息预填端点编号,但仍建议与联系人核实这些详细信息。
发送发票¶
所有已过账且准备通过 Peppol 发送的发票,可以通过以下方式在 发票 列表视图中查看:
使用 ( 调整设置 )按钮添加 Peppol 状态 列。
在搜索栏中应用 Peppol 已就绪 筛选器。
要通过 Peppol 向客户发送发票,请点击已确认发票表格上的 发送 。在 发送 窗口,启用 通过 Peppol 选项,然后点击 发送 。
一旦发票成功传送到联系人的接入点,状态就会更新为 已完成 。
收到供应商账单¶
通过 Peppol 接收的新文件每天会被多次检查。根据 注册设置 ,接收到的文件会自动执行以下操作之一:
either imported into the purchase journal set in the Electronic Invoicing section, and corresponding vendor bills are created as drafts;
or received via the Documents app, in the folder set in the Electronic Invoicing section.
小技巧
要手动触发用于检索传入 Peppol 文档的计划任务,请启用 开发者模式 ,打开“设置”应用,进入 ,并搜索 Peppol:检索新文档 。打开该计划操作,然后点击 手动执行 。
在文档文件管理应用中接收供应商账单¶
注解
请确保 文件 - 从 Peppol 导入 (documents_account_peppol) 模块已 安装 。
要通过 文件管理 接收供应商账单,请按照以下步骤操作:
Open the Accounting app, go to , and scroll to the Electronic Invoicing section.
In the Document Folder field, choose the relevant folder.
使用 文档标签 字段为传入的 Peppol 文档添加标签,以便于识别。
点击 保存 。
然后,打开文件管理应用,导航至相应的文件夹,选择相关的供应商账单,并点击 创建供应商账单。随后,相应的供应商账单即被创建。
注解
还可以通过 Peppol 发送 自开票据。
添加额外字段¶
重要
添加字段需要使用 Studio 应用。
Odoo 默认支持最常见的 Peppol 字段,但在通过 Peppol 发送电子发票时,可以通过使用 Studio 向发票中 添加额外字段 来包含其他 Peppol 数据。
下表显示:
可以添加的额外 Peppol 字段。以下字段:
資料類型,在使用工作室新增欄位時 必須 符合欄位類型
使用工作室新增欄位時 必須 輸入的確切欄位標籤
重要
Odoo 使用新欄位的標籤自動產生欄位的技術名稱。為確保欄位的技術名稱格式正確,使用下方工作室欄位標籤欄中的確切文字至關重要。
Peppol 技術名稱(XML) |
資料類型 |
工作室欄位標籤 |
|
|---|---|---|---|
主發票 |
TaxPointDate |
日期 |
|
ContractDocumentReference.ID |
文本 |
|
|
DespatchDocumentReference.ID |
文本 |
|
|
AccountingCost |
文本 |
|
|
ProjectReference.ID |
文本 |
|
|
InvoicePeriodStartDate |
日期 |
|
|
InvoicePeriodEndDate |
日期 |
|
|
OrderReference.ID |
文本 |
|
|
发票行 |
OrderLineReference/LineID |
文本 |
|
item.buyersItemIdentification |
文本 |
|
要在发票表单视图或发票行列表视图中添加新字段,请按照以下步骤操作:
启用 开发者模式。
导航至(或,适用于发票用户)。
打开现有发票,或点击新建。
点击(切换工作室)图标打开工作室。
如果要在发票行列表视图中添加字段,请在发票行标签页中点击,然后点击编辑列表视图。
从左侧面板拖放文本或日期字段到右侧视图中的所需位置。
输入标签,完全按照上表中工作室字段标签列中显示的内容输入,然后在字段标签外点击,即可看到技术名称自动更新。
点击关闭以保存所有更改。
注解
Odoo 中的技术名称应与 x_studio_peppol_tax_point_date 的格式匹配。如果出错且技术名称不正确,请编辑技术名称。
小技巧
按照上述说明创建新字段后,可以将其添加到其他视图,例如发票列表视图。
特定国家/地区的电子发票详情¶
有关具体国家的详细信息,请参阅以下页面: