[FIX] sale_stock: fix quantity available widget display
Issue - Runbot (or install every modules needed) - Sales > Any order (or create a new one) - Enable all columns - Remove all lines then add a line - Select any product The "i" icon container is not large enough so it's partially hidden but if you resize the window, it will be corrected. Cause Since there is no icon (display none) before selecting the product, the _freezeColumnWidths method computes the width without the icon When selecting the product, the icon is added but the width is not adjusted. Solution Change d-none to invisible so that, the icon is there but not visible and the width computation will be correct OPW-2269665 closes odoo/odoo#52840 X-original-commit: 0058ba467e7cf2f1bb0b8f606c7d4559897a31c4 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com> Signed-off-by: Jason Van Malder (jvm) <jvm@odoo.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<templates>
|
||||
<div t-name="sale_stock.qtyAtDate">
|
||||
<div t-att-class="!widget.data.display_qty_widget ? 'd-none' : ''">
|
||||
<div t-att-class="!widget.data.display_qty_widget ? 'invisible' : ''">
|
||||
<t t-if="widget.data.virtual_available_at_date < widget.data.qty_to_deliver and !widget.data.is_mto">
|
||||
<a tabindex="0" class="fa fa-info-circle text-danger"/>
|
||||
</t>
|
||||
|
||||
Reference in New Issue
Block a user