Skip to content
Extraits de code Groupes Projets
Valider 58a384c8 rédigé par Rémi - Le Filament's avatar Rémi - Le Filament
Parcourir les fichiers

[FIX] moment format

parent c9f54b90
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -669,12 +669,12 @@ odoo.define("oacc_portal_overview_cdc.canvas", function (require) { ...@@ -669,12 +669,12 @@ odoo.define("oacc_portal_overview_cdc.canvas", function (require) {
} }
// Disable buttons if first or last date // Disable buttons if first or last date
if (moment(this.last_day) >= moment(this.maxDate)) { if (moment(this.last_day, "dd/mm/yyyy") >= moment(this.maxDate, "dd/mm/yyyy")) {
$('button[id="next-period"]').prop("disabled", true); $('button[id="next-period"]').prop("disabled", true);
} else { } else {
$('button[id="next-period"]').prop("disabled", false); $('button[id="next-period"]').prop("disabled", false);
} }
if (moment(this.first_day) <= moment(this.minDate)) { if (moment(this.first_day, "dd/mm/yyyy") <= moment(this.minDate, "dd/mm/yyyy")) {
$('button[id="previous-period"]').prop("disabled", true); $('button[id="previous-period"]').prop("disabled", true);
} else { } else {
$('button[id="previous-period"]').prop("disabled", false); $('button[id="previous-period"]').prop("disabled", false);
......
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