Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3 Odpowiedzi
7454 Widoki

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?

Awatar
Odrzuć
Najlepsza odpowiedź

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"/>


Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
4
gru 19
39193
2
cze 24
12177
1
mar 15
19453
3
lip 25
8642
1
lip 25
1937