def LocalService(name):
 assert odoo.conf.deprecation.allow_local_service
 _logger.warning(("LocalService() is deprecated since march 2013 (it was called with '%s')." % name))
 if (name == 'workflow'):
  return odoo.workflow
 if name.startswith('report.'):
  report = odoo.report.interface.report_int._reports.get(name)
  if report:
   return report
  else:
   dbname = getattr(threading.currentThread(), 'dbname', None)
   if dbname:
    registry = odoo.registry(dbname)
    with registry.cursor() as cr:
     return registry['ir.actions.report.xml']._lookup_report(cr, name[len('report.'):])

def LocalService ( name ) : assert odoo . conf . deprecation . allow_local_service _logger . warning ( ( "LocalService() is deprecated since march 2013 (it was called with '%s')." % name ) ) if ( name == 'workflow' ) : return odoo . workflow if name . startswith ( 'report.' ) : report = odoo . report . interface . report_int . _reports . get ( name ) if report : return report else : dbname = getattr ( threading . currentThread ( ) , 'dbname' , None ) if dbname : registry = odoo . registry ( dbname ) with registry . cursor ( ) as cr : return registry [ 'ir.actions.report.xml' ] . _lookup_report ( cr , name [ len ( 'report.' ) : ] )
the odoo .