Skip to content

Commit 8ca728b

Browse files
[FIX] website: redirect_type oversight
In odoo@2924b77 type field was renamed to redirect_type One was missing closes odoo#28570
1 parent 98936f7 commit 8ca728b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/website/models/website.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,7 @@ def save_page_info(self, website_id, data):
993993
# Create redirect if needed
994994
if data['create_redirect']:
995995
self.env['website.redirect'].create({
996-
'type': data['redirect_type'],
996+
'redirect_type': data['redirect_type'],
997997
'url_from': original_url,
998998
'url_to': url,
999999
'website_id': website.id,

0 commit comments

Comments
 (0)