Merge PR #1421 into 12.0

Signed-off-by pedrobaeza
pull/1429/head
OCA-git-bot 2019-11-04 00:09:33 +00:00
commit 2598ca464f
2 changed files with 6 additions and 1 deletions

View File

@ -11,7 +11,7 @@ odoo.define('web_tree_image_tooltip.web_tree_image_tooltip',
var img_src = var img_src =
$(event.currentTarget).children('.img-fluid').attr('src') $(event.currentTarget).children('.img-fluid').attr('src')
$(event.currentTarget).tooltip({ $(event.currentTarget).tooltip({
title: "<img src="+img_src+" />", title: "<img src="+img_src+" class='tooltip_image' />",
delay: 0, delay: 0,
}).tooltip('show'); }).tooltip('show');
} }

View File

@ -1,3 +1,8 @@
.o_image_cell .o_field_image img{ .o_image_cell .o_field_image img{
width:30px; width:30px;
} }
.tooltip_image {
max-width:80vw;
max-height:80vh;
}