跳至內容
選單
此問題已被標幟
1 回覆
2785 瀏覽次數

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.


頭像
捨棄
最佳答案

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

頭像
捨棄
作者

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

相關帖文 回覆 瀏覽次數 活動
2
3月 15
8593
2
10月 22
2943
2
4月 22
7552
1
8月 25
591
1
7月 25
837