Skip to content
Extraits de code Groupes Projets
Sélectionner une révision Git
  • 16.0
  • 10.0 par défaut protégée
  • 18.0
  • 17.0
  • 15.0
  • 14.0
  • 13.0
  • 12.0
8 résultats

__manifest__.py

Blame
  • main.py 583 o
    # © 2019 Le Filament (<http://www.le-filament.com>)
    # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
    import json
    
    from odoo import http
    from odoo.http import request
    
    
    class Main(http.Controller):
    
        @http.route(['/get_data_conso'], type='json', auth="user", website=True)
        def get_conso(self, operation_id, scale, **kw):
            values = operation_id.graph_view_conso(scale)
    
        @http.route(['/get_data_prod'], type='json', auth="user", website=True)
        def get_conso(self, operation_id, scale, **kw):
            values = operation_id.graph_view_prod(scale)