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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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?
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
<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
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
0
thg 9 22
|
3076 | ||
|
1
thg 1 23
|
2271 | ||
Can't edit web event page
Đã xử lý
|
|
2
thg 6 22
|
3596 | |
|
1
thg 4 22
|
2453 | ||
|
0
thg 4 22
|
3802 |