Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
4928 Представления

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:











Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
апр. 25
3634
0
мар. 24
1376
0
окт. 22
2558
0
сент. 22
1760
1
июл. 22
5421