From 42e937def97fa2168496378ccb3e52d38bae05f4 Mon Sep 17 00:00:00 2001 From: Ivan Office Date: Thu, 17 Aug 2023 22:08:02 +0800 Subject: [PATCH] update doc --- app_base_chinese/data/res_lang_data.xml | 4 +-- app_base_chinese/data/res_partner_data.xml | 2 +- app_base_chinese/data/sales_team_data.xml | 5 +++- app_odoo_customize/__manifest__.py | 2 ++ app_odoo_customize/models/ir_module_module.py | 1 + .../views/ir_module_module_views.xml | 25 ++++++++----------- 6 files changed, 20 insertions(+), 19 deletions(-) diff --git a/app_base_chinese/data/res_lang_data.xml b/app_base_chinese/data/res_lang_data.xml index a8789afc..f91c7829 100644 --- a/app_base_chinese/data/res_lang_data.xml +++ b/app_base_chinese/data/res_lang_data.xml @@ -2,12 +2,12 @@ - + 中文 %Y-%m-%d %H:%M:%S - + English diff --git a/app_base_chinese/data/res_partner_data.xml b/app_base_chinese/data/res_partner_data.xml index 1a824678..df834a0e 100644 --- a/app_base_chinese/data/res_partner_data.xml +++ b/app_base_chinese/data/res_partner_data.xml @@ -1,7 +1,7 @@ - + 公共访客用户 diff --git a/app_base_chinese/data/sales_team_data.xml b/app_base_chinese/data/sales_team_data.xml index 249d2f59..007a20fe 100644 --- a/app_base_chinese/data/sales_team_data.xml +++ b/app_base_chinese/data/sales_team_data.xml @@ -1,8 +1,11 @@ - + 中国 + + China + diff --git a/app_odoo_customize/__manifest__.py b/app_odoo_customize/__manifest__.py index 718a7eb6..40aba2a7 100644 --- a/app_odoo_customize/__manifest__.py +++ b/app_odoo_customize/__manifest__.py @@ -137,6 +137,7 @@ 42. Add menu navbar setup for top or bottom. navigator footer support. 43. Check to only Debug / Debug Assets for Odoo Admin. Deny debug from url for other user. 44. Check to stop subscribe and follow. This to make odoo speed up. + 45. Add addons path info to module. This module can help to white label the Odoo. Also helpful for training and support for your odoo end-user. @@ -188,5 +189,6 @@ 42. 可设置导航栏在上方还是下方,分开桌面与移动端. 43. 可设置只允许管理员进入开发者模式,不可在url中直接debut=1来调试 44. 可配置停用自动用户订阅功能,这会提速odoo,减少资源消耗 + 45. 为应用模块增加模块路径信息 """, } diff --git a/app_odoo_customize/models/ir_module_module.py b/app_odoo_customize/models/ir_module_module.py index a90b916c..d1eed80d 100644 --- a/app_odoo_customize/models/ir_module_module.py +++ b/app_odoo_customize/models/ir_module_module.py @@ -18,6 +18,7 @@ class IrModule(models.Model): local_updatable = fields.Boolean('Local updatable', compute=False, default=False, store=True) addons_path_id = fields.Many2one('ir.module.addons.path', string='Addons Path ID', readonly=True) addons_path = fields.Char(string='Addons Path', related='addons_path_id.path', readonly=True) + license = fields.Char(readonly=True) def module_multi_uninstall(self): """ Perform the various steps required to uninstall a module completely diff --git a/app_odoo_customize/views/ir_module_module_views.xml b/app_odoo_customize/views/ir_module_module_views.xml index c0a40fba..23209dcc 100644 --- a/app_odoo_customize/views/ir_module_module_views.xml +++ b/app_odoo_customize/views/ir_module_module_views.xml @@ -26,7 +26,7 @@ - + @@ -40,20 +40,15 @@ app.ir.module.module.form ir.module.module - - -

- app_odoo_customize.group_show_author_in_apps -

- - app_odoo_customize.group_show_author_in_apps - - - - - - - + + +

+ app_odoo_customize.group_show_author_in_apps +

+ + + +