Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
3811 Weergaven

<openerp>

<data>

<template id="website_calendar" name="Website Calendar">

<t t-call="website.layout">

<div id="wrap">

<t t-raw="0" />

<div class="oe_structure oe_empty" />

<section class="jumbotron mt16 mb16">

<div class="container">

<h1 class="text-center">Calendar</h1>

<table class="table table-bordered table-responsive">

<t t-set="week_days" t-value="request.env['booking.booking'].now_week()"/>

<t t-set="booking" t-value="request.env['calendar.event'].search([('name','=','Presentation for new Services')])"/>

<thead>

<tr>

<th class="text-center" colspan="7"><h2>HI: <t t-esc="week_days[0].isocalendar()[1]"/></h2>

</th>

</tr>

</thead>

<tbody>

<tr class="text-center">

<t t-foreach="week_days" t-as="d">

<td class="text-center"><h3 style="color: #888;" t-esc="d.strftime('%a')"/><br/>

<h1 t-esc="d.strftime('%d')"/><br/>

<h3 style="color: #444;" t-esc="d.strftime('%b')"/>

</td>

</t>

</tr>

<tr class="text-center">

<t t-foreach="week_days" t-as="d">

<td>

<t t-foreach="product.get_free_spots(d)" t-as="spot">

<a t-att-href="spot.url"><span t-field="spot.name"/></a><br/>

</t>

<span t-esc="request.env['booking.temp'].search([])[0].get_employee_calendar()"/>

</td>

</t>

</tr>

</tbody>

</table>

</div>

</section>

</div>

</t>

</template>

</data>

</openerp>

AttributeError: 'module' object has no attribute 'models'

Avatar
Annuleer

"Hi I am receiving an error on this code" is not a question, and forces people to open your post to understand what error you mean. Please edit your post and put the error in the title.

Post your .py file.

Gerelateerde posts Antwoorden Weergaven Activiteit
0
sep. 23
2424
0
sep. 23
2129
2
jun. 25
11682
1
nov. 22
9368
6
okt. 23
22751