Skip to content
Extraits de code Groupes Projets
Valider cb7063b2 rédigé par Benjamin's avatar Benjamin
Parcourir les fichiers

[add] couleurs table runway

parent 4088d335
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -59,6 +59,14 @@ odoo.define('lefilament_tdb.dashboard', function(require) { ...@@ -59,6 +59,14 @@ odoo.define('lefilament_tdb.dashboard', function(require) {
value = value.toLocaleString('fr', { maximumFractionDigits: 2 }); value = value.toLocaleString('fr', { maximumFractionDigits: 2 });
return value; return value;
}, },
render_decimal_runway: function(value) {
if (value < 3)
value = '<td class="negative">'+value.toLocaleString('fr', { maximumFractionDigits: 2 }) + '</td>';
else
value = '<td>'+value.toLocaleString('fr', { maximumFractionDigits: 2 }) + '</td>';
return value;
},
}); });
......
...@@ -66,9 +66,9 @@ ...@@ -66,9 +66,9 @@
</tr> </tr>
<tr> <tr>
<th>Runway</th> <th>Runway</th>
<td t-foreach="widget.request" t-as="t"> <t t-foreach="widget.request" t-as="t">
<t t-esc="widget.render_decimal(t['runway'])"></t> <t t-raw="widget.render_decimal_runway(t['runway'])"></t>
</td> </t>
</tr> </tr>
</tbody> </tbody>
</table> </table>
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter