Version : Odoo10
Purpose: Add a new page in website
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Version : Odoo10
Purpose: Add a new page in website
Hi Mohan,
You can simply create an XML record for a webpage:
<?xml version="1.0" encoding="utf-8"?> <odoo> <data> <!-- webpage record -->
<template id="new_web_page" name="Your page name" page="True">
<t t-call="website.layout">
<div id="wrap" class="oe_structure oe_empty">
<!-- Your content here -->
</div>
</t>
</template>
</data> </odoo> </xml>
You then also need a controller to call this webpage, which looks like this:
# -*- coding: utf-8 -*-
import odoo.http as http
class your_class(http.Controller):
@http.route('/custom/url', type='http', auth='user', website=True)
def show_custom_webpage(self, **kw):
return http.request.render('your_module.new_web_page', {})
In this example you would have a new page under http://your-odoo.com/custom/url.
For more information look at https://www.odoo.com/documentation/10.0/howtos/website.html
Regards,
Yenthe
Thank You Bro.... I Got it
Hi
How to do it in odoo11 ?
Hi,
You can add a new page in the website by adding a template,
<template id="paid_thank_you" name="Thank you" page="True">
<t t-call="website.layout">
<form>
<div class="form-group" style="text-align: center; padding-top: 11%; padding-bottom: 10%;">
<h1>Thank you, Paid successfully</h1>
</div>
</form>
</t>
</template>
Thank You
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 | |
---|---|---|---|---|
|
5
thg 5 25
|
5086 | ||
|
1
thg 9 23
|
1800 | ||
How to create website pages in odoo
Đã xử lý
|
|
1
thg 1 17
|
8517 | |
|
1
thg 3 15
|
3147 | ||
|
0
thg 2 25
|
6559 |