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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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:
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
1
thg 4 25
|
3692 | ||
|
0
thg 3 24
|
1424 | ||
|
0
thg 10 22
|
2599 | ||
|
0
thg 9 22
|
1791 | ||
|
1
thg 7 22
|
5486 |