Commit Graph
5 Commits
Author SHA1 Message Date
Jeremy Kersten 2c3106c365 [IMP] website: make refresh routes less visible
Primary color lets imagine that it is the primary action to be done to update
the routing. While it is just to refresh the url_from list if you have missing
route (new module installed, ...)

Maybe we should just remove this button at the end.

closes odoo/odoo#66919

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2021-02-26 10:28:00 +00:00
Nisha patel 159699b09c [IMP] various: set boolean_toggle on 'active' fields in form view
Currently, to activate/deactivate records with the 'active' checkbox
user has to switch to edit mode of the form.
So the purpose of the task is to allow the user to activate/deactivate
records from the readonly mode of the form view.

In this commit, we  set widget='boolean_toggle' on the 'active' field in form
view.

closes odoo/odoo#46567

Taskid: 2206794
Related: https://github.com/odoo/enterprise/pull/8918
Related: odoo/enterprise#8918
Closes: #46567
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-03-02 06:26:02 +00:00
Swapnesh Shah ba8dd4d215 [IMP] website: Move sequence field to first
Before this commit, `sequence` field was in the last column of List view which is not Ideal for `widget="handle"`
Now we display `sequence` first on the list view

closes odoo/odoo#43969

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-01-26 17:21:45 +00:00
Jeremy Kersten fd7d9dc47b [FIX] website: rename old name redirect_type
Missing diff in last commit.
    redirect_301 -> has been renamed to 301
    redirect_302 -> has been renamed to 302
    rewrite -> has been renamed to 308
    not_found -> has been renamed to 404

To be coherent everywhere and because this value is used as http code into
the werkzeug redirect call.

closes odoo/odoo#38061

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2019-10-07 10:31:03 +00:00
Jeremy Kersten be8fc2296b [IMP] base, http_routing, website: allow custom routing rule
After this commit, you will be able (in technical mode) to update the url for
the python controllers.

Eg.
You can now rename /shop in /garden and /shop/product/ in /garden/vegetable/

Most of urls will be replaced at fly in the renderd qweb, with the function
url_for but all old urls will keep available. So if you access url /shop you
will be automatically redirected to /garden (308 Permanent Redirect).

As for cdn and other post-process of att, the automatically replacement in the
rendered qweb is only done when you will be not website editor. But the new
dispatch of URL will be applied in all cases.

For developper, since it is Permanent Redirect, don't forget to clear cache or
open chrome debug tool (with option 'Disable cache while DevTools is Open) to
see your lasts changes.

closes odoo/odoo#36555

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2019-09-30 13:58:14 +00:00