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

16.0 change perimeter notification

parent 9378b837
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -70,6 +70,8 @@ class AccOperation(models.Model):
return AccessError(_("You are not allowed to call perimeter API"))
view_id = self.env.ref("oacc.acc_logs_form").id
if self.env.user.has_group("oacc.group_operation_superadmin"):
return {
"name": "LOGS",
"view_type": "form",
......@@ -83,6 +85,20 @@ class AccOperation(models.Model):
"flags": {"initial_mode": "view"},
}
return {
'type': 'ir.actions.client',
'tag': 'display_notification',
'params': {
'title': _('Actualisation du périmètre.'),
'type': 'info',
'message': "Le périmètre de l'opération a bien été mis à jour dans les onglets 'Points d'injection' et 'Points de soutirage'.",
'sticky': True,
'next': {
'type': 'ir.actions.act_window_close',
}
}
}
def _get_monthly_enedis_data(self, from_cron):
return self._perimeter(from_cron)
......
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