[FIX] website: redirect_type oversight
In https://github.com/odoo/odoo/commit/2924b77b6f52e7ee9f4a6f2fb0cc79211be42292 type field was renamed to redirect_type One was missing closes odoo/odoo#28570
This commit is contained in:
@@ -993,7 +993,7 @@ class Page(models.Model):
|
||||
# Create redirect if needed
|
||||
if data['create_redirect']:
|
||||
self.env['website.redirect'].create({
|
||||
'type': data['redirect_type'],
|
||||
'redirect_type': data['redirect_type'],
|
||||
'url_from': original_url,
|
||||
'url_to': url,
|
||||
'website_id': website.id,
|
||||
|
||||
Reference in New Issue
Block a user