[IMP] add new module website_contract
bzr revid: chm@openerp.com-20130819143423-gjg6b11x41k3crse
This commit is contained in:
@@ -0,0 +1 @@
|
||||
import controllers
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
'name': 'Public References',
|
||||
'category': 'Website',
|
||||
'summary': 'Publish Your Public References',
|
||||
'version': '1.0',
|
||||
'description': """
|
||||
OpenERP Blog
|
||||
============
|
||||
|
||||
""",
|
||||
'author': 'OpenERP SA',
|
||||
'depends': ['website', 'project'],
|
||||
'data': [
|
||||
'views/website_contract.xml',
|
||||
],
|
||||
'qweb': ['static/src/xml/*.xml'],
|
||||
'installable': True,
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
import main
|
||||
@@ -0,0 +1,11 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from openerp.addons.web import http
|
||||
from openerp.addons.web.http import request
|
||||
|
||||
class website_project(http.Controller):
|
||||
|
||||
@http.route(['/projects/'], type='http', auth="public")
|
||||
def blog(self, **post):
|
||||
website = request.registry['website']
|
||||
return website.render("website_project.index", values)
|
||||
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
|
||||
<!-- Layout add nav and footer -->
|
||||
|
||||
<template id="footer_custom" inherit_id="website.layout" name="Custom Footer">
|
||||
<xpath expr="//body/header//ul[@id='top_menu']/li[last()]" position="before">
|
||||
<li><a href="/references/">References</a></li>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<!-- Page -->
|
||||
|
||||
<template id="index" name="Projects">
|
||||
<t t-call="website.layout">
|
||||
<t t-set="title">References</t>
|
||||
<div class="container">
|
||||
</div>
|
||||
</t>
|
||||
</template>
|
||||
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
<template id="index" name="Projects">
|
||||
<t t-call="website.layout">
|
||||
<t t-set="title">Blog</t>
|
||||
<t t-set="title">Projects</t>
|
||||
<div class="container">
|
||||
<div t-foreach="project_ids" t-as="project_id">
|
||||
<h4 t-field="project_id.name"/>
|
||||
|
||||
Reference in New Issue
Block a user