콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
816 화면

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>


아바타
취소

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)

베스트 답변

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


아바타
취소
관련 게시물 답글 화면 활동
1
7월 25
406
1
6월 25
1037
0
5월 25
1153
2
4월 25
3151
2
4월 25
973