Skip to Content
Menu
This question has been flagged
1 Odpoveď
933 Zobrazenia

Hi,

how can I customize the chatter using XPath? I’d like to reduce its height and increase its width in order to insert a table inside. I’ve attached an example image.

I was able to reduce the width of the chatter, but how can I insert the table below it?



<xpath expr="//chatter" position="replace">
<chatter
style="min-height: 300px; max-height: 400px; overflow-y: auto; padding-bottom: 1rem; max-width:400px;">
<div style="border: 1px solid red; padding: 10px;">
</div>
</chatter>


Avatar
Zrušiť

I've moved the screen if yours to your question and removed it as an answer so your question appears unanswered to others, increasing, theoretically the chance of answers. However, this question probably is beyond the scope of the forum in general (see also https://www.odoo.com/de_DE/forum/hilfe-1/meta-why-do-some-questions-get-answers-and-others-do-not-25620)

Best Answer

Hii,


Here's how you can customize the chatter with XPath to adjust its size and insert a table below it without replacing the entire chatter:
<xpath expr="//div[contains(@class, 'o_Chatter')] " position="after">

    <table style="width: 100%; border: 1px solid #ccc; margin-top: 10px;">

        <tr>

            <th>Column 1</th>

            <th>Column 2</th>

        </tr>

        <tr>

            <td>Value A1</td>

            <td>Value A2</td>

        </tr>

        <tr>

            <td>Value B1</td>

            <td>Value B2</td>

        </tr>

    </table>

</xpath>


<xpath expr="//div[contains(@class, 'o_Chatter')]" position="attributes">

    <attribute name="style">min-height: 300px; max-height: 400px; overflow-y: auto; padding-bottom: 1rem; max-width: 400px;</attribute>

</xpath>

i hope it is usefull


Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
2
aug 25
2252
1
júl 25
790
1
aug 25
1150
0
máj 25
1269
2
apr 25
3477