diff --git a/app_odoo_customize/__manifest__.py b/app_odoo_customize/__manifest__.py index 62b49673..bc7cf157 100644 --- a/app_odoo_customize/__manifest__.py +++ b/app_odoo_customize/__manifest__.py @@ -23,7 +23,7 @@ { 'name': 'odoo17 Tweak,Ai Employee,Boost,Customize All in One. Customize,UI,Boost,Security,Data', - 'version': '16.24.03.06', + 'version': '16.24.03.08', 'author': 'odooai.cn', 'category': 'Extra Tools', 'website': 'https://www.odooai.cn', diff --git a/app_odoo_customize/models/res_config_settings.py b/app_odoo_customize/models/res_config_settings.py index 3345c3ae..374c7742 100644 --- a/app_odoo_customize/models/res_config_settings.py +++ b/app_odoo_customize/models/res_config_settings.py @@ -68,15 +68,18 @@ class ResConfigSettings(models.TransientModel): app_doc_root_url = fields.Char('Help of topic domain', config_parameter='app_doc_root_url', default='https://odooai.cn') @api.model - def set_module_url(self, rec=None): + def set_module_url(self): + if not self._app_check_sys_op(): + raise UserError(_('Not allow.')) 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() - except Exception as e: - pass + modules = self.env['ir.module.module'].search([('license', 'like', 'OEEL%'), ('website', '!=', False)]) + if modules: + sql = "UPDATE ir_module_module SET website = '%s' WHERE id IN %s" % (app_enterprise_url, tuple(modules.ids)) + try: + self._cr.execute(sql) + except Exception as e: + pass # 清数据,o=对象, s=序列 def remove_app_data(self, o, s=[]): diff --git a/app_odoo_customize/static/description/index.html b/app_odoo_customize/static/description/index.html index 0176ddf4..80fa9ed6 100644 --- a/app_odoo_customize/static/description/index.html +++ b/app_odoo_customize/static/description/index.html @@ -20,7 +20,7 @@
-

This is a Long Term Support Apps.Update: v16.24.02.28

+

This is a Long Term Support Apps.Update: v16.24.03.08

  • 1. Deletes Odoo label in footer