Files
odoo_source/addons/stock/controllers/main.py
T
Fabien Meghazi dfa4d92eca [IMP] changed barcode start page url to /stock/barcode
As a convention we use the module name as first fragment of the url
2014-07-16 10:25:53 +02:00

17 lines
447 B
Python

# -*- coding: utf-8 -*-
import logging
from openerp import http
from openerp.http import request
_logger = logging.getLogger(__name__)
class BarcodeController(http.Controller):
@http.route(['/stock/barcode/'], type='http', auth='user')
def a(self, debug=False, **k):
if not request.session.uid:
return http.local_redirect('/web/login?redirect=/stock/barcode/')
return request.render('stock.barcode_index')