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

[UPD] pre-commit

parent 04ae3a2c
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
# Copyright 2023 Le Filament (<http://www.le-filament.com>) # Copyright 2023 Le Filament (<http://www.le-filament.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import http from odoo import _, http
from odoo.http import request from odoo.http import request
# from odoo.addons.portal.controllers.portal import CustomerPortal as CustomerPortal # from odoo.addons.portal.controllers.portal import CustomerPortal as CustomerPortal
...@@ -38,7 +38,6 @@ class CustomerPortal(CustomerPortal): ...@@ -38,7 +38,6 @@ class CustomerPortal(CustomerPortal):
website=True, website=True,
) )
def pmo(self, operation, **kw): def pmo(self, operation, **kw):
render_values = self._get_operation_values(operation) render_values = self._get_operation_values(operation)
render_values.update( render_values.update(
self._get_data_date(render_values.get("isDataCdc"), operation) self._get_data_date(render_values.get("isDataCdc"), operation)
...@@ -62,7 +61,6 @@ class CustomerPortal(CustomerPortal): ...@@ -62,7 +61,6 @@ class CustomerPortal(CustomerPortal):
website=True, website=True,
) )
def consumer(self, operation, **kw): def consumer(self, operation, **kw):
render_values = self._get_operation_values(operation) render_values = self._get_operation_values(operation)
render_values.update( render_values.update(
...@@ -93,7 +91,6 @@ class CustomerPortal(CustomerPortal): ...@@ -93,7 +91,6 @@ class CustomerPortal(CustomerPortal):
website=True, website=True,
) )
def productor(self, operation, **kw): def productor(self, operation, **kw):
render_values = self._get_operation_values(operation) render_values = self._get_operation_values(operation)
render_values.update( render_values.update(
...@@ -131,7 +128,7 @@ class CustomerPortal(CustomerPortal): ...@@ -131,7 +128,7 @@ class CustomerPortal(CustomerPortal):
date_start=None, date_start=None,
date_end=None, date_end=None,
data_type=None, data_type=None,
**kw **kw,
): ):
""" """
This route is called : This route is called :
......
...@@ -39,7 +39,6 @@ class AccOperation(models.Model): ...@@ -39,7 +39,6 @@ class AccOperation(models.Model):
# Business methods # Business methods
# ------------------------------------------------------ # ------------------------------------------------------
def get_values_init_graph(self): def get_values_init_graph(self):
self.ensure_one() self.ensure_one()
values = {} values = {}
......
...@@ -15,7 +15,10 @@ ...@@ -15,7 +15,10 @@
Vue Globale Vue Globale
</a> </a>
</li> </li>
<li class="nav-item" t-if="isPmo or isConsumer or isAdmin or isSuperAdmin"> <li
class="nav-item"
t-if="isPmo or isConsumer or isAdmin or isSuperAdmin"
>
<a <a
t-attf-href="/operation/#{slug(operation)}/consumer" t-attf-href="/operation/#{slug(operation)}/consumer"
t-att-class="'nav-link %s' % ('active' if page_name == 'conso' else '')" t-att-class="'nav-link %s' % ('active' if page_name == 'conso' else '')"
...@@ -23,7 +26,10 @@ ...@@ -23,7 +26,10 @@
Mon suivi conso Mon suivi conso
</a> </a>
</li> </li>
<li class="nav-item" t-if="isPmo or isProductor or isAdmin or isSuperAdmin"> <li
class="nav-item"
t-if="isPmo or isProductor or isAdmin or isSuperAdmin"
>
<a <a
t-attf-href="/operation/#{slug(operation)}/productor" t-attf-href="/operation/#{slug(operation)}/productor"
t-att-class="'nav-link %s' % ('active' if page_name == 'prod' else '')" t-att-class="'nav-link %s' % ('active' if page_name == 'prod' else '')"
......
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