Skip to Content
Menu
This question has been flagged
1 Reply
855 Views

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
Discard

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
Discard
Related Posts Replies Views Activity
1
Jul 25
457
1
Jun 25
1064
0
May 25
1182
2
Apr 25
3178
2
Apr 25
1012