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
16 lines
419 B
Python
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]
|