diff --git a/app_odoo_customize/__manifest__.py b/app_odoo_customize/__manifest__.py index f73edefb..a7718fb0 100644 --- a/app_odoo_customize/__manifest__.py +++ b/app_odoo_customize/__manifest__.py @@ -23,7 +23,7 @@ { 'name': 'Odoo Customize(Debranding, My Odoo)', - 'version': '12.19.3.15', + 'version': '12.19.04.17', 'author': 'Sunpop.cn', 'category': 'Productivity', 'website': 'https://www.sunpop.cn', @@ -64,19 +64,21 @@ 21. Can clear and reset account chart. Be cautious 22. Update online manual and developer document to odoo12 23. Add reset or clear website blog data + 24. Customize Odoo Native Module(eg. Enterprise) Url This module can help to white label the Odoo. Also helpful for training and support for your odoo end-user. The user can get the help document just by one click. """, 'images': ['static/description/banner.gif'], - 'depends': ['base', 'web', 'mail'], + 'depends': ['base', 'web', 'mail', 'web_settings_dashboard'], 'data': [ 'views/app_odoo_customize_view.xml', 'views/app_theme_config_settings_view.xml', 'views/ir_model_view.xml', # data 'data/ir_config_parameter.xml', + 'data/ir_module_module.xml', 'data/res_company_data.xml', 'data/res_groups.xml', 'security/ir.model.access.csv', diff --git a/app_odoo_customize/data/ir_module_module.xml b/app_odoo_customize/data/ir_module_module.xml new file mode 100644 index 00000000..0136eb77 --- /dev/null +++ b/app_odoo_customize/data/ir_module_module.xml @@ -0,0 +1,74 @@ + + + + + + https://odoo.com/page/studio?utm_source=db&utm_medium=module + + + + https://www.odoo.com/page/timesheet-mobile-app?utm_source=db&utm_medium=module + + + + https://www.odoo.com/page/accounting?utm_source=db&utm_medium=module + + + + https://www.odoo.com/page/helpdesk?utm_source=db&utm_medium=module + + + + https://www.odoo.com/page/appraisal?utm_source=db&utm_medium=module + + + + https://www.odoo.com/page/marketing-automation?utm_source=db&utm_medium=module + + + + https://www.odoo.com/page/mrp-plm?utm_source=db&utm_medium=module + + + + https://www.odoo.com/page/quality-management-software?utm_source=db&utm_medium=module + + + + https://www.odoo.com/page/sales?utm_source=db&utm_medium=module + + + + https://www.odoo.com/page/project?utm_source=db&utm_medium=module + + + + https://www.odoo.com/page/subscriptions?utm_source=db&utm_medium=module + + + + https://www.odoo.com/page/sign?utm_source=db&utm_medium=module + + + + https://www.odoo.com/page/warehouse?utm_source=db&utm_medium=module + + + + https://www.odoo.com/page/crm?utm_source=db&utm_medium=module + + + + https://www.odoo.com/page/appointments?utm_source=db&utm_medium=module + + + + /base/static/img/icons/mrp_workorder.png + https://www.odoo.com/page/mrp-cloud-software?utm_source=db&utm_medium=module + + + + https://play.google.com/store/apps/details?id=com.odoo.mobile + + + diff --git a/app_odoo_customize/hooks.py b/app_odoo_customize/hooks.py index d2e1bafb..2d3c7229 100644 --- a/app_odoo_customize/hooks.py +++ b/app_odoo_customize/hooks.py @@ -16,8 +16,12 @@ # description: def pre_init_hook(cr): - pass - # cr.execute("") + try: + # 更新企业版指向 + sql = "UPDATE ir_module_module SET website = '%s' WHERE license like '%s' and website <> ''" % ('https://www.sunpop.cn', 'OEEL%') + cr.execute(sql) + except Exception as e: + pass def post_init_hook(cr, registry): pass diff --git a/app_odoo_customize/i18n/zh_CN.po b/app_odoo_customize/i18n/zh_CN.po index 53cbe54d..f1ebded1 100644 --- a/app_odoo_customize/i18n/zh_CN.po +++ b/app_odoo_customize/i18n/zh_CN.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 12.0+e-20190301\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-03-15 10:29+0000\n" -"PO-Revision-Date: 2019-03-15 10:29+0000\n" +"POT-Creation-Date: 2019-04-17 05:59+0000\n" +"PO-Revision-Date: 2019-04-17 05:59+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -43,7 +43,7 @@ msgstr "制造" #. module: app_odoo_customize #: model_terms:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings msgid "POS" -msgstr "POS" +msgstr "POS收银" #. module: app_odoo_customize #: model_terms:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings @@ -99,6 +99,11 @@ msgstr "选中可停止odoo内置的用户消息订阅" msgid "Clean and reset Account Chart" msgstr "清除会计科目,便于重置" +#. module: app_odoo_customize +#: model_terms:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings +msgid "Click to set" +msgstr "点击设置" + #. module: app_odoo_customize #: model:ir.model,name:app_odoo_customize.model_res_config_settings msgid "Config Settings" @@ -110,6 +115,11 @@ msgstr "配置设定" msgid "Customize Debrand" msgstr "定制我的odoo" +#. module: app_odoo_customize +#: model:ir.model.fields,field_description:app_odoo_customize.field_res_config_settings__app_enterprise_url +msgid "Customize Module Url(eg. Enterprise)" +msgstr "自定义模块链接(如企业版)" + #. module: app_odoo_customize #: model_terms:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings msgid "Data Cleaning (Be careful to do that!)" @@ -120,7 +130,7 @@ msgstr "数据清理(请谨慎操作!)" #: code:addons/app_odoo_customize/static/src/xml/customize_user_menu.xml:8 #, python-format msgid "Deactivate the developer mode" -msgstr "取消激活开发者模式" +msgstr "取消开发者模式" #. module: app_odoo_customize #: model_terms:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings @@ -232,7 +242,7 @@ msgstr "您确认要删除指定数据?" #. module: app_odoo_customize #: model:ir.model.fields,help:app_odoo_customize.field_res_config_settings__app_system_name msgid "Setup System Name,which replace Odoo" -msgstr "" +msgstr "设定系统名称,代替原 Odoo 字样" #. module: app_odoo_customize #: model:ir.model.fields,field_description:app_odoo_customize.field_res_config_settings__group_show_author_in_apps diff --git a/app_odoo_customize/models/res_config_settings.py b/app_odoo_customize/models/res_config_settings.py index d44f77fa..e1cca2a3 100644 --- a/app_odoo_customize/models/res_config_settings.py +++ b/app_odoo_customize/models/res_config_settings.py @@ -31,6 +31,7 @@ class ResConfigSettings(models.TransientModel): app_support_url = fields.Char('Support Url') app_account_title = fields.Char('My Odoo.com Account Title') app_account_url = fields.Char('My Odoo.com Account Url') + app_enterprise_url = fields.Char('Customize Module Url(eg. Enterprise)') @api.model def get_values(self): @@ -56,6 +57,7 @@ class ResConfigSettings(models.TransientModel): app_support_url = ir_config.get_param('app_support_url', default='https://www.sunpop.cn/trial/') 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') res.update( app_system_name=app_system_name, app_show_lang=app_show_lang, @@ -73,7 +75,8 @@ class ResConfigSettings(models.TransientModel): app_documentation_dev_url=app_documentation_dev_url, app_support_url=app_support_url, app_account_title=app_account_title, - app_account_url=app_account_url + app_account_url=app_account_url, + app_enterprise_url=app_enterprise_url ) return res @@ -100,8 +103,15 @@ class ResConfigSettings(models.TransientModel): ir_config.set_param("app_support_url", self.app_support_url or "https://www.sunpop.cn/trial/") 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") + + def set_module_url(self): + sql = "UPDATE ir_module_module SET website = '%s' WHERE license like '%s' and website <> ''" % (self.app_enterprise_url, 'OEEL%') + try: + self._cr.execute(sql) + except Exception as e: + pass - @api.multi def remove_sales(self): to_removes = [ # 清除销售单据 diff --git a/app_odoo_customize/readme.md b/app_odoo_customize/readme.md index 830023bb..7bbabce9 100644 --- a/app_odoo_customize/readme.md +++ b/app_odoo_customize/readme.md @@ -26,6 +26,7 @@ You can config odoo, make it look like your own platform. 21. Can clear and reset account chart. Be cautious 22. Update online manual and developer document to odoo12 23. Add reset or clear website blog data +24. Customize Odoo Native Module(eg. Enterprise) Url This module can help to white label the Odoo. Also helpful for training and support for your odoo end-user. @@ -61,17 +62,25 @@ https://www.sunpop.cn 21. 清除并重置会计科目表 22. 全新升级将odoo12用户及开发手册导航至国内网站,或者自己定义的网站 23. 增加清除网站数据功能 +24. 自定义 odoo 原生模块跳转的url(比如企业版模块) 使用方法:将解压后的 app_odoo_customize 放到 odoo的 addons目录下,激活开发者模式,应用-->更新应用列表, 找到 "App odoo Customize"模块,安装即可。 ## 其它技术资源: -#### odoo10-windows64位高性能最新绿色版下载及制作方法-提速50% -https://www.sunpop.cn/odoo10_fast_x64_download/ -#### Odoo10离线中文用户手册下载 -https://www.sunpop.cn/odoo10_user_manual_document_offline/ -#### Odoo10离线开发手册下载-含python教程,jquery参考,Jinja2模板,PostgresSQL参考(odoo开发必备) -https://www.sunpop.cn/odoo10_developer_document_offline/ +# Odoo12在线用户手册(长期更新) +# https://www.sunpop.cn/documentation/user/12.0/en/index.html +# Odoo12在线开发者手册(长期更新) +# https://www.sunpop.cn/documentation/12.0/index.html + +# Odoo10在线中文用户手册(长期更新) +# https://www.sunpop.cn/documentation/user/10.0/zh_CN/index.html + +# Odoo10离线中文用户手册下载 +# https://www.sunpop.cn/odoo10_user_manual_document_offline/ +# Odoo10离线开发手册下载-含python教程,jquery参考,Jinja2模板,PostgresSQL参考(odoo开发必备) +# https://www.sunpop.cn/odoo10_developer_document_offline/ +# description: diff --git a/app_odoo_customize/static/description/banner.gif b/app_odoo_customize/static/description/banner.gif index 41f5a523..0e52c5de 100644 Binary files a/app_odoo_customize/static/description/banner.gif and b/app_odoo_customize/static/description/banner.gif differ diff --git a/app_odoo_customize/static/description/banner.png b/app_odoo_customize/static/description/banner.png index 4804071f..a9ff7b91 100644 Binary files a/app_odoo_customize/static/description/banner.png and b/app_odoo_customize/static/description/banner.png differ diff --git a/app_odoo_customize/static/description/index.html b/app_odoo_customize/static/description/index.html index 620a2c4a..0600a372 100644 --- a/app_odoo_customize/static/description/index.html +++ b/app_odoo_customize/static/description/index.html @@ -6,6 +6,8 @@

This moduld allows user to quickly customize and debranding Odoo. Quick debug, Language Switcher, Online Documentation Access,Quick Data Clear.

Support Odoo 12, 11, 10, 9. Including communicate and enterprise version.

+

Update: v12.19.04.17

+

Add Customize Odoo Native Module(eg. Enterprise) Url

Update: v12.19.3.15

Add reset or clear website blog data

Update: v12.19.3.12

@@ -158,6 +160,17 @@ +
+
+

Customize Module Url(eg. Enterprise).

+
+
+ +
+
+
+
@@ -169,6 +182,7 @@
+
diff --git a/app_odoo_customize/static/description/set21.jpg b/app_odoo_customize/static/description/set21.jpg new file mode 100644 index 00000000..bdb3c94a Binary files /dev/null and b/app_odoo_customize/static/description/set21.jpg differ diff --git a/app_odoo_customize/views/app_theme_config_settings_view.xml b/app_odoo_customize/views/app_theme_config_settings_view.xml index a05078f8..b14dc378 100644 --- a/app_odoo_customize/views/app_theme_config_settings_view.xml +++ b/app_odoo_customize/views/app_theme_config_settings_view.xml @@ -98,6 +98,11 @@
+