تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
2833 أدوات العرض

Hello!!

Friends, i am using a binary field.

The problem is that the field takes me a lot of space in the view so that the other fields are coming outside the sheet.

So that i want to eliminate the word "Save, Upload, and Download.

I want to inherit the idget and eliinate those words. Just keep the icons.

Can anyone help me know how can i minimise the size of this widget in the view..

Thank you        

الصورة الرمزية
إهمال
أفضل إجابة

Hello,

In your_module/static/src/xml ... put an xml file contains: [add this file to the __openerp__.py in the 'qweb' key]

<?xml version="1.0" encoding="UTF-8"?>
<templates>
<t t-extend="FieldBinaryFile">
<t t-jquery="span:contains('Select')" t-operation="replace">
<span></span>
</t>
<t t-jquery="span:contains('Save As')" t-operation="replace">
<span></span>
</t>
<t t-jquery="span:contains('Clear')" t-operation="replace">
<span></span>
</t>
</t>
</templates>


This will extend the template and eliminate the words [Save As, Clear, and Select] from the widget ...

Hope this could helps  & works


الصورة الرمزية
إهمال
الكاتب

Thanks a lot my friend ;)

المنشورات ذات الصلة الردود أدوات العرض النشاط
9
سبتمبر 20
44112
1
أكتوبر 24
844
1
مارس 25
4646
0
يناير 24
3963
2
سبتمبر 24
3146