【发布时间】:2014-07-15 09:38:56
【问题描述】:
我正在尝试将 OpenERP 7.0 与我所在机构的现有文件托管系统集成。为此,我会向用户展示一个上传表单,然后通过 web 服务将此文件发送到主机,并在远程服务器上取回文件的 id 并将其存储在 OpenERP 数据库中,以及一些其他信息,例如文件名称、描述和上传日期/时间,例如...
在我看来,我必须(全部或部分)构建一个 Web 客户端才能做到这一点,而我对这个想法并不完全放心,所以我对这个主题有很多问题。请有人可以给我一些例子或指出正确的方向(我已经在谷歌上搜索了几个星期,但仍然没有找到关于这个主题的任何信息)。
我的问题是:
1 - How do I present the upload form in xml? (I'm guessing that if I use the field.binary() in my model, the <input type="file" /> will be shown in the client, but then, the file will be stored in OpenERP database, and that's not what I want...)
2 - How do I contact the remote service and receive his response (both upload and download files)
3 - How do I build the view in XML to download files?
非常感谢在这件事上提供帮助的人!
【问题讨论】:
标签: web-services file-upload integration openerp xml-rpc