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

In the POS order receipt generated by the Odoo POS module, the receipt is currently aligned to the left. I would like to know how to centre-align this. Odoo developers, could you please provide an answer to this question? Thank you.


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

Dear  Muhammad,

You can achieve this applying CSS style. Please add style=" margin-left: auto;margin-right: auto;" . If you need any adjustment please put values replacing auto and put percentage values like this margin-left: 1%;margin-right: 10%;.


If you need text align use style='text-align:center;'


Thank you

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

I applied this, and it was working before printing. However, after I print it, it automatically shifts to the left.

Please put this code inside your pos-receipt class
ex: <div class="pos-receipt" style="width: 100%;text-align:center">

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 3 15
8626
2
thg 10 22
2994
2
thg 4 22
7587
1
thg 8 25
666
1
thg 7 25
922