[IMP] event_sale: extra QWeb report for printing event badges, with HTML fields for...
[odoo/odoo.git] / addons / event_sale / event_demo.xml
index ca55b66..8a55172 100644 (file)
         <field name="seats_max">5</field>
     </record>
 
+
+    <record id="event.event_1" model="event.event">
+            <field name="badge_back"><![CDATA[
+            <h2>Program</h2>
+            <div><strong>Registrations</strong><small> are from 8:30 am, except on Friday from 9:00 am</small></div>
+            <div>
+                <strong>Lunch</strong><small> is served between 1:00 pm and 2:00 pm.</small>
+            </div>
+            <h2>Special Events</h2>
+            <table style="border: 1px solid black;">
+                <tr style="border: 1px solid black;">
+                    <td class="text-center" width="15%"><strong>4/6</strong></td>
+                    <td class="text-center" width="25%"><strong>19h00</strong></td>
+                    <td><small>Barbecue Beer Event</small></td>
+                </tr>
+                <tr>
+                    <td class="text-center"><strong>5/6</strong></td>
+                    <td class="text-center"><strong>18h30</strong></td>
+                    <td><small>Odoo Awards Ceremony</small></td>
+                </tr>
+            </table>
+            <br/>
+            <div class="row">
+                <div class="col-xs-5">
+                <p>
+                    <i class="fa fa-twitter"/> #OpenDays
+                </p>
+                </div>
+                <div class="col-xs-6">
+                <div class="small">Wifi network: opendays</div>
+                <div class="small">Wifi password: odoo2014</div>
+                </div>
+            </div>
+            <div class="row">
+                <small class="col-xs-3" style="float: left; padding-right: 0px; padding-left: 0px;">sponsored by</small>
+                <div class="col-xs-2" style="padding-right: 0px; padding-left: 0px;">
+                <span>
+                    <img class="img img-responsive" src="https://www.odoo.com/openerp_website/static/src/img/logo_white.png"/>
+                </span>
+                </div>
+            </div>
+        ]]></field>
+            <field name="badge_innerleft"><![CDATA[
+            <h2>Premium Tickets</h2>
+            <table class="text-center">
+                <tr>
+                    <td width="10%"></td>
+                    <td width="10%" style="height:45px; width:110px; border-radius: 90px 90px 0 0; -moz-border-radius: 90px 90px 0 0; -webkit-border-radius: 90px 90px 0 0; background:lightgrey; text-align: -webkit-center; padding-top: 10px;"><div>Full</div><div> Catering</div></td>
+                    <td width="5%"></td>
+                    <td width="10%" style="height:45px; width:110px; border-radius: 90px 90px 0 0; -moz-border-radius: 90px 90px 0 0; -webkit-border-radius: 90px 90px 0 0; background:lightgrey; text-align: -webkit-center; padding-top: 10px;"><div>BBQ &amp;</div><div>Beer Event</div></td>
+                    <td width="5%"></td>
+                    <td width="10%" style="height:45px; width:110px; border-radius: 90px 90px 0 0; -moz-border-radius: 90px 90px 0 0; -webkit-border-radius: 90px 90px 0 0; background:lightgrey; text-align: -webkit-center; padding-top: 10px;"><div>Awards &amp;</div> <div>Walking</div><div> Dinner</div></td>
+                    <td width="10%"></td>
+                </tr>
+                <tr style="background:lightgrey; height: 15px;">
+                    <td colspan="7"></td>
+                </tr>
+                <tr style="background:lightgrey; height: 35px;">
+                    <td></td>
+                    <td>Every Day</td>
+                    <td colspan="3">June 4th</td>
+                    <td>June 5th</td>
+                    <td></td>
+                </tr>
+            </table>
+            <br/><br/>
+            <h2>Free Tickets</h2>
+            <table class="text-center">
+                <tr>
+                    <td width="10%"></td>
+                    <td width="10%" style="height:45px; width:110px; border-radius: 90px 90px 0 0; -moz-border-radius: 90px 90px 0 0; -webkit-border-radius: 90px 90px 0 0; background:lightgrey; text-align: -webkit-center; padding-top: 10px;"><div>Drinks</div></td>
+                    <td width="5%"></td>
+                    <td width="10%" style="height:45px; width:110px; border-radius: 90px 90px 0 0; -moz-border-radius: 90px 90px 0 0; -webkit-border-radius: 90px 90px 0 0; background:lightgrey; text-align: -webkit-center; padding-top: 10px;"><div>Premium</div><div>Ticket</div><div>onsite</div></td>
+                    <td width="25%"></td>
+                </tr>
+                <tr style="background:lightgrey; height: 15px;">
+                    <td colspan="5"></td>
+                </tr>
+                <tr style="background:lightgrey; height: 35px;">
+                    <td></td>
+                    <td>Every Day</td>
+                    <td></td>
+                    <td>60 €/day<div>30 €/Friday</div></td>
+                    <td></td>
+                </tr>
+            </table>
+        ]]></field>
+        <field name="badge_innerright"><![CDATA[ 
+            <div>
+                <h2>Exhibition Hall</h2>
+            </div>
+            <div>
+                Picture of the exhibition hall
+            </div>
+        ]]></field>
+    </record>
+
     </data>
 </openerp>