Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
4897 Vizualizări

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.


Imagine profil
Abandonează
Cel mai bun răspuns

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>
Imagine profil
Abandonează
Autor

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!

Cel mai bun răspuns







Carrier Tracking:











Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
apr. 25
3584
0
mar. 24
1331
0
oct. 22
2515
0
sept. 22
1730
1
iul. 22
5404