Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
1041 Lượt xem
I need to print only the first 15 letters of the product name on the labels. I tried changing the report_simple_barcode code to "" but that didn't work. What am I doing wrong?


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

Hello Wagner Baraldi, 

We can add a limit of 15 characters using css as follows.

Please find code in comment. 

Hope this will help you.

Thanks & Regards,
Email: odoo@aktivsoftware.com        

Skype: kalpeshmaheshwari

Ảnh đại diện
Huỷ bỏ

Please find code here :-
XML Code:

<div style={
max-width: 15ch;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}>
<t t-out="product.name"/>
</div>

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 2 25
520
0
thg 12 24
45
0
thg 12 24
433
1
thg 10 24
1478
2
thg 8 24
981