İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
4409 Görünümler

How to Overwrite each item (please see attached image).



I tried this code, but it creates another item, it does not overwrite the existing one.



Anyone can help?

Avatar
Vazgeç
En İyi Yanıt

Hi,

Try this:

<template id="purchase.portal_my_home_purchase" name="Show Purchase Orders" customize_show="True" inherit_id="portal.portal_my_home" priority="25">
<xpath expr="//div[hasclass('o_portal_docs')]" position="inside">
<t t-call="portal.portal_docs_entry">
<t t-set="title">Purchase Orders Changed</t>
<t t-set="url" t-value="'/my/purchase'"/>
<t t-set="placeholder_count" t-value="'purchase_count'"/>
</t>
</xpath>
</template>

Thanks

Avatar
Vazgeç
En İyi Yanıt
<template id="portal_my_home_purchase_changed" inherit_id="purchase.portal_my_home_purchase">
<xpath expr="//t[@t-set='title']" position="replace">
<t t-set="title" t-value="'Purchase Orders XXX'"/>
</xpath>
</template>

This will change the title.
Regards
Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Eyl 22
2990
1
Oca 23
2179
2
Haz 22
3501
1
Nis 22
2358
0
Nis 22
3684