Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I need to redirect the user to another site the user clicks on a specific button.
I'm trying doing this like described as below. But is does not work.
When the program reaches on the method index from the VrtxEvents controller, the system redirect the request to the location http://localhost:8069/www.gmail.com.
But the expected behavior is it redirect to the location www.gmail.com.
<record model="ir.ui.view" id="vrtx_view_event_tree">
<field name="arch" type="xml">
<tree string="Events" create="false" edit="false" delete="false">
<field name="name" string="Name"/>
<button string="Click Here" name="pagseguro" type="object"/>
_inherit = "event.event"
My controller class:
from openerp import http from werkzeug.utils import redirect
def index(self, **kw):
response = redirect("www.gmail.com")
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 7/26/15, 3:22 PM|
|Seen: 747 times|
|Last updated: 7/27/15, 5:57 PM|