Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
3 Vastaukset
7572 Näkymät

I have this in a table inside my Qweb view:

                        <td>
                            <span t-field="line.product_id.image_small"
                                t-field-options='{"widget": "image", "size": [64,64]}' />
                        </td>

However, the image is still being displayed at an enlarged size, to take up the space in the table cell.  This makes it blurry.  How do I keep it to the original size, or otherwise control the display dimensions?

Avatar
Hylkää
Paras vastaus

try this : 

<style>
    .openerp .Your_custom_class > img { height: 6000px; width: 10000px; }
    .openerp .oe_form .oe_form_field_image img { max-width:656px; max-height: 1056px; }
</style>

<field name="picture" widget="image" class="Your_custom_class"/>


Avatar
Hylkää
Paras vastaus

I'm having the same problem.....

Avatar
Hylkää
Paras vastaus

I'm having the same problem, Did you solve it? 

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
4
jouluk. 19
39448
2
kesäk. 24
12369
1
maalisk. 15
19637
3
heinäk. 25
8929
1
heinäk. 25
2261