Help

0

display problem of my report

Avatar
Maimouna
I installed the sh_payment_report-13.0.2 module but when I print the report at the second page level I have the first page which is superimposed on the second until the end
here is the qweb file

<?xml version="1.0"?>
<t t-name="sh_payment_report.sh_payment_report_doc">
        <t t-call="web.html_container">
            <t t-call="web.external_layout">
            <div class="page">
               <div class="oe_structure"/>

                   
                    <div class="row">
                        <div class="col-12 mx-auto">
                            <div class="text-center">
                                 <b>
                                     <h1>Invoice Payment Report</h1>
                                 </b>
                                
                                <b>
                                    <span t-esc="date_start"/>
                                    To
                                    <span t-esc="date_end"/>
                                </b>                           
                                               
                            </div>
                        </div>
                    </div>                   
                       
                    <br/><br/>                   
                   
                   
                    <t t-foreach="user_data_dic.keys()" t-as="user">
                        <center>
                            <b>
                                <span>Sale Person :</span>
                                <span t-esc="user"/>

                            </b>
                        </center>
                                
                            <table class="table table-condensed" style="border: 1px solid black;">
                                <thead>
                                    <tr style="border: 1px solid black;">                                   
                                        <th style="border: 1px solid black;" t-foreach="columns" t-as="c">
                                            <t t-esc="c"/>
                                        </th>
                                    </tr>
    
                                
                                    <t t-if="user_data_dic.get(user,False)">
                                        <t t-set="pay_list" t-value="user_data_dic.get(user).get('pay',[])"/>
                                            <t t-if="pay_list">
                                                <tr t-foreach="pay_list" t-as="p">
                                                    <td t-att-style="p.get('style','')" t-foreach="columns" t-as="c">
                                                       
                                                        <t t-if="c in ['Invoice','Invoice Date','Salesperson','Customer']">
                                                            <span t-esc="p.get(c,0)"/>
                                                        </t>                                       
                                                       
                                                        <t t-if="c not in ['Invoice','Invoice Date','Salesperson','Customer']">
                                                            <span t-esc="p.get(c,0)" t-esc-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: currency}"/>
                                                        </t>
                                                       
                                                    </td>
                                                </tr>   
                                            </t>
                                    </t>                          
                      
                                    <t t-if="user_data_dic.get(user,False)">
                                        <t t-set="grand_total" t-value="user_data_dic.get(user).get('grand_total',{})"/>
                                        <t t-if="grand_total">
                      
                                            <tr t-if="grand_total">
                                                <td style="border: 1px solid black;" t-foreach="columns" t-as="c">
                                                    <t t-if="c not in ['Invoice','Invoice Date','Salesperson','Customer']">
                                                        <span t-esc="grand_total.get(c,0)" t-esc-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: currency}"/>
                                                    </t>                                   
                                                   
                                                </td>
                                            </tr>  
                                           
                                       </t>
                                    </t>
                                                        
                                   
                                </thead>
                            </table>
                                  

                        </t>   
                        
                        
                        <!-- grand journal total -->
                        <t t-if="grand_journal_dic">
                       <br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
                       
                            <h6>Payment Method</h6>
                            <table class="table table-condensed">
                                <thead><tr>
                                    <th>Name</th>
                                    <th>Total</th>
                                </tr></thead>
                                <tbody>
                                    <t t-foreach="columns" t-as="c">
                                         <t t-if="c not in ['Invoice','Invoice Date','Salesperson','Customer','Total']">
                                            <tr t-if="grand_journal_dic.get(c,False)">
                                                <td><t t-esc="c"/></td>
                                                <td>
                                                    <span t-esc="grand_journal_dic.get(c,0.0)" t-esc-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: currency}"/>
                                                </td>
                                            </tr>                                            
                                         </t>                                  
                                    </t> 
                                   
                              
                                    <tr t-if="grand_journal_dic.get('Total',False)">
                                        <td>Total</td>
                                        <td>
                                            <span t-esc="grand_journal_dic.get('Total',0.0)" t-esc-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: currency}"/>
                                        </td>
                                    </tr>                                       
                              
                              
                              
                                    <tr t-if="grand_journal_dic.get('Refund',False)">
                                        <td>Refund</td>
                                        <td>
                                            <span t-esc="grand_journal_dic.get('Refund',0.0)" t-esc-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: currency}"/>
                                        </td>
                                    </tr> 
                                                                                                       
                                     
                                </tbody>
                            </table>                       
                        
                        </t>                   
                        
            </div>
        </t>
        </t>
    </t>
    
        
   
1 Comment
Avatar
Discard
Avatar
Ermin Trevisan
-

you may want to contact the author of the module.