Skip to Content
Menu
This question has been flagged

here is my code


<openerp>
<data>
    <report
        id="report_session"
        model="picking.orders"
        string="Picking Orders"
        name="picking.report_session_view"
        file="picking.report_session"
        report_type="qweb-pdf" />

    <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">
                        <div class="header" align="left">
                            <img t-if="doc.pick.picking_id.partner_id.company_id.logo" t-att-src="'data:image/png;base64,%s' % doc.pick.picking_id.partner_id.company_id.logo" style="max-height: 100px;"/>
                        </div>
              <div class="row">
                <div t-field="doc.pick.picking_id.partner_id.company_id"/>
                <div t-field="doc.new_picking_id"/>
              </div>
                   
                    <div class="table_view">
                            <style>
                                table, td, th {
                                     border-collapse: collapse;
                                    border: 1px solid black;
                                    align: left;
                                }
                                table{
                                    width:100%;
                                }
                            </style>
                            <table class="table table-condensed">
                              <thead>
                                <tr>
                                    <th><strong>SKU</strong></th>
                                    <th><strong>Product Name</strong></th>
                                    <th><strong>Quantity</strong></th>
                                    <th><strong>Current Quantity</strong></th>
                                    <th><strong>Location</strong></th>
                                </tr>
                              </thead>
                              <tbody>
                                  <tr>
                                      <td><span t-field="doc.pick.picking_id.move_lines.product_id.name"/></td>
                                      <td><span t-field="doc.pick.picking_id.move_lines.product_id.name"/></td>
                                      <td><span t-field="doc.pick.picking_id.move_lines.product_id.seller_qty"/></td>
                                      <td> <span t-field="doc.pick.picking_id.move_lines.product_id.qty_available"/></td>
                                      <td><span t-field="doc.pick.picking_id.move_lines.location_id.name"/></td>
                                  </tr>
                              </tbody>
                            </table>
                    </div>
                <div class="footer">
                        <ul class="list-inline">
                            <li>Page:</li>
                            <li><span class="page"/></li>
                            <li>/</li>
                            <li><span class="topage"/></li>
                        </ul>
                    </div>
                </div>   
               
                </t>
            </t>
        </t>
    </template>
</data>
</openerp>

Avatar
Discard
Related Posts Replies Views Activity
0
Apr 24
402
4
Nov 23
4253
0
Oct 23
378
0
Dec 22
1335
2
Dec 23
17353