Skip to Content
Menu
This question has been flagged
1 Odpoveď
2805 Zobrazenia

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.


Avatar
Zrušiť
Best Answer

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

Avatar
Zrušiť
Autor

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">

Related Posts Replies Zobrazenia Aktivita
2
mar 15
8608
2
okt 22
2977
2
apr 22
7562
1
aug 25
653
1
júl 25
890