Files
odoo_source/addons/website_theme_install/models/website.py
T
Jeremy Kersten 4cc4663c26 [IMP] website(_theme_install): keep breadcrumb when you choose theme
Before this commit, we return an act_url, in this case the breadcrumb is not
build and the user cannot retruen to the settings in one click.

task-1878245
2018-09-13 13:55:51 +02:00

16 lines
419 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models, api
class Website(models.Model):
_name = "website"
_inherit = _name
@api.model
def create_and_redirect_to_theme(self, vals):
self.browse(vals)._force()
action = self.env.ref('website_theme_install.theme_install_kanban_action')
return action.read()[0]