first import

This commit is contained in:
Valentin Lab
2015-01-28 11:59:35 +07:00
commit 36902ec12b
23 changed files with 489 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
## package holder
import main

View File

@@ -0,0 +1,36 @@
# -*- coding: utf-8 -*-
import logging
import openerp
import openerp.modules.registry
from openerp.modules import get_module_resource
from openerp.tools.translate import _
from openerp import http
from openerp.http import request, serialize_exception as _serialize_exception
_logger = logging.getLogger(__name__)
##
## Web Controllers
##
# class Main(http.Controller):
#
# @http.route('/{{name}}', type='http', auth="none")
# def index(self, s_action=None, db=None, **kw):
# return http.local_redirect('/web', query=request.params, keep_hash=True)
#
# @http.route([
# '/{{name}}/<xmlid>',
# '/{{name}}/<xmlid>/<version>',
# ], type='json', auth="user")
# def load_needaction(self, menu_ids):
# """ Loads needaction counters for specific menu ids.
#
# :return: needaction data
# :rtype: dict(menu_id: {'needaction_enabled': boolean, 'needaction_counter': int})
# """
# return request.session.model('ir.ui.menu').get_needaction_data(menu_ids, request.context)
#