Ir al contenido
Menú
Se marcó esta pregunta
3 Respuestas
704 Vistas

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?

Avatar
Descartar
Mejor respuesta

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

Avatar
Descartar
Autor Mejor respuesta

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.

Avatar
Descartar
Mejor respuesta

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

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
jun 25
1078
1
mar 25
1208
3
mar 25
1978
2
feb 25
4699
1
feb 25
1703