diff --git a/app_odoo_customize/__manifest__.py b/app_odoo_customize/__manifest__.py
index 54d5fc0d..dac035b9 100644
--- a/app_odoo_customize/__manifest__.py
+++ b/app_odoo_customize/__manifest__.py
@@ -23,7 +23,7 @@
{
'name': 'odoo Tweak,Boost,Customize,Ai All in One. Customize,UI,Boost,Security,Data,Development Enhance',
- 'version': '16.23.08.24',
+ 'version': '16.23.08.28',
'author': 'odooai.cn',
'category': 'Extra Tools',
'website': 'https://www.odooai.cn',
diff --git a/app_odoo_customize/controllers/controllers.py b/app_odoo_customize/controllers/controllers.py
index 782c5364..e702c623 100644
--- a/app_odoo_customize/controllers/controllers.py
+++ b/app_odoo_customize/controllers/controllers.py
@@ -5,13 +5,14 @@ from odoo.addons.portal.controllers.web import Home
from odoo.http import request
-class KsHome(Home):
+class AppHome(Home):
@http.route()
def web_client(self, s_action=None, **kw):
- res = super(KsHome, self).web_client(s_action, **kw)
+ # todo: 当前只对 web,要调整为也对 website
+ res = super(AppHome, self).web_client(s_action, **kw)
- if kw.get('debug') in ['1', 'assets', 'assets,tests']:
+ if kw.get('debug', False):
config_parameter = request.env['ir.config_parameter'].sudo()
app_debug_only_admin = config_parameter.get_param('app_debug_only_admin')
if request.session.uid and request.env.user.browse(request.session.uid)._is_admin():
diff --git a/app_odoo_customize/models/res_config_settings.py b/app_odoo_customize/models/res_config_settings.py
index b63aab52..317ef8a9 100644
--- a/app_odoo_customize/models/res_config_settings.py
+++ b/app_odoo_customize/models/res_config_settings.py
@@ -67,8 +67,11 @@ class ResConfigSettings(models.TransientModel):
# 应用帮助文档
app_doc_root_url = fields.Char('Help of topic domain', config_parameter='app_doc_root_url', default='https://odooai.cn')
- def set_module_url(self):
- sql = "UPDATE ir_module_module SET website = '%s' WHERE license like '%s' and website <> ''" % (self.app_enterprise_url, 'OEEL%')
+ @api.model
+ def set_module_url(self, rec=None):
+ config_parameter = self.env['ir.config_parameter'].sudo()
+ app_enterprise_url = config_parameter.get_param('app_enterprise_url', 'https://www.odooai.cn')
+ sql = "UPDATE ir_module_module SET website = '%s' WHERE license like '%s' and website <> ''" % (app_enterprise_url, 'OEEL%')
try:
self._cr.execute(sql)
self._cr.commit()
diff --git a/app_odoo_customize/static/description/index.html b/app_odoo_customize/static/description/index.html
index 7d42817a..6de08f3b 100644
--- a/app_odoo_customize/static/description/index.html
+++ b/app_odoo_customize/static/description/index.html
@@ -1,3 +1,12 @@
+
+
+
+
-
+
\ No newline at end of file
diff --git a/app_odoo_customize/views/app_odoo_customize_views.xml b/app_odoo_customize/views/app_odoo_customize_views.xml
index 6b59988c..d574c280 100644
--- a/app_odoo_customize/views/app_odoo_customize_views.xml
+++ b/app_odoo_customize/views/app_odoo_customize_views.xml
@@ -17,7 +17,9 @@