add quick upgrade

This commit is contained in:
ivan deng
2018-09-30 04:16:16 +08:00
parent 51696c6efe
commit 329a88a3e0
9 changed files with 83 additions and 23 deletions

View File

@@ -52,6 +52,7 @@ You can config odoo, make it look like your own platform.
17. Stop Odoo Auto Subscribe(Performance Improve) 17. Stop Odoo Auto Subscribe(Performance Improve)
18. Show/Hide Author and Website in Apps Dashboard 18. Show/Hide Author and Website in Apps Dashboard
19. One Click to clear all data (Sometime pls click twice) 19. One Click to clear all data (Sometime pls click twice)
20. Show quick upgrade in app dashboard
This module can help to white label the Odoo. This module can help to white label the Odoo.
Also helpful for training and support for your odoo end-user. Also helpful for training and support for your odoo end-user.

View File

@@ -1,10 +1,19 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<openerp> <openerp>
<data noupdate="0"> <data noupdate="0">
<record id="group_show_author_in_apps" model="res.groups"> <record id="group_show_author_in_apps" model="res.groups">
<field name="name">Show Author and Website in Apps Dashboard</field> <field name="name">Show Author and Website in Apps Dashboard</field>
<field name="category_id" ref="base.module_category_hidden"/> <field name="category_id" ref="base.module_category_hidden"/>
</record> </record>
<record id="group_show_quick_upgrade" model="res.groups">
<field name="name">Show Quick Upgrade in Apps Dashboard</field>
<field name="category_id" ref="base.module_category_hidden"/>
</record>
<!--系统设置默认值-->
<!--1 默认显示快速升级-->
<record id="base.group_user" model="res.groups">
<field name="implied_ids"
eval="[(4, ref('app_odoo_customize.group_show_quick_upgrade'))]"/>
</record>
</data> </data>
</openerp> </openerp>

View File

@@ -4,10 +4,10 @@
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Odoo Server 11.0+e-20180313\n" "Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-03-22 17:49+0000\n" "POT-Creation-Date: 2018-09-29 20:12+0000\n"
"PO-Revision-Date: 2018-03-22 17:49+0000\n" "PO-Revision-Date: 2018-09-29 20:12+0000\n"
"Last-Translator: <>\n" "Last-Translator: <>\n"
"Language-Team: \n" "Language-Team: \n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
@@ -173,11 +173,6 @@ msgstr "显示名称"
msgid "Documentation Url" msgid "Documentation Url"
msgstr "用户手册链接" msgstr "用户手册链接"
#. module: app_odoo_customize
#: model:ir.model,name:app_odoo_customize.model_mail_thread
msgid "Email Thread"
msgstr "Email线程"
#. module: app_odoo_customize #. module: app_odoo_customize
#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_id #: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_id
msgid "ID" msgid "ID"
@@ -304,6 +299,12 @@ msgstr "显示快速调试"
msgid "Show Quick Language Switcher" msgid "Show Quick Language Switcher"
msgstr "显示快速多语言切换" msgstr "显示快速多语言切换"
#. module: app_odoo_customize
#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_group_show_quick_upgrade
#: model:res.groups,name:app_odoo_customize.group_show_quick_upgrade
msgid "Show Quick Upgrade in Apps Dashboard"
msgstr "在应用面板显示快速升级按键"
#. module: app_odoo_customize #. module: app_odoo_customize
#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_app_show_share #: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_app_show_share
msgid "Show Share Dashboard" msgid "Show Share Dashboard"
@@ -350,6 +351,21 @@ msgstr "Uncheck to hide the Odoo Share Dashboard"
msgid "Uncheck to hide the Powered by text" msgid "Uncheck to hide the Powered by text"
msgstr "不勾选则不显示Odoo Powered by" msgstr "不勾选则不显示Odoo Powered by"
#. module: app_odoo_customize
#: model:ir.model.fields,help:app_odoo_customize.field_app_theme_config_settings_group_show_quick_upgrade
msgid "Uncheck to show normal install in Apps Dashboard"
msgstr "Uncheck to show normal install in Apps Dashboard"
#. module: app_odoo_customize
#: model:ir.ui.view,arch_db:app_odoo_customize.app_module_view_kanban
msgid "Uninstall"
msgstr "卸载"
#. module: app_odoo_customize
#: model:ir.ui.view,arch_db:app_odoo_customize.app_module_view_kanban
msgid "Upgrade"
msgstr "升级"
#. module: app_odoo_customize #. module: app_odoo_customize
#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings #: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
msgid "User Menu" msgid "User Menu"
@@ -405,11 +421,6 @@ msgstr "个性化odoo设置"
msgid "ir.ui.view" msgid "ir.ui.view"
msgstr "ir.ui.view" msgstr "ir.ui.view"
#. module: app_odoo_customize
#: model:ir.ui.menu,name:base.menu_app_group
msgid "odooApp"
msgstr "odooApp"
#. module: app_odoo_customize #. module: app_odoo_customize
#: model:ir.actions.act_window,name:app_odoo_customize.action_app_theme_config #: model:ir.actions.act_window,name:app_odoo_customize.action_app_theme_config
#: model:ir.ui.menu,name:app_odoo_customize.menu_app_theme_config #: model:ir.ui.menu,name:app_odoo_customize.menu_app_theme_config

View File

@@ -27,6 +27,8 @@ class AppThemeConfigSettings(models.TransientModel):
app_stop_subscribe = fields.Boolean('Stop Odoo Subscribe(Performance Improve)', help=u"Check to stop Odoo Subscribe function") app_stop_subscribe = fields.Boolean('Stop Odoo Subscribe(Performance Improve)', help=u"Check to stop Odoo Subscribe function")
group_show_author_in_apps = fields.Boolean(string="Show Author and Website in Apps Dashboard", implied_group='app_odoo_customize.group_show_author_in_apps', group_show_author_in_apps = fields.Boolean(string="Show Author and Website in Apps Dashboard", implied_group='app_odoo_customize.group_show_author_in_apps',
help=u"Uncheck to Hide Author and Website in Apps Dashboard") help=u"Uncheck to Hide Author and Website in Apps Dashboard")
group_show_quick_upgrade = fields.Boolean(string="Show Quick Upgrade in Apps Dashboard", implied_group='app_odoo_customize.group_show_quick_upgrade',
help=u"Uncheck to show normal install in Apps Dashboard")
app_documentation_url = fields.Char('Documentation Url') app_documentation_url = fields.Char('Documentation Url')
app_documentation_dev_url = fields.Char('Developer Documentation Url') app_documentation_dev_url = fields.Char('Developer Documentation Url')
@@ -92,7 +94,6 @@ class AppThemeConfigSettings(models.TransientModel):
ir_config.set_param("app_show_share", self.app_show_share or "False") ir_config.set_param("app_show_share", self.app_show_share or "False")
ir_config.set_param("app_show_poweredby", self.app_show_poweredby or "False") ir_config.set_param("app_show_poweredby", self.app_show_poweredby or "False")
ir_config.set_param("app_stop_subscribe", self.app_stop_subscribe or "False") ir_config.set_param("app_stop_subscribe", self.app_stop_subscribe or "False")
# ir_config.set_param("group_show_author_in_apps", self.group_show_author_in_apps or "False")
ir_config.set_param("app_documentation_url", ir_config.set_param("app_documentation_url",
self.app_documentation_url or "http://www.sunpop.cn/documentation/user/10.0/en/index.html") self.app_documentation_url or "http://www.sunpop.cn/documentation/user/10.0/en/index.html")

View File

@@ -1,7 +1,7 @@
##App Odoo Customize(Debranding Title,Language,Documentation,Quick Debug,Quick Data Clear) ##App Odoo Customize(Debranding Title,Language,Documentation,Quick Debug,Quick Data Clear)
============ ============
White label odoo. White label odoo.
Support Odoo 11, 10, 9. Support Odoo 12, 11, 10, 9. Including communicate and enterprise version.
You can config odoo, make it look like your own platform. You can config odoo, make it look like your own platform.
1. Deletes Odoo label in footer 1. Deletes Odoo label in footer
2. Replaces "Odoo" in Windows title 2. Replaces "Odoo" in Windows title
@@ -21,7 +21,9 @@ You can config odoo, make it look like your own platform.
16. Fix odoo reload module translation bug while enable english language 16. Fix odoo reload module translation bug while enable english language
17. Stop Odoo Auto Subscribe(Performance Improve) 17. Stop Odoo Auto Subscribe(Performance Improve)
18. Show/Hide Author and Website in Apps Dashboard (odoo 11 only) 18. Show/Hide Author and Website in Apps Dashboard (odoo 11 only)
19. Set System Icon (odoo 10 only) 19. One Click to clear all data (Sometime pls click twice)
20. Show quick upgrade in app dashboard
This module can help to white label the Odoo. This module can help to white label the Odoo.
Also helpful for training and support for your odoo end-user. Also helpful for training and support for your odoo end-user.
The user can get the help document just by one click. The user can get the help document just by one click.
@@ -31,6 +33,7 @@ http://www.sunpop.cn
## 在符合odoo开源协议的前提下去除odoo版权信息自定义你的odoo ## 在符合odoo开源协议的前提下去除odoo版权信息自定义你的odoo
可完全自行设置下列 odoo 选项,让 odoo 看上去像是你的软件产品 可完全自行设置下列 odoo 选项,让 odoo 看上去像是你的软件产品
支持odoo 12, 11, 10, 9 版本,社区版企业版通用
1. 删除菜单导航页脚的 Odoo 标签 1. 删除菜单导航页脚的 Odoo 标签
2. 将弹出窗口中 "Odoo" 设置为自定义名称 2. 将弹出窗口中 "Odoo" 设置为自定义名称
3. 自定义用户菜单中的 Documentation, Support, About 的链接 3. 自定义用户菜单中的 Documentation, Support, About 的链接
@@ -50,6 +53,7 @@ http://www.sunpop.cn
17. 可停用odoo自动订阅功能避免“同样对象关注2次”bug同时提升性能 17. 可停用odoo自动订阅功能避免“同样对象关注2次”bug同时提升性能
18. 显示/隐藏应用的作者和网站-在应用安装面板中 18. 显示/隐藏应用的作者和网站-在应用安装面板中
19. 一键清除所有数据视当前数据情况有时需点击2次 19. 一键清除所有数据视当前数据情况有时需点击2次
20. 在应用面板显示快速升级按键
使用方法:将解压后的 app_odoo_customize 放到 odoo的 addons目录下激活开发者模式应用-->更新应用列表, 使用方法:将解压后的 app_odoo_customize 放到 odoo的 addons目录下激活开发者模式应用-->更新应用列表,
找到 "App odoo Customize"模块,安装即可。 找到 "App odoo Customize"模块,安装即可。

View File

@@ -5,6 +5,9 @@
<div class="oe_demo" style=" margin: 30px auto 0; padding: 0 15px 0 0; border:none; width: 96%;"> <div class="oe_demo" style=" margin: 30px auto 0; padding: 0 15px 0 0; border:none; width: 96%;">
<p>This moduld allows user to quickly customize and debranding Odoo. Quick debug, Language Switcher, <p>This moduld allows user to quickly customize and debranding Odoo. Quick debug, Language Switcher,
Online Documentation Access,Quick Data Clear. </p> Online Documentation Access,Quick Data Clear. </p>
<p>Support Odoo 12, 11, 10, 9. Including communicate and enterprise version. </p>
<h3>Update: v11.0.9.30</h3>
<p>Add 20. Show quick upgrade in app dashboard</p>
<h3>Update: v11.0.9.25</h3> <h3>Update: v11.0.9.25</h3>
<p>Now ready for odoo 12, please email to me. guohuadeng@hotmail.com</p> <p>Now ready for odoo 12, please email to me. guohuadeng@hotmail.com</p>
<h3>Update: v11.0.7.23</h3> <h3>Update: v11.0.7.23</h3>
@@ -82,7 +85,7 @@
<h2 class='oe_mt32'>How to use: Go to Settings -> odooApp Settings</h2> <h2 class='oe_mt32'>How to use: Go to Settings -> odooApp Settings</h2>
</div> </div>
<div class="oe_demo oe_screenshot"> <div class="oe_demo oe_screenshot">
<img src="set1.png" style="border:1px solid black"/> <img src="set1.jpg" style="border:1px solid black"/>
<br/> <br/>
</div> </div>
</div> </div>
@@ -134,7 +137,7 @@
<p>You can quickly delete all the test data in Apps: Sales/POS/Purchase/MRP/Inventory/Accounting/Message/Workflow etc.</p> <p>You can quickly delete all the test data in Apps: Sales/POS/Purchase/MRP/Inventory/Accounting/Message/Workflow etc.</p>
</div> </div>
<div class="oe_demo oe_screenshot"> <div class="oe_demo oe_screenshot">
<img src="set3.png" style="border:1px solid black"/> <img src="set3.jpg" style="border:1px solid black"/>
<br/> <br/>
</div> </div>
</div> </div>

View File

@@ -2,3 +2,11 @@
height: 20px; height: 20px;
margin: 2px; margin: 2px;
} }
.align_upgrade_uninstall{
float: right !important;
vertical-align: bottom;
position: absolute;
bottom: 5px;
right: 5px;
margin-right: 0;
}

View File

@@ -17,9 +17,9 @@
<field name="app_system_name"/> <field name="app_system_name"/>
</div> </div>
<label string="Online Support"/> <label string="Online Support"/>
<div> <h4>
<a href="http://www.sunpop.cn" target="_blank">Visit our website for more apps and Support. http://www.sunpop.cn</a> <a href="http://www.sunpop.cn" class="text-danger" target="_blank">Visit our website for more apps and Support. http://www.sunpop.cn</a>
</div> </h4>
</group> </group>
<group string="User Menu"> <group string="User Menu">
<label string="Item to Show"/> <label string="Item to Show"/>
@@ -68,6 +68,10 @@
<field name="group_show_author_in_apps"/> <field name="group_show_author_in_apps"/>
<label for="group_show_author_in_apps"/> <label for="group_show_author_in_apps"/>
</div> </div>
<div>
<field name="group_show_quick_upgrade"/>
<label for="group_show_quick_upgrade"/>
</div>
</div> </div>
</group> </group>
<group string="User Menu Content"> <group string="User Menu Content">

View File

@@ -6,12 +6,31 @@
<field name="model">ir.module.module</field> <field name="model">ir.module.module</field>
<field name="inherit_id" ref="base.module_form" /> <field name="inherit_id" ref="base.module_form" />
<field name="arch" type="xml"> <field name="arch" type="xml">
<!--是否显示作者-->
<h3 class="oe_fade" position="attributes"> <h3 class="oe_fade" position="attributes">
<attribute name="groups">app_odoo_customize.group_show_author_in_apps</attribute> <attribute name="groups">app_odoo_customize.group_show_author_in_apps</attribute>
</h3> </h3>
<field name="website" position="attributes"> <field name="website" position="attributes">
<attribute name="groups">app_odoo_customize.group_show_author_in_apps</attribute> <attribute name="groups">app_odoo_customize.group_show_author_in_apps</attribute>
</field> </field>
</field> </field>
</record> </record>
<record id="app_module_view_kanban" model="ir.ui.view">
<field name="name">ir.module.module.kanban.inherit.base</field>
<field name="model">ir.module.module</field>
<field name="inherit_id" ref="base.module_view_kanban"/>
<field name="arch" type="xml">
<!--显示快速升级-->
<xpath expr="//span" position="replace" groups="app_odoo_customize.group_show_quick_upgrade"/>
<xpath expr="//div[@class='oe_module_action']" position="after" groups="app_odoo_customize.group_show_quick_upgrade">
<div class="row pull-right align_upgrade_uninstall">
<button type="object" class="btn btn-success btn-xs" name="button_immediate_upgrade" states="installed">Upgrade</button>
<button type="object" class="btn btn-default btn-xs" name="button_uninstall_wizard" states="installed">Uninstall</button>
</div>
</xpath>
</field>
</record>
</odoo> </odoo>