<?xml version="1.0" encoding="UTF-8"?>                                                    
<openerp>                                                                                 
    <data> 
     
<!--report definition -->                                                                           
       <report                                                                           
        id="report_session"                                                               
        model="openacademy.session"                                                       
        string="Session Report"                                                           
        name="openacademy.report_session_view"                                            
        file="openacademy.report_session"                                                 
        report_type="qweb-pdf" />               
     
   <!--report template-->                                                            
       <template id="report_session_view">                                               
           <t t-call="report.html_container">                                            
            <t t-foreach="docs" t-as="doc">                                              
                <!--<t t-call="report.external_layout">-->                               
                    <div class="page">                                                   
                        <h2 t-field="doc.name"/>                                         
                        <p>From <span t-field="doc.start_date"/> to <span t-field="doc.end_date"/></p>
                                                                                          
                                                                                                                                                                         
                                                                                         
                                                                                                                 
                                                                                         
                       <h3>Attendees:</h3>                                               
                        <ul>                                                             
                            <t t-foreach="doc.attendee_ids" t-as="attendee">             
                                <li><span t-field="attendee.name"/></li>
                           </t>                                                         
                        </ul>                                                            
                    </div>                                                               
                                                                                        
            <!--</t>-->
        </t>                                                                  
        </t>                                                                             
       </template>                                                                       
    </data>                
   </openerp>                                                            
                                                   
                                                                                                            
                                                                                           
                                                      
                          
                                     
                                                             
                                                         
 
 
 







                                                                                                                                                       
     

<?xml version="1.0" encoding="UTF-8"?>                                                    
<openerp>                                                                                 
    <data> 
     
<!--report definition -->                                                                           
       <report                                                                           
        id="report_session"                                                               
        model="openacademy.session"                                                       
        string="Session Report"                                                           
        name="openacademy.report_session_view"                                            
        file="openacademy.report_session"                                                 
        report_type="qweb-pdf" />               
     
   <!--report template-->                                                            
       <template id="report_session_view">                                               
           <t t-call="report.html_container">                                            
            <t t-foreach="docs" t-as="doc">                                              
                <!--<t t-call="report.external_layout">-->                               
                    <div class="page">                                                   
                        <h2 t-field="doc.name"/> 
                        <h2 t-field="doc.course_id.name"/>                                        
                        <p>From <span t-field="doc.start_date"/> to <span t-field="doc.end_date"/></p>
                                                                                          
                                                                                                                                                                         
                                                                                         
                                                                                                                 
                                                                                         
                       <h3>Attendees:</h3>                                               
                        <ul>                                                             
                            <t t-foreach="doc.attendee_ids" t-as="attendee">             
                                <li><span t-field="attendee.name"/></li>
                                <li><span t-field="attendee.email"/></li>
                           </t>                                                         
                        </ul>                                                            
                    </div>                                                               
                                                                                        
            <!--</t>-->
        </t>                                                                  
        </t>                                                                             
       </template>                                                                       
    </data>                
   </openerp>                                                            
                                                   
                                                                                                            
                                                                                           
                                                      
                          
                                     
                                                             
                                                         
 
 
 







                                                                                                                                                       
     

Add course_id.name and attendee.email into report
[REF] openacademy: Add course_id.name and attendee.email into report
