Which Module to inherit the Website Homepage, and how to add the custom html code in website homepage...
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
<odoo>
<template id="theme_custom.new_homepage" inherit_id="website.homepage">
<xpath expr="//div[@id='wrap']" position="replace">
<div id="wrap" class="oe_structure">
hello
</div>
</xpath>
</template>
</odoo>
Try this
Though Answer From Cybrosys Also works
Hi,
You can extend the website homepage like this,
<template id="new_homepage" inherit_id="website.homepage">
</template>
In Python,
from odoo import http
from odoo.addons.website.controllers.main import Website
class Website(Website):
@http.route(auth='public')
def index(self, data={}, **kw):
super(Website, self).index(**kw)
return http.request.render('<template_external_id>', data)
Please see this link: https://www.odoo.com/forum/help-1/question/odoo-v11-website-how-to-replace-home-page-139437
Thanks
Hi,
Your answer is Odoo V11, but i need Odoo V12.
Your Code is working on Odoo V10 & V11,
But Odoo 12 is not accept it.
How to inherit the website homepage in odoo12.
Thanks & Regards by Mohan
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
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 24
|
1074 | ||
|
5
thg 5 19
|
8308 | ||
|
2
thg 7 25
|
6359 | ||
|
1
thg 7 25
|
933 | ||
|
2
thg 6 25
|
2472 |