diff --git a/app_base_chinese/models/res_company.py b/app_base_chinese/models/res_company.py index 80f5dde7..a583db0d 100644 --- a/app_base_chinese/models/res_company.py +++ b/app_base_chinese/models/res_company.py @@ -7,7 +7,7 @@ from odoo.exceptions import UserError, ValidationError class ResCompany(models.Model): _inherit = 'res.company' - short_name = fields.Char('Short Name', related='partner_id.short_name', readonly=False, store=True) + short_name = fields.Char('Short Name', related='partner_id.short_name', readonly=False) # 当传参 show_short_name 时,只显示简称 def name_get(self): diff --git a/app_odoo_customize/__manifest__.py b/app_odoo_customize/__manifest__.py index f6660079..6da3c869 100644 --- a/app_odoo_customize/__manifest__.py +++ b/app_odoo_customize/__manifest__.py @@ -23,7 +23,7 @@ { 'name': 'Customize odoo OEM (Boost, My Odoo)', - 'version': '13.20.07.13', + 'version': '13.20.07.24', 'author': 'Sunpop.cn', 'category': 'Productivity', 'website': 'https://www.sunpop.cn', @@ -133,6 +133,8 @@ 'views/ir_module_module_views.xml', 'views/ir_translation_views.xml', 'views/ir_ui_menu_views.xml', + 'views/ir_ui_view_views.xml', + 'views/ir_model_fields_views.xml', # data 'data/ir_config_parameter_data.xml', 'data/ir_module_module_data.xml', diff --git a/app_odoo_customize/data/ir_config_parameter.xml b/app_odoo_customize/data/ir_config_parameter.xml deleted file mode 100644 index aa39b7c6..00000000 --- a/app_odoo_customize/data/ir_config_parameter.xml +++ /dev/null @@ -1,81 +0,0 @@ - - - - - app_system_name - odooApp13 - - - - app_show_lang - True - - - app_show_debug - True - - - app_show_documentation - True - - - app_show_documentation_dev - True - - - app_show_support - True - - - app_show_account - True - - - app_show_enterprise - False - - - app_show_share - False - - - app_show_poweredby - False - - - app_documentation_url - https://www.sunpop.cn/documentation/user/12.0/zh_CN/index.html - - - app_documentation_dev_url - https://www.sunpop.cn/documentation/12.0/index.html - - - app_support_url - https://www.sunpop.cn/trial - - - app_account_title - My Online Account - - - app_account_url - https://www.sunpop.cn/my-account - - - - app_ribbon_name - ({db_name})]]> - - - - app_ribbon_color - #f0f0f0 - - - - app_ribbon_background_color - rgba(255,0,0,.4) - - - \ No newline at end of file diff --git a/app_odoo_customize/data/ir_module_module.xml b/app_odoo_customize/data/ir_module_module.xml deleted file mode 100644 index 29cbec27..00000000 --- a/app_odoo_customize/data/ir_module_module.xml +++ /dev/null @@ -1,72 +0,0 @@ - - - - - https://www.sunpop.cn - - - - https://www.sunpop.cn - - - - https://www.sunpop.cn - - - - https://www.sunpop.cn - - - - https://www.sunpop.cn - - - - https://www.sunpop.cn - - - - https://www.sunpop.cn - - - - https://www.sunpop.cn - - - - https://www.sunpop.cn - - - - https://www.sunpop.cn - - - - https://www.sunpop.cn - - - - https://www.sunpop.cn - - - - https://www.sunpop.cn - - - - https://www.sunpop.cn - - - - https://www.sunpop.cn - - - - https://www.sunpop.cn - - - - https://www.sunpop.cn - - - diff --git a/app_odoo_customize/data/res_groups.xml b/app_odoo_customize/data/res_groups.xml deleted file mode 100644 index c4ae9968..00000000 --- a/app_odoo_customize/data/res_groups.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - Show Author in Apps Dashboard - - - - Show Quick Upgrade in Apps Dashboard - - - - - - - - - \ No newline at end of file diff --git a/app_odoo_customize/models/res_config_settings.py b/app_odoo_customize/models/res_config_settings.py index f99ae7cb..80a2afda 100644 --- a/app_odoo_customize/models/res_config_settings.py +++ b/app_odoo_customize/models/res_config_settings.py @@ -58,7 +58,7 @@ class ResConfigSettings(models.TransientModel): app_account_title = ir_config.get_param('app_account_title', default='My Online Account') app_account_url = ir_config.get_param('app_account_url', default='https://www.sunpop.cn/my-account/') app_enterprise_url = ir_config.get_param('app_enterprise_url', default='https://www.sunpop.cn') - app_ribbon_name = ir_config.get_param('app_ribbon_name', default='False') + app_ribbon_name = ir_config.get_param('app_ribbon_name', default='*Sunpop.cn') res.update( app_system_name=app_system_name, app_show_lang=app_show_lang, @@ -103,7 +103,7 @@ class ResConfigSettings(models.TransientModel): ir_config.set_param("app_account_title", self.app_account_title or "My Online Account") ir_config.set_param("app_account_url", self.app_account_url or "https://www.sunpop.cn/my-account/") ir_config.set_param("app_enterprise_url", self.app_enterprise_url or "https://www.sunpop.cn") - ir_config.set_param("app_ribbon_name", self.app_ribbon_name or "False") + ir_config.set_param("app_ribbon_name", self.app_ribbon_name or "*Sunpop.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%') diff --git a/app_odoo_customize/views/ir_model_fields_views.xml b/app_odoo_customize/views/ir_model_fields_views.xml new file mode 100644 index 00000000..aa295f46 --- /dev/null +++ b/app_odoo_customize/views/ir_model_fields_views.xml @@ -0,0 +1,14 @@ + + + + app.ir.ui.view tree + ir.ui.view + + + + + + + + +