Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
1946 Widoki

Hi,

how can I change the font size for the information on the payment by card on the receipt?


ODOO 17 CE on windows 10 Pro

POSBOX with epson TM20II printer
!!!! The information for card holder are printed very small on receipt !!!!

local host


thanks for your help

/

Awatar
Odrzuć
Autor Najlepsza odpowiedź

I just found the solution in this forum. thanks

Create a file for the following path: module_name/static/src/css/pos.cssunder the pos.css file - 

pos-product-line {

    font-size: 14px;

}


You can also use t-style tag in your template to add the css


Copy codet-name="OrderReceipt" t-inherit="point_of_sale.OrderReceipt" t-inherit-mode="extension" owl="1">

    t-style="{'font-size':'14px'}">

        expr="//div[@class='pos-product-line']" position="attributes">

            name="style" />

       

  

It's important to note that this will change the font size of all product lines in the receipt, if you want to target a specific product line you need to use a more specific CSS selector


Hope it helps


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
cze 23
2074
1
maj 16
3087
3
lis 24
1268
0
sie 22
2199
2
gru 19
3591