Odoo Help


Odoo9: Binary field takes a lot of spave in the view

Vale Trood
on 4/30/16, 9:13 AM 590 views


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        

--Ahmed M.Elmubarak--

Ahmed M.Elmubarak
On 5/1/16, 3:06 AM


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"?>
<t t-extend="FieldBinaryFile">
<t t-jquery="span:contains('Select')" t-operation="replace">
<t t-jquery="span:contains('Save As')" t-operation="replace">
<t t-jquery="span:contains('Clear')" t-operation="replace">

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 ;)

Vale Trood
on 5/1/16, 1:51 PM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 4/30/16, 9:13 AM
Seen: 590 times
Last updated: 5/1/16, 1:51 PM