我正在尝试在Odoo网站上显示日历 请找到我的以下代码:
website_calendar_templates.xml
result.forEach(r => r.procedure.forEach(p => p.hospital.sort((a, b) => a.amountinINR - b.amountinINR)));
website_calendar_block.js
<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>
main.py:
(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');
}());
我在顶级菜单中添加了日历。点击日历时在我的网站页面中它呈现页面但不在网站上显示日历 任何人都可以帮我解决它。