[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>
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
<header>
|
||||
<button name="refresh_routes" string="Refresh route's list" type="object"
|
||||
class="btn-primary"
|
||||
attrs="{'invisible':[('redirect_type', '!=', 'rewrite')]}"
|
||||
attrs="{'invisible':[('redirect_type', '!=', '308')]}"
|
||||
/>
|
||||
</header>
|
||||
<sheet>
|
||||
@@ -16,9 +16,9 @@
|
||||
<group>
|
||||
<field name="name"/>
|
||||
<field name="redirect_type"/>
|
||||
<field name="url_from" attrs="{'invisible': [('redirect_type', '=', 'rewrite')]}"/>
|
||||
<field name="route_id" string="URL from" options="{'no_create': True, 'no_open': True}" attrs="{'invisible': [('redirect_type', '!=', 'rewrite')]}"/>
|
||||
<field name="url_to" attrs="{'invisible': [('redirect_type', '=', 'not_found')]}"/>
|
||||
<field name="url_from" attrs="{'invisible': [('redirect_type', '=', '308')]}"/>
|
||||
<field name="route_id" string="URL from" options="{'no_create': True, 'no_open': True}" attrs="{'invisible': [('redirect_type', '!=', '308')]}"/>
|
||||
<field name="url_to" attrs="{'invisible': [('redirect_type', '=', '404')]}"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="website_id" options="{'no_create': True}" groups="website.group_multi_website"/>
|
||||
|
||||
Reference in New Issue
Block a user