[NameSpace] Odoo/OpenERP -> Flectra in *.xml/*.py

This commit is contained in:
Siddharth Bhalgami 2017-10-27 11:34:41 +05:30
parent 79e5ba3bb1
commit ec66961de6
14 changed files with 21 additions and 21 deletions

View File

@ -9,9 +9,9 @@ from flectra.tools import pycompat
class BusController(Controller):
""" Examples:
openerp.jsonRpc('/longpolling/poll','call',{"channels":["c1"],last:0}).then(function(r){console.log(r)});
openerp.jsonRpc('/longpolling/send','call',{"channel":"c1","message":"m1"});
openerp.jsonRpc('/longpolling/send','call',{"channel":"c2","message":"m2"});
flectra.jsonRpc('/longpolling/poll','call',{"channels":["c1"],last:0}).then(function(r){console.log(r)});
flectra.jsonRpc('/longpolling/send','call',{"channel":"c1","message":"m1"});
flectra.jsonRpc('/longpolling/send','call',{"channel":"c2","message":"m2"});
"""
@route('/longpolling/send', type="json", auth="public")

View File

@ -121,7 +121,7 @@ class ImDispatch(object):
current._Thread__daemonic = True # PY2
current._daemonic = True # PY3
# rename the thread to avoid tests waiting for a longpolling
current.setName("openerp.longpolling.request.%s" % current.ident)
current.setName("flectra.longpolling.request.%s" % current.ident)
registry = flectra.registry(dbname)

View File

@ -7,7 +7,7 @@
'version': '1.0',
'category': 'Extra Tools',
'description': """
The module adds the possibility to display data from Odoo in Google Spreadsheets in real time.
The module adds the possibility to display data from Flectra in Google Spreadsheets in real time.
=================================================================================================
""",
'depends': ['google_drive'],

View File

@ -4,7 +4,7 @@
from flectra import http
from flectra.tools import config
from flectra.addons.web.controllers import main as web
from openerp.addons.hw_posbox_homepage.controllers import main as homepage
from flectra.addons.hw_posbox_homepage.controllers import main as homepage
import logging
import netifaces as ni

View File

@ -1,7 +1,7 @@
from openerp.modules.registry import RegistryManager
from flectra.modules.registry import RegistryManager
def migrate(cr, version):
registry = RegistryManager.get(cr.dbname)
from openerp.addons.account.models.chart_template import migrate_tags_on_taxes
from flectra.addons.account.models.chart_template import migrate_tags_on_taxes
migrate_tags_on_taxes(cr, registry)

View File

@ -1,7 +1,7 @@
from openerp.modules.registry import RegistryManager
from flectra.modules.registry import RegistryManager
def migrate(cr, version):
registry = RegistryManager.get(cr.dbname)
from openerp.addons.account.models.chart_template import migrate_tags_on_taxes
from flectra.addons.account.models.chart_template import migrate_tags_on_taxes
migrate_tags_on_taxes(cr, registry)

View File

@ -1,7 +1,7 @@
from openerp.modules.registry import RegistryManager
from flectra.modules.registry import RegistryManager
def migrate(cr, version):
registry = RegistryManager.get(cr.dbname)
from openerp.addons.account.models.chart_template import migrate_set_tags_and_taxes_updatable
from flectra.addons.account.models.chart_template import migrate_set_tags_and_taxes_updatable
migrate_set_tags_and_taxes_updatable(cr, registry, 'l10n_fr')

View File

@ -1,6 +1,6 @@
from openerp.modules.registry import RegistryManager
from flectra.modules.registry import RegistryManager
def migrate(cr, version):
registry = RegistryManager.get(cr.dbname)
from openerp.addons.account.models.chart_template import migrate_tags_on_taxes
from flectra.addons.account.models.chart_template import migrate_tags_on_taxes
migrate_tags_on_taxes(cr, registry)

View File

@ -2,8 +2,8 @@
# Part of Odoo, Flectra. See LICENSE file for full copyright and licensing details.
from functools import partial
import openerp
from openerp import api, SUPERUSER_ID
import flectra
from flectra import api, SUPERUSER_ID
from . import models # noqa
from . import report # noqa

View File

@ -4,7 +4,7 @@ import os.path
from werkzeug import urls
from odoo.tools import pycompat
from flectra.tools import pycompat
"""
* adds github_link(mode) context variable: provides URL (in relevant mode) of

View File

@ -13,7 +13,7 @@ from docutils import nodes
from sphinx import addnodes, util
from sphinx.locale import admonitionlabels
from odoo.tools import pycompat
from flectra.tools import pycompat
def _parents(node):

View File

@ -749,7 +749,7 @@ class Module(models.Model):
raise AccessDenied()
try:
_logger.info('Downloading module `%s` from OpenERP Apps', module_name)
_logger.info('Downloading module `%s` from Flectra Apps', module_name)
response = requests.get(url)
response.raise_for_status()
content = response.content

View File

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from openerp.tests.common import TransactionCase
from flectra.tests.common import TransactionCase
class One2manyCase(TransactionCase):

View File

@ -26,7 +26,7 @@ from .osutil import walksymlinks
_logger = logging.getLogger(__name__)
# used to notify web client that these translations should be loaded in the UI
WEB_TRANSLATION_COMMENT = "openerp-web"
WEB_TRANSLATION_COMMENT = "flectra-web"
SKIPPED_ELEMENTS = ('script', 'style', 'title')