Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
8944 มุมมอง

     This works on http but not https

    @http.route('/client_crm/access/', auth='user') 
    def index(self, **kw): cr, uid, context, registry = request.cr, request.uid, request.context, request.registry mdl_wac = registry.get('wrapper_allclients.wrapper_allclients'); url = mdl_wac.allclients_user_url(cr, uid) return werkzeug.utils.redirect(url)


So this controller does a redirect to an external url.  I have an apache proxy setup for both 80 and 443.  Everything else Odoo works on both ports but this.  The behavior is this:

On http:
redirects to https://external.url.com/path?querystring


On https:

redirects to https://odoo.url.com/path?querystring


So the path and query string are correct but for some reason when on https it removes the domain and replaces with odoo domain.

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

If anyone else is struggling with this for a payment gateway or SSO solution I was able to put in a quick fix using apache.

 <If "%{SERVER_PROTOCOL} != 'HTTP'">
        Redirect "/client_crm/access/" http://odoo.url.com:8069/client_crm/access/
</If>


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ค. 23
7924
odoo 11.0 web.base.url แก้ไขแล้ว
1
ก.พ. 18
7962
1
เม.ย. 24
2188
2
ก.ย. 20
5011
3
ธ.ค. 18
6660