odoo-website


Calendar in Odoo Website V10


I'm trying to display calendar in Odoo website
Please find my below code:
website_calendar_templates.xml
<template id="website_calendar_assets_frontend" inherit_id="website.assets_frontend" name="Calendar block assets">
<xpath expr="." position="inside">
<script type="text/javascript" src="/website_calendar/static/lib/date/js/date.js"></script>
<script type="text/javascript" src="/website_calendar/static/src/js/website_calendar_block.js"></script>
<script type="text/javascript" src="/website_calendar/static/lib/fullcalendar/js/fullcalendar.js"></script>
</xpath>
</template>
<template id="index" name="calendar">
<t t-call="website.layout">
<div id="wrap">
<div class="oe_structure"/>
<div class="container">
<div class="calendar">
</div></div><div class="oe_structure"/></div>
</t>
</template>
website_calendar_block.js
(function () {//odoo.define('website_calendar.website', function(require) {//"use strict";
'use strict';
var website = openerp.website;
var _t = openerp._t;
website.ready().then(function () { website.if_dom_contains('div.calendar', function ($el) { var $calendar = $el.find('.calendar');
}());
main.py:
class WebsiteCalendarController(http.Controller):
#http.route(['/calendar'], type='http', auth="public", website=True)
def calendar(self ,page=1, **searches):
#return request.redirect("website_calendar.index",values)
return request.render('website_calendar.index', {'values': [""]})
I have added Calendar in Top Menu . when click on calendar In my website page it render the page but doesn't display calendar in website
can anyone please help me to resolve it .

Related Links

Calendar in Odoo Website V10

Categories

HOME
hyperlink
jmx
knitr
seo
nsbundle
tail
visual-studio-emulator
square
iis-6
angularfire2
pkcs#11
enthought
mxgraph
jsonpath
libc
flash-player
mongodb-csharp
do-while
video-editing
mapstruct
production
nim
connector
scriptella
onload
itunes
bulletphysics
corpus
android-things
openmdao
winpe
google-cast
dotspatial
gitlab-api
login-script
twos-complement
android-maps-extensions
pop3
modalviewcontroller
yowsup
protege4
reason
google-knowledge-graph
zoomify
flatmap
nohup
linq-to-objects
urlsession
knime
facebook-social-plugins
servermanager
lightning
google-cse
singleinstance
page-replacement
payara-micro
android-testing
ngmaterial
mouseleave
pybrain
android-instrumentation
vcloud-director-rest-api
stripe-connect
stax
hclust
dimension
lua-telegram-bot
data-protection
user-management
phpgrid
maybe
gocql
phonertc
vacuum
dronekit-android
apache-commons-daemon
rapidsvn
nodelist
android-cookiemanager
metatrader5
mdichild
fpdi
dsym
twitter-bootstrap-rails
syndicationfeed
sphinxql
rolify
cmmi
kaleidoscope
pclzip
actiondispatch
jquery-blockui
paginator
infobright
role
luajava
dot-emacs
build-environment
cldc
wysiwym
lemmatization

Resources

Encrypt Message