Skip to Content
Menu
This question has been flagged
2 Replies
4554 Views

Hello,


Never used delivery slips before, but suddenly found out that there is something wrong there:


below customer address there is part of code shown; I've checked ./stock/report/report_deliveryslip.xml file on two servers: one affected, and one where delivery slip is being printed correctly, and it seems files on both servers are same.

Could anyone advice what may be the reason / where to look to fix it?


regards

Tomasz

Avatar
Discard
Author Best Answer

what helped me was 'upgrade' of the stock module; after that all seems to be fine.


regards

Tomasz

Avatar
Discard
Best Answer

Hello,

You need to replace customer_address div in template: report_delivery_document  in ./stock/report/report_deliveryslip.xml

Copy this and replace

                 <div class="row" name="customer_address">
<div class="col-xs-4 pull-right">
<div>
<span><strong>Customer Address:</strong></span>
</div>
<div t-if="o.move_lines and o.move_lines[0].partner_id" name="partner_header">
<div t-field="o.move_lines[0].partner_id" t-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;, &quot;phone&quot;, &quot;fax&quot;], &quot;no_marker&quot;: True}"/>
</div>
<div t-if="not (o.move_lines and o.move_lines[0].partner_id) and o.partner_id" name="partner_header">
<div t-field="o.partner_id" t-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;, &quot;phone&quot;, &quot;fax&quot;], &quot;no_marker&quot;: True}"/>
</div>
</div>
</div>
Avatar
Discard
Related Posts Replies Views Activity
1
Mar 21
5805
0
Nov 24
8
0
Nov 24
142
2
Aug 24
942
2
Aug 24
481