Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
700 Lượt xem

Hi All,

I have crated multiple button in CRM module.
but the string of the button is getting break.


see the buttons "Review Compliance" & "Review Risk Management".

"Review Compliance" at button the letter 'p' is getting break at the bottom side.
"Review Risk Management" at button the letter 'g' is getting break at the bottom side.



how can I fix it?

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

Hello Vikas Maharana,


You can add the class attribute as follows: class="oe_stat_button py-4".


Please adjust the py- value based on your needs. For example, you can replace it with py-2, py-3, or py-5 to achieve different padding sizes in line with Bootstrap’s attributes.

I Hope this information proves helpful to you.


Thanks & Regards,

Email:  odoo@aktivsoftware.com

Skype: kalpeshmaheshwari

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

I get the solution 

 <button class="oe_stat_button" name="action_review_ddlgnc_template" type="object" icon="fa-search" context="{'field_name':'cell_partner_qstn_ids'}" groups="vendor_management.group_vndr_mgmt_due_dlgnc,vendor_management.group_vndr_mgmt_compliance_head,vendor_management.group_vndr_mgmt_ceo" invisible="state not in ['2','3']">                                

​<div class="o_stat_info">                                    

​<span class="o_stat_text fs-5">Review Cell Partner</span>                                

​</div>                            

</button>  

Inside button create another div with a span tag and your desire font-size.

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

Hi,

Include buttons inside div.

<sheet>

                    <div class="oe_button_box" name="button_box">

                             // include your buttons inside this div

                     </div>

</sheet>


Hope it helps

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 6 25
1077
1
thg 3 25
1204
3
thg 3 25
1976
2
thg 2 25
4692
1
thg 2 25
1701