Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <odoo>
- <data>
- <template id="report_delivery_orders">
- <t t-call="web.html_container">
- <t t-foreach="docs" t-as="doc">
- <h2><t t-esc="doc.name"/> - Delivery Order</h2>
- <p>Date: <t t-esc="doc.date"/></p>
- <p>Customer: <t t-esc="doc.partner_id.name"/></p>
- <p>State: <t t-esc="doc.state"/></p>
- <table>
- <thead>
- <tr>
- <th>Product</th>
- <th>Quantity</th>
- </tr>
- </thead>
- <tbody>
- <t t-foreach="doc.move_lines" t-as="line">
- <tr>
- <td><t t-esc="line.product_id.name"/></td>
- <td><t t-esc="line.product_uom_qty"/></td>
- </tr>
- </t>
- </tbody>
- </table>
- <p/>
- </t>
- </t>
- </template>
- <record id="action_delivery_orders_report" model="ir.actions.report">
- <field name="name">Delivery Orders</field>
- <field name="model">stock.picking</field>
- <field name="report_name">ModuleName.report_delivery_orders</field>
- <field name="report_type">qweb-pdf</field>
- <field name="binding_model_id" ref="stock.model_stock_picking"/>
- <field name="binding_type">report</field>
- </record>
- </data>
- </odoo>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement