Skip to content
Extraits de code Groupes Projets
Valider 236e1c03 rédigé par Benjamin - Le Filament's avatar Benjamin - Le Filament
Parcourir les fichiers

[UPD] add ALL button

parent 1c1119ac
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -27,6 +27,8 @@ class CustomerPortal(CustomerPortal):
"date_year_end": False,
}
vals["data_values"].update(operation.get_date_min_max())
return vals
@http.route(
......@@ -114,11 +116,7 @@ class CustomerPortal(CustomerPortal):
@http.route(
["/chart/update_json"],
type="json",
auth="public",
methods=["POST"],
website=True,
csrf=False,
type="json", auth="public", methods=["POST"], website=True, csrf=False,
)
def chart_update_json(
self,
......
......@@ -178,6 +178,16 @@
>
Cette année
</button>
<button
t-att-value="{'first_day': data_values['date_min'] or '', 'last_day': data_values['date_max'] or ''}"
name="all"
class="btn btn-primary btn-period"
title="Tout"
aria-label="Tout"
data-mode="month"
>
Tout
</button>
</div>
<!-- Daterange picker -->
<div class="input-group daterange-content">
......
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