Skip to Content
Menu

下载文件动作

by
Odoo
v 16.0 Third Party 64
Download for v 16.0 Deploy on Odoo.sh
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 27
Technical Name web_download_action
LicenseLGPL-3
Versions 14.0 16.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 27
Technical Name web_download_action
LicenseLGPL-3
Versions 14.0 16.0

在odoo中经常遇到文件下载的需求,但是普通的按钮方法不能做到直接返回文件流实现下载功能 本插件新增了一个新的前端动作类型,可以通过返回文件流达到前端直接下载文件的需求 使用方法: def download_file(self):

# 文件流生成代码 return {

}

如有其他需求欢迎联系开发:624854240@qq.com

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.