Files
odoo_source/addons/website_theme_install/models/website.py
T

19 lines
487 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()
return {
'type': 'ir.actions.act_url',
'url': '/web#action=website_theme_install.theme_install_kanban_action',
'target': 'self',
}