有可用于上传网址和文件的ir.attachment模型,但我想上传图像,可以在上传表单UI-视图上查看。
有没有办法可以做到这一点,因为我还没有找到任何与Odoo V10相关的东西。

我们该如何解决这个问题呢?
发布于 2017-09-11 18:19:21
odoo应用程序在odoo应用程序页面上提供,请去扔这个网址,它可能会帮助你[https://apps.odoo.com/apps/modules/category/Extra%20Tools/browse?search=image+preview],如果这有助于你向上-请投票我的答案
发布于 2017-10-13 13:09:48
您可以尝试这样做:
将此代码添加到.py中
attachment = fields.Many2many("ir.attachment", string="Attachment")和.xml
<field name ="attachment" widget="many2many_binary"/>我希望它能为你工作。
https://stackoverflow.com/questions/46148687
复制相似问题