diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-05-02 09:55:38 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-05-02 09:55:38 +0700 |
| commit | da5754b2be5996cdffbe0ba778ed3b1fa6cf7d73 (patch) | |
| tree | 800651ff21f9277453ab73ea19c01d0f31bfb43d /indoteknik_custom/controllers | |
| parent | de1f159b50d42942381c0c7ab28e600b091c22ca (diff) | |
redirect website odoo to website indoteknik
Diffstat (limited to 'indoteknik_custom/controllers')
| -rw-r--r-- | indoteknik_custom/controllers/website.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/indoteknik_custom/controllers/website.py b/indoteknik_custom/controllers/website.py index 2e3df519..120dddad 100644 --- a/indoteknik_custom/controllers/website.py +++ b/indoteknik_custom/controllers/website.py @@ -1,7 +1,12 @@ -from odoo.http import request, Controller +from odoo.http import request, Controller, route from odoo import http, _ class Website(Controller): + + @route(['/shop', '/shop/cart'], auth='public', website=True) + def shop(self, **kw): + return request.redirect('https://indoteknik.com/shop/promo', code=302) + @http.route('/content', auth='public') def content(self, **kw): url = kw.get('url', '') |
