コード例 #1
0
ファイル: test_uninstall.py プロジェクト: Brahim820/odoo
def reload_registry():
    openerp.modules.registry.RegistryManager.new(
        common.get_db_name(), update_module=True)
コード例 #2
0
ファイル: test_uninstall.py プロジェクト: Brahim820/odoo
def cursor():
    return openerp.modules.registry.RegistryManager.get(common.get_db_name()).cursor()
コード例 #3
0
ファイル: test_uninstall.py プロジェクト: Brahim820/odoo
def get_module(module_name):
    registry = openerp.modules.registry.RegistryManager.get(common.get_db_name())
    return registry.get(module_name)
コード例 #4
0
ファイル: test_uninstall.py プロジェクト: Brahim820/odoo
def registry(model):
    return openerp.modules.registry.RegistryManager.get(common.get_db_name())[model]