add 18. Show/Hide Author and Website in Apps Dashboard

This commit is contained in:
ivan deng
2018-03-23 02:00:08 +08:00
parent 300738848c
commit f00c2bfadc
14 changed files with 127 additions and 41 deletions

View File

@@ -47,6 +47,7 @@ You can config odoo, make it look like your own platform.
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
This module can help to white label the Odoo.
Also helpful for training and support for your odoo end-user.
@@ -58,8 +59,10 @@ The user can get the help document just by one click.
'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/res_groups.xml',
],
'demo': [],
'test': [

View File

@@ -46,7 +46,7 @@
<field name="key">app_stop_subscribe</field>
<field name="value">False</field>
</record>
<record id="app_documentation_url" model="ir.config_parameter">
<field name="key">app_documentation_url</field>
<field name="value">http://www.sunpop.cn/documentation/user/10.0/zh_CN/index.html</field>

View File

@@ -0,0 +1,10 @@
<?xml version="1.0"?>
<openerp>
<data noupdate="0">
<record id="group_show_author_in_apps" model="res.groups">
<field name="name">Show Author and Website in Apps Dashboard</field>
<field name="category_id" ref="base.module_category_hidden"/>
</record>
</data>
</openerp>

View File

@@ -4,10 +4,10 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0+e-20171107\n"
"Project-Id-Version: Odoo Server 11.0+e-20180313\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-01-10 11:41+0000\n"
"PO-Revision-Date: 2018-01-10 11:41+0000\n"
"POT-Creation-Date: 2018-03-22 17:49+0000\n"
"PO-Revision-Date: 2018-03-22 17:49+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -57,7 +57,7 @@ msgstr "取消"
#. module: app_odoo_customize
#: model:ir.model.fields,help:app_odoo_customize.field_app_theme_config_settings_app_stop_subscribe
msgid "Check to stop Odoo Subscribe function"
msgstr "Check to stop Odoo Subscribe function"
msgstr "选中可停止odoo内置的用户消息订阅"
#. module: app_odoo_customize
#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_create_uid
@@ -186,12 +186,12 @@ msgstr "显示/隐藏菜单项"
#. module: app_odoo_customize
#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings___last_update
msgid "Last Modified on"
msgstr "最后修改"
msgstr "最后修改时间"
#. module: app_odoo_customize
#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_write_uid
msgid "Last Updated by"
msgstr "最后更新"
msgstr "最后更新"
#. module: app_odoo_customize
#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_write_date
@@ -228,11 +228,6 @@ msgstr "POS门店"
msgid "Please confirm to delete the select data?"
msgstr "确认删除指定数据?"
#. module: app_odoo_customize
#: model:ir.ui.view,arch_db:app_odoo_customize.replace_login
msgid "Powered by <span>odooApp</span>"
msgstr "技术支持 <span>odooApp</span>"
#. module: app_odoo_customize
#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
msgid "Purchase"
@@ -248,6 +243,12 @@ msgstr "销售"
msgid "Setup System Name,which replace Odoo"
msgstr "设置系统名称取代Odoo"
#. module: app_odoo_customize
#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_group_show_author_in_apps
#: model:res.groups,name:app_odoo_customize.group_show_author_in_apps
msgid "Show Author and Website in Apps Dashboard"
msgstr "显示应用的作者和网站-在应用安装面板中"
#. module: app_odoo_customize
#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_app_show_documentation_dev
msgid "Show Developer Documentation"
@@ -309,6 +310,11 @@ msgstr "支持链接"
msgid "System Name"
msgstr "系统名称"
#. module: app_odoo_customize
#: model:ir.model.fields,help:app_odoo_customize.field_app_theme_config_settings_group_show_author_in_apps
msgid "Uncheck to Hide Author and Website in Apps Dashboard"
msgstr "Uncheck to Hide Author and Website in Apps Dashboard"
#. module: app_odoo_customize
#: model:ir.model.fields,help:app_odoo_customize.field_app_theme_config_settings_app_show_enterprise
msgid "Uncheck to hide the Enterprise tag"
@@ -379,17 +385,17 @@ msgstr "个性化odoo设置"
msgid "ir.ui.view"
msgstr "ir.ui.view"
#. module: app_odoo_customize
#: model:ir.ui.menu,name:app_odoo_customize.menu_app_group
msgid "odooApp"
msgstr "odooApp"
#. module: app_odoo_customize
#: 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
msgid "odooApp Customize"
msgstr "odooApp 定制"
#. module: app_odoo_customize
#: model:ir.ui.menu,name:app_odoo_customize.menu_app_group
msgid "odooApp"
msgstr "odooApp"
#. module: app_odoo_customize
#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
msgid "odooApp Customize Settings"

View File

@@ -25,6 +25,8 @@ class AppThemeConfigSettings(models.TransientModel):
app_show_share = fields.Boolean('Show Share Dashboard', help=u"Uncheck to hide the Odoo Share Dashboard")
app_show_poweredby = fields.Boolean('Show Powered by Odoo', help=u"Uncheck to hide the Powered by text")
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',
help=u"Uncheck to Hide Author and Website in Apps Dashboard")
app_documentation_url = fields.Char('Documentation Url')
app_documentation_dev_url = fields.Char('Developer Documentation Url')
@@ -67,7 +69,7 @@ class AppThemeConfigSettings(models.TransientModel):
app_show_share=app_show_share,
app_show_poweredby=app_show_poweredby,
app_stop_subscribe=app_stop_subscribe,
app_documentation_url=app_documentation_url,
app_documentation_dev_url=app_documentation_dev_url,
app_support_url=app_support_url,
@@ -90,6 +92,7 @@ class AppThemeConfigSettings(models.TransientModel):
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_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",
self.app_documentation_url or "http://www.sunpop.cn/documentation/user/10.0/en/index.html")
@@ -109,7 +112,7 @@ class AppThemeConfigSettings(models.TransientModel):
['sale.order', ],
]
try:
for line in to_removes :
for line in to_removes:
obj_name = line[0]
obj = self.pool.get(obj_name)
if obj and obj._table_exist:
@@ -134,7 +137,7 @@ class AppThemeConfigSettings(models.TransientModel):
['product.template', ],
]
try:
for line in to_removes :
for line in to_removes:
obj_name = line[0]
obj = self.pool.get(obj_name)
if obj and obj._table_exist:
@@ -149,7 +152,7 @@ class AppThemeConfigSettings(models.TransientModel):
sql = "update ir_sequence set number_next=1 where code ='product.product';"
self._cr.execute(sql)
except Exception as e:
pass #raise Warning(e)
pass # raise Warning(e)
return True
def remove_product_attribute(self):
@@ -159,14 +162,14 @@ class AppThemeConfigSettings(models.TransientModel):
['product.attribute', ],
]
try:
for line in to_removes :
for line in to_removes:
obj_name = line[0]
obj = self.pool.get(obj_name)
if obj and obj._table_exist:
sql = "delete from %s" % obj._table
self._cr.execute(sql)
except Exception as e:
pass #raise Warning(e)
pass # raise Warning(e)
return True
@api.multi
@@ -177,7 +180,7 @@ class AppThemeConfigSettings(models.TransientModel):
['pos.order', ],
]
try:
for line in to_removes :
for line in to_removes:
obj_name = line[0]
obj = self.pool.get(obj_name)
if obj and obj._table_exist:
@@ -192,7 +195,7 @@ class AppThemeConfigSettings(models.TransientModel):
sql = "update ir_sequence set number_next=1 where code ='pos.order';"
self._cr.execute(sql)
except Exception as e:
pass #raise Warning(e)
pass # raise Warning(e)
return True
@api.multi
@@ -205,7 +208,7 @@ class AppThemeConfigSettings(models.TransientModel):
['purchase.requisition', ],
]
try:
for line in to_removes :
for line in to_removes:
obj_name = line[0]
obj = self.pool.get(obj_name)
if obj and obj._table_exist:
@@ -220,7 +223,7 @@ class AppThemeConfigSettings(models.TransientModel):
sql = "update ir_sequence set number_next=1 where code ='purchase.order';"
self._cr.execute(sql)
except Exception as e:
pass #raise Warning(e)
pass # raise Warning(e)
return True
@api.multi
@@ -236,7 +239,7 @@ class AppThemeConfigSettings(models.TransientModel):
['change.production.qty', ],
]
try:
for line in to_removes :
for line in to_removes:
obj_name = line[0]
obj = self.pool.get(obj_name)
if obj and obj._table_exist:
@@ -251,7 +254,7 @@ class AppThemeConfigSettings(models.TransientModel):
sql = "update ir_sequence set number_next=1 where (code ='mrp.production' or code ='mrp.unbuild');"
self._cr.execute(sql)
except Exception as e:
pass #raise Warning(e)
pass # raise Warning(e)
return True
@api.multi
@@ -262,14 +265,14 @@ class AppThemeConfigSettings(models.TransientModel):
['mrp.bom', ],
]
try:
for line in to_removes :
for line in to_removes:
obj_name = line[0]
obj = self.pool.get(obj_name)
if obj and obj._table_exist:
sql = "delete from %s" % obj._table
self._cr.execute(sql)
except Exception as e:
pass #raise Warning(e)
pass # raise Warning(e)
return True
@api.multi
@@ -292,7 +295,7 @@ class AppThemeConfigSettings(models.TransientModel):
['procurement.group', ],
]
try:
for line in to_removes :
for line in to_removes:
obj_name = line[0]
obj = self.pool.get(obj_name)
if obj and obj._table_exist:
@@ -334,7 +337,7 @@ class AppThemeConfigSettings(models.TransientModel):
");"
self._cr.execute(sql)
except Exception as e:
pass #raise Warning(e)
pass # raise Warning(e)
return True
@api.multi
@@ -354,7 +357,7 @@ class AppThemeConfigSettings(models.TransientModel):
['account.move', ],
]
try:
for line in to_removes :
for line in to_removes:
obj_name = line[0]
obj = self.pool.get(obj_name)
if obj and obj._table_exist:
@@ -382,7 +385,7 @@ class AppThemeConfigSettings(models.TransientModel):
seq.write({
'number_next': 1,
})
# todo: 帐单 or BILL/%
# todo: 帐单 or BILL/%
sql = "update ir_sequence set number_next=1 where (" \
"code ='account.reconcile' " \
"or code ='account.payment.customer.invoice' " \
@@ -399,7 +402,7 @@ class AppThemeConfigSettings(models.TransientModel):
");"
self._cr.execute(sql)
except Exception as e:
pass #raise Warning(e)
pass # raise Warning(e)
return True
@api.multi
@@ -410,14 +413,14 @@ class AppThemeConfigSettings(models.TransientModel):
['mail.followers', ],
]
try:
for line in to_removes :
for line in to_removes:
obj_name = line[0]
obj = self.pool.get(obj_name)
if obj and obj._table_exist:
sql = "delete from %s" % obj._table
self._cr.execute(sql)
except Exception as e:
pass #raise Warning(e)
pass # raise Warning(e)
return True
@api.multi
@@ -428,7 +431,7 @@ class AppThemeConfigSettings(models.TransientModel):
['wkf.instance', ],
]
try:
for line in to_removes :
for line in to_removes:
obj_name = line[0]
obj = self.pool.get(obj_name)
if obj and obj._table_exist:
@@ -436,5 +439,5 @@ class AppThemeConfigSettings(models.TransientModel):
self._cr.execute(sql)
except Exception as e:
pass #raise Warning(e)
pass # raise Warning(e)
return True

View File

@@ -20,6 +20,7 @@ You can config odoo, make it look like your own platform.
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
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.
@@ -46,6 +47,7 @@ http://www.sunpop.cn
15. 将各类单据的序号重置从1开始包括SO/PO/MO/Invoice 等
16. 修复odoo启用英文后模块不显示中文的Bug
17. 可停用odoo自动订阅功能避免“同样对象关注2次”bug同时提升性能
18. 显示/隐藏应用的作者和网站-在应用安装面板中
使用方法:将解压后的 app_odoo_customize 放到 odoo的 addons目录下激活开发者模式应用-->更新应用列表,
找到 "App odoo Customize"模块,安装即可。

View File

@@ -5,7 +5,8 @@
<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,
Online Documentation Access,Quick Data Clear. </p>
<h3>Lastest update: v11.0.3.16, 2018-03-16</h3>
<h3>Lastest update: v11.0.3.23</h3>
<p>Add 18. Show/Hide Author and Website in Apps Dashboard</p>
<p>Fix some bug.</p>
<h1>More Powerful UI addons:
<a class="btn btn-primary mb16" href="https://www.odoo.com/apps/modules/10.0/app_ui_enhance/">App UI enhance</a>
@@ -30,6 +31,7 @@
<li>15. Reset All the Sequence to beginning of 1: SO/PO/MO/Invoice...</li>
<li>16. Fix odoo reload module translation bug while enable english language</li>
<li>17. Stop Odoo Auto Subscribe(Performance Improve)</li>
<li>18. Show/Hide Author and Website in Apps Dashboard</li>
</ul>
<p>
This module can help to white label the Odoo.
@@ -80,6 +82,23 @@
</div>
</div>
<div class="oe_row oe_spaced" style="max-width: 800px;">
<div class="oe_demo"
style="margin: 20px auto; padding: 0 15px 0 0; border:none; border-top:solid 1px #dedede; width: 96%;">
<h2 class='oe_mt32'>Show/Hide Author and Website in Apps Dashboard</h2>
</div>
<p>Before</p>
<div class="oe_demo oe_screenshot">
<img src="set18-1.jpg" style="border:1px solid black"/>
<br/>
</div>
<p>After uncheck "Show Author and Website in Apps Dashboard"</p>
<div class="oe_demo oe_screenshot">
<img src="set18-2.jpg" style="border:1px solid black"/>
<br/>
</div>
</div>
<div class="oe_row oe_spaced" style="max-width: 800px;">
<div class="oe_demo"
style="margin: 20px auto; padding: 0 15px 0 0; border:none; border-top:solid 1px #dedede; width: 96%;">

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

View File

@@ -64,6 +64,10 @@
<field name="app_stop_subscribe"/>
<label for="app_stop_subscribe"/>
</div>
<div>
<field name="group_show_author_in_apps"/>
<label for="group_show_author_in_apps"/>
</div>
</div>
</group>
<group string="User Menu Content">

View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Modules -->
<record id="app_module_form" model="ir.ui.view">
<field name="name">app.ir.module.module.form</field>
<field name="model">ir.module.module</field>
<field name="inherit_id" ref="base.module_form" />
<field name="arch" type="xml">
<h3 class="oe_fade" position="attributes">
<attribute name="groups">app_odoo_customize.group_show_author_in_apps</attribute>
</h3>
<field name="website" position="attributes">
<attribute name="groups">app_odoo_customize.group_show_author_in_apps</attribute>
</field>
</field>
</record>
</odoo>