This question has been flagged
2 Replies
4032 Views

Hi, when creating a picking, I want to add the part description the picking report. Right now, only the part number is showing.

How do I add that information?

Thanks

Avatar
Discard
Best Answer

Hi.
By qweb template is a shortcut of ir.ui.view, can use the inheritance of view.

<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>


Hope this help
Avatar
Discard