Community mailing list archives

community@mail.odoo.com

Re: Add product description to Picking Report

by
Serpent Consulting Services Pvt. Ltd., Jay Vora
- 12/31/2015 08:40:19
Hello Mustafa,

Do this.
<template id="report_delivery2" inherit_id="stock.report_picking">
<xpath expr="//div[@class='page']/table[@t-if='not o.pack_operation_ids']/thead/tr/th" position="after">
                  <th><strong>Description</strong></th> 
            </xpath>
            <xpath expr="//div[@class='page']/table[@t-if='not o.pack_operation_ids']/tbody/tr[@t-foreach='o.move_lines']/td" position="after">
<td>[<span t-field="move.product_id.name"/>]<span t-field="move.product_id.description"/></td>
</xpath>
<xpath expr="//div[@class='page']/table[@t-if='o.pack_operation_ids']/thead/tr/th" position="after">
                  <th><strong>Description</strong></th> 
            </xpath>
            <xpath expr="//div[@class='page']/table[@t-if='o.pack_operation_ids']/tbody/tr[@t-foreach='o.pack_operation_ids']/td" position="after">
<td>[<span t-field="move.product_id.name"/>]<span t-field="move.product_id.description"/></td>
</xpath>
        </template>


From: Mustafa Al Azaam <safi2266@gmail.com>
Date: Wed, Dec 30, 2015 at 9:48 PM
Subject: Add product description to Picking Report
To: Community <community@mail.odoo.com>


Hi, 

When creating a picking, I want to add the part description to the picking report. Right now, only the product name is showing.

How do I add that information?

Thanks

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe





--

The Splendid journey of 4 years in Numbers
---
Regards,
----------------------------------------------------------------------------------------------------------------------------
Jay Vora
Managing Director


 
Direct: +91-9879354457
Office: +91-9033472982
Skype: jaynvora
Twitter : jaynvora
   
-------------------------------------------------------------------------------------------------
Visit our website : http://www.serpentcs.com
Please consider the environment before printing this email