Hello,
I tried to change the Orderlines font size in odoo.
I found how to doo that, but I can't do any changes in Odoo Source code.
So I have to change:
To:
How can I do this ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello,
I tried to change the Orderlines font size in odoo.
I found how to doo that, but I can't do any changes in Odoo Source code.
So I have to change:
To:
How can I do this ?
Hello,
Thank you for your answer.
I'm quite new on Odoo, and don't know how to do it exactly.
I have to change the orderlines class located in: src/odoo/addons/point_of_sale/static/src/xml/screens/receiptscreen/orderreceipt.xml
I have also a thirdparty module what is inheriting(extending) this file.
And starts as following:
Can I add something here in the beginning, to change the class or add a style to the class "orderlines" ?
When Yes, how should it look like ?
Thanks in advance
Hi,
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
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
1
thg 4 23
|
2903 | ||
|
2
thg 1 25
|
2356 | ||
|
2
thg 2 24
|
4652 | ||
|
1
thg 7 23
|
2308 | ||
|
0
thg 5 23
|
3224 |