I am beginner, my questions is... how show a binary.fields preview in new tab or pop-up?, my version is odoo-11, the files is any upload (docs, image, etc..) i see in module mail something but i not understand code.
i see more question for this, but in v11 don't work for me.
my code is simple:
.py:
fpath = fields.Binary(string='upload', attachment=True)
view.xml
<field name="fpath" filename="name" widget='binary'/>
thanks for you answers!!!
try this:
<field name="fpath" widget="image"/>