Skip to content

Commit

Permalink
[FIX] website: redirect_type oversight
Browse files Browse the repository at this point in the history
In odoo@2924b77 type field was renamed to redirect_type
One was missing

closes odoo#28570
  • Loading branch information
MiquelRForgeFlow committed Nov 12, 2018
1 parent 98936f7 commit 8ca728b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/website/models/website.py
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ def save_page_info(self, website_id, data):
# 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,
Expand Down

0 comments on commit 8ca728b

Please sign in to comment.