[FIX] view_form: Fixed the issue of attachment was not added in any other language, because action URL was getting translated.

bzr revid: chm@openerp.com-20130402144039-y0xoaijds4ipw7g0
This commit is contained in:
Christophe Matthieu
2013-04-02 16:40:39 +02:00
+1 -1
View File
@@ -650,7 +650,7 @@
<li t-if="section.name == 'files'" class="oe_sidebar_add_attachment">
<t t-call="HiddenInputFile">
<t t-set="fileupload_id" t-value="widget.fileupload_id"/>
<t t-set="fileupload_action">/web/binary/upload_attachment</t>
<t t-set="fileupload_action" t-translation="off">/web/binary/upload_attachment</t>
<input type="hidden" name="model" t-att-value="widget.dataset and widget.dataset.model"/>
<input type="hidden" name="id" t-att-value="widget.model_id"/>
<input type="hidden" name="session_id" t-att-value="widget.session.session_id"/>