Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
948 Visualizzazioni

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
Abbandona

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)

Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
ago 25
2305
1
lug 25
828
1
ago 25
1150
0
mag 25
1280
2
apr 25
3492