跳至內容
選單
此問題已被標幟
2 回覆
4936 瀏覽次數

I would like to add the shipping information (carrier, tracking number) to the invoice PDF report generated based on just sent delivery order. How can this be done?

I'm using Odoo 12 CE.


頭像
捨棄
最佳答案

Hi,

If the delivery order is made using the sale order then you can follow the steps below


<t t-foreach="request.env['stock.picking'].search([('origin', '=', o.origin),('state','=','done')])" t-as="obj">
<div class="col-xs-2" t-if="obj" id="shipment_id">
<strong>Shipment Information:</strong>
<p t-esc="obj['your required field from the delivery order']"/>
<p t-esc="obj['your required field from the delivery order']"/>
</div>
</t>
頭像
捨棄
作者

This code prints all shipments for the origin order (in my setup there are ofter multiple shipments per order). Is it possible to print the shipment details related to the current invoice only? Thank you!

最佳答案







Carrier Tracking:











頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
4月 25
3655
0
3月 24
1394
0
10月 22
2578
0
9月 22
1773
1
7月 22
5444