mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
fix misc
This commit is contained in:
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
'name': 'odoo Tweak,Boost,Customize,Ai All in One. Customize,UI,Boost,Security,Data,Development Enhance',
|
'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',
|
'author': 'odooai.cn',
|
||||||
'category': 'Extra Tools',
|
'category': 'Extra Tools',
|
||||||
'website': 'https://www.odooai.cn',
|
'website': 'https://www.odooai.cn',
|
||||||
|
|||||||
@@ -5,13 +5,14 @@ from odoo.addons.portal.controllers.web import Home
|
|||||||
from odoo.http import request
|
from odoo.http import request
|
||||||
|
|
||||||
|
|
||||||
class KsHome(Home):
|
class AppHome(Home):
|
||||||
|
|
||||||
@http.route()
|
@http.route()
|
||||||
def web_client(self, s_action=None, **kw):
|
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()
|
config_parameter = request.env['ir.config_parameter'].sudo()
|
||||||
app_debug_only_admin = config_parameter.get_param('app_debug_only_admin')
|
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():
|
if request.session.uid and request.env.user.browse(request.session.uid)._is_admin():
|
||||||
|
|||||||
@@ -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')
|
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):
|
@api.model
|
||||||
sql = "UPDATE ir_module_module SET website = '%s' WHERE license like '%s' and website <> ''" % (self.app_enterprise_url, 'OEEL%')
|
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:
|
try:
|
||||||
self._cr.execute(sql)
|
self._cr.execute(sql)
|
||||||
self._cr.commit()
|
self._cr.commit()
|
||||||
|
|||||||
@@ -1,3 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
##############################################################################
|
||||||
|
# Copyright (C) 2009~2023 odooAi.cn
|
||||||
|
##############################################################################
|
||||||
|
-->
|
||||||
|
<html>
|
||||||
|
<!-- Modules Title and brief -->
|
||||||
<section class="container app">
|
<section class="container app">
|
||||||
<div class="oe_row oe_spaced" style="max-width: 95%;">
|
<div class="oe_row oe_spaced" style="max-width: 95%;">
|
||||||
<div class="oe_span12">
|
<div class="oe_span12">
|
||||||
@@ -412,4 +421,4 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
</html>
|
||||||
@@ -17,7 +17,9 @@
|
|||||||
<template id="replace_copyright_name" name="Copyright Name" inherit_id="web.frontend_layout">
|
<template id="replace_copyright_name" name="Copyright Name" inherit_id="web.frontend_layout">
|
||||||
<xpath expr="//span[hasclass('o_footer_copyright_name')]" position="replace">
|
<xpath expr="//span[hasclass('o_footer_copyright_name')]" position="replace">
|
||||||
<span class="o_footer_copyright_name me-2">Copyright &copy;
|
<span class="o_footer_copyright_name me-2">Copyright &copy;
|
||||||
|
<span class="copyright_name_before" contenteditable="true">2009-2023 </span>
|
||||||
<span t-field="res_company.name" itemprop="name"/>
|
<span t-field="res_company.name" itemprop="name"/>
|
||||||
|
<span class="copyright_name_after" contenteditable="true"></span>
|
||||||
</span>
|
</span>
|
||||||
</xpath>
|
</xpath>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user