diff --git a/app_odoo_customize/__init__.py b/app_odoo_customize/__init__.py index 50b5fd50..1bd1ac88 100644 --- a/app_odoo_customize/__init__.py +++ b/app_odoo_customize/__init__.py @@ -1,4 +1,8 @@ # -*- coding: utf-8 -*- + from . import models +from .hooks import pre_init_hook +from .hooks import post_init_hook + diff --git a/app_odoo_customize/__manifest__.py b/app_odoo_customize/__manifest__.py index 1d368139..86d3ffce 100644 --- a/app_odoo_customize/__manifest__.py +++ b/app_odoo_customize/__manifest__.py @@ -1,19 +1,26 @@ # -*- coding: utf-8 -*- -# Created on 2017-11-05 +# Created on 2018-11-26 # author: 广州尚鹏,http://www.sunpop.cn # email: 300883@qq.com # resource of Sunpop # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -# Odoo在线用户手册(长期更新) +# Odoo12在线用户手册(长期更新) # http://www.sunpop.cn/documentation/user/12.0/en/index.html +# Odoo12在线开发者手册(长期更新) +# http://www.sunpop.cn/documentation/12.0/index.html + +# Odoo10在线中文用户手册(长期更新) +# http://www.sunpop.cn/documentation/user/10.0/zh_CN/index.html + # Odoo10离线中文用户手册下载 # http://www.sunpop.cn/odoo10_user_manual_document_offline/ # Odoo10离线开发手册下载-含python教程,jquery参考,Jinja2模板,PostgresSQL参考(odoo开发必备) # http://www.sunpop.cn/odoo10_developer_document_offline/ # description: + { 'name': 'App Odoo Customize(Backend Debranding Title,Language,Documentation,Quick Debug,Clear Data)', 'version': '12.0.11.25', @@ -28,39 +35,38 @@ odoo debrand, odoo debranding, customize my odoo. """, 'description': """ - -App Odoo Customize(Debranding Title,Language,Documentation,Quick Debug) -============ -White label odoo. -Support Odoo 12, 11, 10, 9. -You can config odoo, make it look like your own platform. -1. Deletes Odoo label in footer -2. Replaces "Odoo" in Windows title -3. Customize Documentation, Support, About links and title in usermenu -4. Adds "Developer mode" link to the top right-hand User Menu. -5. Adds Quick Language Switcher to the top right-hand User Menu. -6. Adds Country flags to the top right-hand User Menu. -7. Adds English and Chinese user documentation access to the top right-hand User Menu. -8. Adds developer documentation access to the top right-hand User Menu. -9. Customize "My odoo.com account" button -10. Standalone setting panel, easy to setup. -11. Provide 236 country flags. -12. Multi-language Support. -13. Change Powered by Odoo in login screen.(Please change '../views/app_odoo_customize_view.xml' #15) -14. Quick delete test data in Apps: Sales/POS/Purchase/MRP/Inventory/Accounting/Project/Message/Workflow etc. -15. Reset All the Sequence to beginning of 1: SO/PO/MO/Invoice... -16. Fix odoo reload module translation bug while enable english language -17. Stop Odoo Auto Subscribe(Performance Improve) -18. Show/Hide Author and Website in Apps Dashboard -19. One Click to clear all data (Sometime pls click twice) -20. Show quick upgrade in app dashboard, click to show module info not go to odoo.com -21. Can clear and reset account chart. Be cautious. -22. Update online manual and developer document to odoo12. - -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. - + + App Odoo Customize(Debranding Title,Language,Documentation,Quick Debug) + ============ + White label odoo. + Support Odoo 12, 11, 10, 9. + You can config odoo, make it look like your own platform. + 1. Deletes Odoo label in footer + 2. Replaces "Odoo" in Windows title + 3. Customize Documentation, Support, About links and title in usermenu + 4. Adds "Developer mode" link to the top right-hand User Menu. + 5. Adds Quick Language Switcher to the top right-hand User Menu. + 6. Adds Country flags to the top right-hand User Menu. + 7. Adds English and Chinese user documentation access to the top right-hand User Menu. + 8. Adds developer documentation access to the top right-hand User Menu. + 9. Customize "My odoo.com account" button + 10. Standalone setting panel, easy to setup. + 11. Provide 236 country flags. + 12. Multi-language Support. + 13. Change Powered by Odoo in login screen.(Please change '../views/app_odoo_customize_view.xml' #15) + 14. Quick delete test data in Apps: Sales/POS/Purchase/MRP/Inventory/Accounting/Project/Message/Workflow etc. + 15. Reset All the Sequence to beginning of 1: SO/PO/MO/Invoice... + 16. Fix odoo reload module translation bug while enable english language + 17. Stop Odoo Auto Subscribe(Performance Improve) + 18. Show/Hide Author and Website in Apps Dashboard + 19. One Click to clear all data (Sometime pls click twice) + 20. Show quick upgrade in app dashboard, click to show module info not go to odoo.com + 21. Can clear and reset account chart. Be cautious. + 22. Update online manual and developer document to odoo12. + + 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.png'], 'depends': ['base', 'web', 'mail'], @@ -74,13 +80,16 @@ The user can get the help document just by one click. 'data/res_groups.xml', 'security/ir.model.access.csv', ], - 'demo': [], - 'test': [ + 'qweb': [ + 'static/src/xml/*.xml', ], + 'demo': [], + 'test': [], + 'css': [], + 'js': [], + 'pre_init_hook': 'pre_init_hook', + 'post_init_hook': 'post_init_hook', 'installable': True, 'application': True, 'auto_install': False, - 'qweb': [ - 'static/src/xml/customize_user_menu.xml', - ], } diff --git a/app_odoo_customize/hooks.py b/app_odoo_customize/hooks.py new file mode 100644 index 00000000..042336f3 --- /dev/null +++ b/app_odoo_customize/hooks.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- + +# Created on 2018-10-12 +# author: 广州尚鹏,http://www.sunpop.cn +# email: 300883@qq.com +# resource of Sunpop +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +# Odoo在线中文用户手册(长期更新) +# http://www.sunpop.cn/documentation/user/10.0/zh_CN/index.html + +# Odoo10离线中文用户手册下载 +# http://www.sunpop.cn/odoo10_user_manual_document_offline/ +# Odoo10离线开发手册下载-含python教程,jquery参考,Jinja2模板,PostgresSQL参考(odoo开发必备) +# http://www.sunpop.cn/odoo10_developer_document_offline/ +# description: + +def pre_init_hook(cr): + pass + # cr.execute("") + +def post_init_hook(cr, registry): + pass + # cr.execute("")