Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
629 Lượt xem

Hi, 


how can I adjust the position of the delivery address on a delivery note? 

we want to have this on the left side here:


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello,

  1. Activate Developer Mode
  2. Navigate to TechnicalViewsReport Delivery Document
  3.  Replace this bloc

<t t-set="address">
                    <div name="div_outgoing_address" style="width: 100%; display: flex; align-items: start;" >
                        <div name="outgoing_delivery_address" style="position: absolute; left: 40px; top: 0;" t-if="o.should_print_delivery_address()">
                            <strong>Delivery Address:</strong>
                            <div t-out="o.move_ids[0].partner_id or o.partner_id"
                                 t-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;, &quot;phone&quot;], &quot;no_marker&quot;: True, &quot;phone_icons&quot;: True}"/>
                        </div>
                        <div name="outgoing_warehouse_address" style="position: absolute; left: 40px; top: 0;" t-elif="o.picking_type_id.code != 'internal' and o.picking_type_id.warehouse_id.partner_id">
                            <strong>Warehouse Address</strong>
                            <div t-field="o.picking_type_id.warehouse_id.partner_id" t-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;, &quot;phone&quot;], &quot;no_marker&quot;: True, &quot;phone_icons&quot;: True}"/>
                        </div>
                    </div>
                    <br></br><br></br>
                </t>



Thanks

Ảnh đại diện
Huỷ bỏ
Tác giả

unfortunately this doesn't work.
also tried it with center, right and change of margin - unfortunately nothing happens!!
See image next answer

Hello,
try the edited answer !

Tác giả

ufortunatelly now my address is fully over WH/OUT...
give it a try with full adress block!

Just add more <br></br><br></br> at the end

Tác giả Câu trả lời hay nhất

try with above mentioned code. 

Ảnh đại diện
Huỷ bỏ

Hello,
try the edited answer !

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 12 24
2612
1
thg 9 24
3002
1
thg 4 23
10697
2
thg 9 15
4524
2
thg 3 15
6235