[WIP] website module

bzr revid: fme@openerp.com-20130624133654-35kgthhzzk2dr488
This commit is contained in:
Fabien Meghazi 2013-06-24 15:36:54 +02:00
parent 0b6b7d643d
commit b6aa736745
5 changed files with 554 additions and 0 deletions

View File

@ -0,0 +1 @@
import controllers

View File

@ -0,0 +1,14 @@
{
'name': 'Website',
'category': 'CMS',
'version': '1.0',
'description':
"""
OpenERP Website CMS
===================
""",
'author': 'OpenERP SA',
'depends': ['base'],
'installable': True,
}

View File

@ -0,0 +1,3 @@
import main
# vim:expandtab:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-
import openerp
from openerp.addons.web import http
from openerp.addons.web.http import request
class Website(openerp.addons.web.controllers.main.Home):
@http.route('/', type='http', auth="db")
def index(self, **kw):
with open(openerp.addons.get_module_resource('website', 'views', 'homepage.html'), 'rb') as f:
return f.read()
@http.route('/admin', type='http', auth="none")
def admin(self, *args, **kw):
return super(Website, self).index(*args, **kw)
# vim:expandtab:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -0,0 +1,517 @@
<!DOCTYPE html>
<html>
<head>
<base href="https://www.openerp.com"/>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>OpenERP - Beautiful Business Applications</title>
<link rel=icon href="/saas_master/static/site_new/img/favicon.ico">
<script src='/saas_master/static/site_new/js/lib/html5shiv.js'></script>
<script src="/web/static/lib/jquery/jquery-1.8.3.js"></script>
<script src="//cdn.optimizely.com/js/238505250.js"></script>
<link href='/saas_master/static/site_new/fonts/lato/stylesheet.css' rel='stylesheet' type='text/css'></link>
<link href='//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,400,300,600,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="/saas_master/static/site_new/css/normalize.css">
<link rel="stylesheet" href="/saas_master/static/site_new/css/common.css">
<link rel="stylesheet" href="/saas_master/static/site_new/css/website.css">
<link rel="stylesheet" href="/saas_master/static/site_new/css/font-awesome.css">
<script src="/web/static/lib/underscore/underscore.js"></script>
<script src="/web/static/lib/underscore/underscore.string.js"></script>
<script src='/saas_master/static/site_new/js/website.js'></script>
</head>
<body class="oe_styling_v8">
<div class='oe_website_contents'>
<header class='oe_website_header'>
<div class='oe_row oe_fit'>
<div class='oe_span3 oe_logo_menu'>
<a href='/' class='ab_menu_logo'>
<img class='oe_logo_img' alt='OpenERP: Open Source Business Apps' src='/saas_master/static/site_new/img/logo_oe_top_old_and_small.png'>
</a>
</div>
<nav class='oe_span9 oe_right oe_top_menu' id='top-menu'>
<div class='oe_top_menu_entry'><a class='ab_menu_apps' href='/apps'>Applications</a></div>
<div class='oe_top_menu_entry'><a class='ab_menu_partners' href='/partners/directory'>Partners</a></div>
<div class='oe_top_menu_entry'><a class='ab_menu_training' href="/events#view=training">Training</a></div>
<div class='oe_top_menu_entry'><a class='ab_menu_freetrial' href='/start'>Free Trial</a></div>
<div class='oe_top_menu_entry'><a class='ab_menu_download' href='/start?download'>Download</a></div>
<div class='oe_top_menu_entry'><a class='ab_menu_contact' href='/contact'>Contact Us</a></div>
<div class='oe_top_menu_entry oe_sign_in '><a class='ab_menu_signin' href='https://accounts.openerp.com'>Sign In</a></div>
</nav>
</div>
</header>
<section class='oe_hero oe_home_hero oe_container'>
<div class='oe_slider'>
<div class='oe_slide oe_home_slide'>
<div class='oe_row'>
<div class='oe_slide_title oe_title_font'><span class='oe_open'>Open</span><span class='oe_erp'>ERP</span><span class='oe_version'>7.0</span></div>
<div class='oe_slide_subtitle'>
Beautiful Business Applications<br />
Powerful, Integrated, Open Source<br />
<a href='/start' class='oe_button oe_medium oe_tacky ab_banner_freetrial'>Start your <span class='oe_emph'>free</span> trial <i class='icon-arrow-right'></i></a>
</div>
</div>
</div>
<div class='oe_slide oe_invisible oe_opendays_slide'>
<div class='oe_row'>
<div class='oe_titlebox'>
<div class='oe_title oe_title_font'>OpenDays</div>
<div class='oe_subtitle'>The Open Source event of the year</br>July 1-5, 2013</br><a class='oe_button ab_banner_events' href='http://opendays.openerp.com'>Agenda &amp; Registration</a></div>
</div>
</div>
</div>
</div>
<span class='oe_slider_arrow oe_left'><i class='icon-chevron-left'></i></span>
<span class='oe_slider_arrow oe_right'><i class='icon-chevron-right'></i></span>
<script>
$(function(){
var cur_slide = 0;
var slides = $('.oe_hero .oe_slider .oe_slide');
var slide_interval = null;
slides.each(function(index){
if(index === cur_slide){
$(this).removeClass('oe_invisible');
}else{
$(this).addClass('oe_invisible');
}
});
function show_slide(index){
index = index % slides.length;
index = index < 0 ? slides.length + index : index;
var $cur = $(slides.get(cur_slide));
var $nxt = $(slides.get(index));
$nxt.removeClass('oe_invisible');
if(cur_slide !== index){
$cur.addClass('oe_invisible');
}
cur_slide = index;
slideshow();
}
$('.oe_slider_arrow.oe_left').click(function(){
show_slide(cur_slide-1);
});
$('.oe_slider_arrow.oe_right').click(function(){
show_slide(cur_slide+1);
});
// (re)starts the slideshow with 10000 secs between slides
function slideshow(){
clearInterval(slide_interval);
slide_interval = setInterval(function(){
show_slide(cur_slide+1);
},10000);
}
// prevent the slide to disappear just as the user wants to click it
$('.oe_slider').mouseover(function(){ slideshow(); });
slideshow();
});
</script>
</section>
<!--[if lt IE 7]>
<p class="chromeframe">
You are using an <strong>outdated</strong> browser.
Please <a href="http://browsehappy.com/">upgrade your browser</a> or
<a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a>
to improve your experience.</p>
<![endif]-->
<article class='oe_page'>
<section class='oe_container'>
<h4 class='oe_slogan'>Choose Your Application</h4>
<div class='oe_row oe_appstore'>
<a href='/apps/crm/' title='CRM' class='oe_app ab_app_descr'>
<div class='ab_app_descr'>
<div class='oe_app_icon'>
<img src="/saas_master/static/site_new/img/icons/crm.png">
</div>
</div>
<div class='oe_app_name'>CRM</div>
<div class='oe_app_descr'>
Boost sales productivity, improve win rates, grow revenue
</div>
</a>
<a href='/apps/point_of_sale/' title='Point of Sale' class='oe_app ab_app_descr'>
<div class='ab_app_descr'>
<div class='oe_app_icon'>
<img src="/saas_master/static/site_new/img/icons/pos.png">
</div>
</div>
<div class='oe_app_name'>Point of Sale</div>
<div class='oe_app_descr'>
Touchscreen interface for shops
</div>
</a>
<a href='/apps/project/' title='Project Management' class='oe_app ab_app_descr'>
<div class='ab_app_descr'>
<div class='oe_app_icon'>
<img src="/saas_master/static/site_new/img/icons/projects.png">
</div>
</div>
<div class='oe_app_name'>Project Management</div>
<div class='oe_app_descr'>
Get things done, together
</div>
</a>
<a href='/apps/account/' title='Accounting' class='oe_app ab_app_descr'>
<div class='ab_app_descr'>
<div class='oe_app_icon'>
<img src="/saas_master/static/site_new/img/icons/accounting.png">
</div>
</div>
<div class='oe_app_name'>Accounting</div>
<div class='oe_app_descr'>
All you need to run your business
</div>
</a>
<a href='/apps/hr/' title='Human Resources' class='oe_app ab_app_descr'>
<div class='ab_app_descr'>
<div class='oe_app_icon'>
<img src="/saas_master/static/site_new/img/icons/hr.png">
</div>
</div>
<div class='oe_app_name'>Human Resources</div>
<div class='oe_app_descr'>
Manage people, the most important asset in your company
</div>
</a>
<a href='/apps/stock/' title='Warehouse' class='oe_app ab_app_descr'>
<div class='ab_app_descr'>
<div class='oe_app_icon'>
<img src="/saas_master/static/site_new/img/icons/warehouse.png">
</div>
</div>
<div class='oe_app_name'>Warehouse</div>
<div class='oe_app_descr'>
A revolutionary double entry inventory system
</div>
</a>
<a href='/apps/sale/' title='Sales' class='oe_app ab_app_descr'>
<div class='ab_app_descr'>
<div class='oe_app_icon'>
<img src="/saas_master/static/site_new/img/icons/sales.png">
</div>
</div>
<div class='oe_app_name'>Sales</div>
<div class='oe_app_descr'>
From quotes to invoices, in just a few clicks
</div>
</a>
<a href='/apps/mrp/' title='Manufacturing' class='oe_app ab_app_descr'>
<div class='ab_app_descr'>
<div class='oe_app_icon'>
<img src="/saas_master/static/site_new/img/icons/mrp.png">
</div>
</div>
<div class='oe_app_name'>Manufacturing</div>
<div class='oe_app_descr'>
Manage Bill of Materials, Plan Manufacturing Orders, Track Work Orders
</div>
</a>
<a href='/apps/purchase/' title='Purchase' class='oe_app ab_app_descr'>
<div class='ab_app_descr'>
<div class='oe_app_icon'>
<img src="/saas_master/static/site_new/img/icons/assets.png">
</div>
</div>
<div class='oe_app_name'>Purchase</div>
<div class='oe_app_descr'>
Automate procurements, control products and invoicing
</div>
</a>
</div>
<div class='oe_row'>
<div class='oe_span12 oe_centeralign'>
... <a id='app-more' href='/apps'>and 200 more applications</a> ...
</div>
</div>
</section>
<section class='oe_container oe_separator'></section>
<section class='oe_container'>
<div class='oe_row'>
<h2 class='oe_slogan'>
Trusted by millions worldwide
</h2>
<div class="oe_span6">
<div class="oe_quote">
<div class='oe_q'>
I'm surprised how easy I can get a whole view of my daily company's routine -
it helps me a lot, especially to make right business decisions.
</div>
<cite class="oe_cite oe_clearfix">
<img class="oe_photo" src="/saas_master/static/site_new/img/testimonials/Tomas-Parnarauskas.png">
<div class="oe_author">Tomas Parnarauskas</div>
<div class="oe_job">CEO of NOD Baltic, JSC.</div>
</cite>
</div>
</div>
<div class="oe_span6">
<div class="oe_quote">
<div class='oe_q'>
OpenERP provides essential platform for our project management.
Things are better organized and much more visible with it.
</div>
<cite class="oe_cite oe_clearfix">
<img class="oe_photo" src="/saas_master/static/site_new/img/testimonials/Yoshi-Tashiro.png">
<div class="oe_author">Yoshi Tashiro</div>
<div class="oe_job">Managing Director at RoomsFor (Hong Kong)</div>
</cite>
</div>
</div>
</div>
<div class="oe_row oe_flex oe_centeralign oe_mt64">
<div class="oe_span3 oe_fit">
<img src="/saas_master/static/site_new/img/logo_danone.png">
</div>
<div class="oe_span3 oe_fit">
<img src="/saas_master/static/site_new/img/logo_laposte.png">
</div>
<div class="oe_span3 oe_fit">
<img src="/saas_master/static/site_new/img/logo_canonical.png">
</div>
<div class="oe_span3 oe_fit">
<img src="/saas_master/static/site_new/img/logo_singer.png">
</div>
<div class="oe_span3 oe_fit">
<img src="/saas_master/static/site_new/img/logo_ena2.png">
</div>
</div>
<div class="oe_row">
<div class="oe_span12 oe_centeralign">
... <a href="/references/directory">and many more</a> ...
</div>
</div>
</section>
<section class='oe_container oe_dark'>
<!--<h3 class='oe_slogan'> And possibly here as well </h3>-->
<div class='oe_row'>
<h2 class='oe_slogan'>All your applications in one single solution</h2>
<h3 class="oe_slogan">Install new features on demand</h3>
<div class='oe_span6 oe_mt32'>
<p>
With thousands of business applications, get all the
features you need in <b>one single solution</b>.
</p><p>
Once you use OpenERP for one application, you get the
flexibility to deploy new apps, launch new departments or
integrate new activities in just a few clicks.
No need to train users, to configure the system or to integrate with
other applications.
</p>
</div>
<div class='oe_span6'>
<img class="oe_picture oe_screenshot" src="/saas_master/static/site_new/img/homepage/screenshot01.png">
</div>
</div>
</section>
<section class='oe_container'>
<div class='oe_row'>
<h2 class='oe_slogan'>Next Generation ERP Software</h2>
<h3 class='oe_slogan'>The advantages of ERPs, without the disadvantages</h3>
<div class='oe_span6'>
<img class="oe_picture oe_screenshot" src="/saas_master/static/site_new/img/homepage/screenshot02.png">
</div>
<div class='oe_span6'>
<p class="oe_mt32">
<b>Get all your business apps integrated</b> with each
others without having to buy a one-block, expensive, ERP
solution.
</p><p>
The more apps you install, the more your process becomes
integrated and automated.
</p>
</div>
</div>
</section>
<section class='oe_container oe_dark'>
<div class='oe_row'>
<h2 class='oe_slogan'>100% Open Source</h2>
<h3 class='oe_slogan'>No license cost, only quality services</h3>
<div class='oe_span6'>
<p class="oe_mt32">
OpenERP and all its modules are <b>fully open source</b>, released under the AGPL license.
All our dependencies are also open source to avoid any hidden cost.
</p><p>
Pay only for the maintenance service you get through OpenERP Enterprise.
</p>
</div>
<div class='oe_span6'>
<img class="oe_picture oe_screenshot" src="/saas_master/static/site_new/img/homepage/screenshot03.png">
</div>
</div>
</section>
<section class="oe_container oe_website_only">
<div class="oe_row">
<h2 class="oe_slogan">Try it for 15 days for free </h2>
<h3 class="oe_slogan">No commitment and no credit card required</h3>
<div class="oe_span6">
<p>
After your free trial an OpenERP Enterprise subscription gives you cloud access to
hundreds of other applications for just
35 &euro;
per user per month.
</p>
<p>
There is no limit to the amount of products or clients, no sale fee,
and you can close your subscription any time you want.
So why don't you start your free trial now ?
</p>
</div>
<div class="oe_span6">
<img class="oe_picture" src="/saas_master/static/site_new/img/apps/try_it_icon.png">
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_centeralign oe_more_spaced">
<a id='app-bottom' href="/start" class="ab_footer_freetrial oe_button oe_big">Start your <span class="oe_emph">free</span> trial</a>
</div>
</section>
</article>
</div>
<footer class="oe_website_footer">
<article class="oe_row">
<section class="oe_span3">
<h1>About Us</h1>
<ul id='footer-about'>
<li><a href="/events">Events</a></li>
<li><a href="/news">News</a></li>
<li><a href="/jobs">Jobs</a></li>
<li><a href="/contact">Contact</a></li>
<li><a href="/references/directory/">References</a></li>
<li class="oe_mt16"><a href="http://twitter.com/openerp"><i class="icon-twitter-sign"></i>Twitter</a></li>
<li><a href="http://www.facebook.com/OpenERP"><i class="icon-facebook-sign"></i>Facebook</a></li>
<li><a href="https://plus.google.com/+openerp/posts"><i class="icon-google-plus-sign"></i>Google+</a></li>
</ul>
</section>
<section class="oe_span3">
<h1>Developers</h1>
<ul id='footer-devs'>
<li><a href="/start?download">Download</a></li>
<li><a href="https://launchpad.net/openobject">Launchpad</a></li>
<li><a href="http://runbot.openerp.com">Automated Tests</a></li>
<li class="oe_mt16"><a href="https://bugs.launchpad.net/openobject-addons">Report a Bug</a></li>
<li><a href="http://doc.openerp.com/v6.1/contribute/07_improving_translations.html">Help Translate</a></li>
</ul>
</section>
<section class="oe_span3">
<h1>Services</h1>
<ul id='footer-services'>
<li><a href="/pricing">Pricing</a></li>
<li class="oe_mt16"><a href="/partners/directory">Find a Partner</a></li>
<li><a href="/partners">Become a Partner</a></li>
<li class="oe_mt16"><a href="/events#view=training">Training</a></li>
</ul>
</section>
<section class="oe_span3">
<h1>Documentation</h1>
<ul id='footer-doc'>
<li><a href="http://help.openerp.com">Get Help</a></li>
<li><a href="https://doc.openerp.com/">Documentation</a></li>
<li class="oe_mt16"><a href="http://www.amazon.com/s/ref=nb_sb_noss_1?url=search-alias%3Dstripbooks&field-keywords=Openerp&rh=n%3A283155%2Ck%3AOpenerp">Paper Books</a></li>
<li><a href="/ebooks">Free E-Books</a></li>
<li><a href="http://doc.openerp.com/memento/OpenERP_Technical_Memento_latest.pdf">Developer Memento</a></li>
<li><a href="http://www.slideshare.net/openobject/presentations">Presentations</a></li>
</ul>
</section>
</article>
<article class="oe_row">
<div class="oe_span12">
<h1>Offices</h1>
</div>
<section class="oe_span6 oe_fit">
<h2 class="fn org oe_span6">Europe/Africa</h2>
<div class="oe_clearfix">
<div class='oe_span3'>
<ul class="vcard">
<li class="oe_small adr">
<p><strong>Sales Office</strong></p>
<span class="street-address">Avenue Edmond Van Nieuwenhuyse, 5 (Serenitas building)</span>
<span class="postcode">1160</span>
<span class="locality">Brussels</span>,
<span class="country-name">Belgium</span>
</li>
<li class="tel"><a href="tel:+32 2 290 34 90"><i class="icon-phone"></i>+32 2 290 34 90</a></li>
</ul>
</div>
<div class='oe_span3'>
<ul class="vcard oe_span3">
<li class="oe_small adr">
<p><strong>Services & R&D</strong></p>
<span class="street-address">Chaussée de Namur, 40</span>
<span class="postcode">1367</span>
<span class="locality">Grand-Rosière</span>,
<span class="country-name">Belgium</span>
</li>
<li class="tel"><a href="tel:+32 81 81 37 00"><i class="icon-phone"></i>+32 81 81 37 00</a></li>
<li class="fax"><a href="fax:+32 81 73 35 01"><i class="icon-fax"></i>+32 81 73 35 01 (fax)</a></li>
</ul>
</div>
</div>
</section>
<section class="oe_span3 vcard">
<h2 class="fn org">Americas</h2>
<ul>
<li class="oe_small adr">
<p><strong>Sales, Services</strong></p>
<span class="street-address">260 Main Street</span>,
<span class="post-office-box">Suite 203</span>
<span class="locality">Redwood City</span>,
<span class="region">CA</span>
<span class="postal-code">94063</span>,
<span class="country-name">United States</span>
</li>
<li class="tel"><a href="tel:+1(650)307-6736"><i class="icon-phone"></i>+1(650)307-6736</a></li>
</ul>
</section>
<section class="oe_span3 vcard">
<h2 class="fn org">Asia Pacific</h2>
<ul>
<li class="oe_small adr">
<p><strong>Sales, Services, R&D</strong></p>
<span class="street-address">16 / 17, IT Tower 1 Infocity Gate - 1</span>
<span class="locality">Gandhinagar</span> -
<span class="postal-code">382007</span>,
<span class="region">Gujarat</span>
<span class="country-name">India</span>
</li>
<li class="tel"><i class="icon-phone"></i><a href="tel:+91(79)40 500 100">+91(79)40 500 100</a></li>
</ul>
</section>
</article>
</footer>
</body>
</html>