[MIG] hw_posbox_homepage : Migrated to new API.
This commit is contained in:
committed by
Yannick Tivisse
parent
bff6ef3c76
commit
f8fe26fe32
@@ -1,10 +1,8 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
|
||||
{
|
||||
'name': 'PosBox Homepage',
|
||||
'version': '1.0',
|
||||
'category': 'Point of Sale',
|
||||
'sequence': 6,
|
||||
'website': 'https://www.odoo.com/page/point-of-sale',
|
||||
@@ -23,5 +21,4 @@ regular openerp interface anymore.
|
||||
""",
|
||||
'depends': ['hw_proxy'],
|
||||
'installable': False,
|
||||
'auto_install': False,
|
||||
}
|
||||
|
||||
@@ -1 +1,4 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
import main
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
import logging
|
||||
import os
|
||||
import time
|
||||
import werkzeug
|
||||
import subprocess
|
||||
from os import listdir
|
||||
import werkzeug
|
||||
|
||||
import openerp
|
||||
from openerp import http
|
||||
from openerp.http import request
|
||||
from openerp.tools.translate import _
|
||||
import odoo
|
||||
from odoo import http
|
||||
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -67,7 +65,7 @@ index_template = """
|
||||
"""
|
||||
|
||||
|
||||
class PosboxHomepage(openerp.addons.web.controllers.main.Home):
|
||||
class PosboxHomepage(odoo.addons.web.controllers.main.Home):
|
||||
@http.route('/', type='http', auth='none', website=True)
|
||||
def index(self):
|
||||
#return request.render('hw_posbox_homepage.index',mimetype='text/html')
|
||||
|
||||
Reference in New Issue
Block a user