report_stock: print default_code if desired

develop
Andreas Osim 2021-05-25 08:14:29 +02:00
parent b219dc20f1
commit eb0f62d2cb
1 changed files with 6 additions and 0 deletions

View File

@ -209,6 +209,12 @@
</p> </p>
<p t-if="move_line.product_id.can_be_sold_unconfigured"> <p t-if="move_line.product_id.can_be_sold_unconfigured">
<span t-field="move_line.move_id.name"/> <span t-field="move_line.move_id.name"/>
<t t-if="move_line.product_id.default_code and move_line.product_id.material_type_id.print_default_code">
<strong>
<span t-field="move_line.product_id.default_code"/>
</strong>
<br/>
</t>
</p> </p>
<p t-if="o.picking_type_code == 'outgoing'"> <p t-if="o.picking_type_code == 'outgoing'">
<span t-field="move_line.product_id.sudo().description_pickingout"/> <span t-field="move_line.product_id.sudo().description_pickingout"/>