diff options
| author | Indoteknik . <andrifebriyadiputra@gmail.com> | 2025-05-02 16:06:46 +0700 |
|---|---|---|
| committer | Indoteknik . <andrifebriyadiputra@gmail.com> | 2025-05-02 16:06:46 +0700 |
| commit | 9bc2b6612c81844dbbee40a8678862a241dafb11 (patch) | |
| tree | 8cae3b26feb6f184a53af3ccd2d7aff361fffc31 /indoteknik_custom/controllers | |
| parent | bb8a5981bdfd8a8d60db7fe509a989c29b2a4e5e (diff) | |
| parent | f050f06b6f057e20ecc99427850c9c43c7f02224 (diff) | |
resolve merge
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', '') |
