65d8177b55
Reorder res.config.settings for website Make website_id in no create in most view Revamp res.configsetting and view Form simplified Transform old 'useless' stored field for presentation by computed field. We can consider that if there are not key, feature is disable. Co-authored-by: rde-odoo Co-authored-by: jke-odoo
18 lines
437 B
Python
18 lines
437 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import models
|
|
|
|
|
|
class Website(models.Model):
|
|
_name = "website"
|
|
_inherit = _name
|
|
|
|
def button_view_theme(self):
|
|
self._force()
|
|
return {
|
|
'type': 'ir.actions.act_url',
|
|
'url': '/web#action=website_theme_install.theme_install_kanban_action',
|
|
'target': 'self',
|
|
}
|