需要在openerp中自定义上传字段吗?

时间:2014-08-11 11:11:48

标签: python-2.7 openerp-7

我需要从openerp upload字段中删除save as按钮。有人可以帮助我。

enter image description here

1 个答案:

答案 0 :(得分:1)

首先走到路径下方。

7.0-web => addons => web => static => src => xml => base.xml

现在找到class="oe_form_binary_file_save_data"并评论整个<a> tag.

<!--a class="oe_form_binary_file_save_data">
    <button class="oe_button oe_form_binary_file_save" type="button" title="Save As">
        <img t-att-src='_s + "/web/static/src/img/icons/gtk-save.png"'/>
        <span>Save As</span>
    </button>
</a-->

刷新浏览器后,它将删除“另存为”按钮。