mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
add 18. Show/Hide Author and Website in Apps Dashboard
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -5,3 +5,4 @@
|
|||||||
/app_odoo_customize/_resource
|
/app_odoo_customize/_resource
|
||||||
/app_web_studio
|
/app_web_studio
|
||||||
/web_studio
|
/web_studio
|
||||||
|
.bat
|
||||||
17
app.conf
Normal file
17
app.conf
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
[options]
|
||||||
|
addons_path = d:\odoo10\app-odoo, d:\odoo11-ent\source\odoo\addons
|
||||||
|
data_dir = odoofile
|
||||||
|
db_host = 127.0.0.1
|
||||||
|
db_maxconn = 64
|
||||||
|
db_name = False
|
||||||
|
db_user = odoo
|
||||||
|
db_password = odoo
|
||||||
|
db_port = 5432
|
||||||
|
loglevel = debug
|
||||||
|
bin_path = runtime\win32\wkhtmltopdf
|
||||||
|
pg_path = runtime\pgsql\bin
|
||||||
|
db_template = template1
|
||||||
|
|
||||||
|
longpolling_port = 8072
|
||||||
|
xmlrpc_port = 8011
|
||||||
|
|
||||||
@@ -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...
|
15. Reset All the Sequence to beginning of 1: SO/PO/MO/Invoice...
|
||||||
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
|
||||||
|
|
||||||
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.
|
||||||
@@ -58,8 +59,10 @@ The user can get the help document just by one click.
|
|||||||
'data': [
|
'data': [
|
||||||
'views/app_odoo_customize_view.xml',
|
'views/app_odoo_customize_view.xml',
|
||||||
'views/app_theme_config_settings_view.xml',
|
'views/app_theme_config_settings_view.xml',
|
||||||
|
'views/ir_model_view.xml',
|
||||||
# data
|
# data
|
||||||
'data/ir_config_parameter.xml',
|
'data/ir_config_parameter.xml',
|
||||||
|
'data/res_groups.xml',
|
||||||
],
|
],
|
||||||
'demo': [],
|
'demo': [],
|
||||||
'test': [
|
'test': [
|
||||||
|
|||||||
10
app_odoo_customize/data/res_groups.xml
Normal file
10
app_odoo_customize/data/res_groups.xml
Normal 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>
|
||||||
@@ -4,10 +4,10 @@
|
|||||||
#
|
#
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
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"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2018-01-10 11:41+0000\n"
|
"POT-Creation-Date: 2018-03-22 17:49+0000\n"
|
||||||
"PO-Revision-Date: 2018-01-10 11:41+0000\n"
|
"PO-Revision-Date: 2018-03-22 17:49+0000\n"
|
||||||
"Last-Translator: <>\n"
|
"Last-Translator: <>\n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
@@ -57,7 +57,7 @@ msgstr "取消"
|
|||||||
#. module: app_odoo_customize
|
#. module: app_odoo_customize
|
||||||
#: model:ir.model.fields,help:app_odoo_customize.field_app_theme_config_settings_app_stop_subscribe
|
#: model:ir.model.fields,help:app_odoo_customize.field_app_theme_config_settings_app_stop_subscribe
|
||||||
msgid "Check to stop Odoo Subscribe function"
|
msgid "Check to stop Odoo Subscribe function"
|
||||||
msgstr "Check to stop Odoo Subscribe function"
|
msgstr "选中可停止odoo内置的用户消息订阅"
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
#. module: app_odoo_customize
|
||||||
#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_create_uid
|
#: 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
|
#. module: app_odoo_customize
|
||||||
#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings___last_update
|
#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings___last_update
|
||||||
msgid "Last Modified on"
|
msgid "Last Modified on"
|
||||||
msgstr "最后修改日"
|
msgstr "最后修改时间"
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
#. module: app_odoo_customize
|
||||||
#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_write_uid
|
#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_write_uid
|
||||||
msgid "Last Updated by"
|
msgid "Last Updated by"
|
||||||
msgstr "最后更新人"
|
msgstr "最后更新者"
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
#. module: app_odoo_customize
|
||||||
#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_write_date
|
#: 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?"
|
msgid "Please confirm to delete the select data?"
|
||||||
msgstr "确认删除指定数据?"
|
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
|
#. 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 "Purchase"
|
msgid "Purchase"
|
||||||
@@ -248,6 +243,12 @@ msgstr "销售"
|
|||||||
msgid "Setup System Name,which replace Odoo"
|
msgid "Setup System Name,which replace Odoo"
|
||||||
msgstr "设置系统名称,取代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
|
#. module: app_odoo_customize
|
||||||
#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_app_show_documentation_dev
|
#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_app_show_documentation_dev
|
||||||
msgid "Show Developer Documentation"
|
msgid "Show Developer Documentation"
|
||||||
@@ -309,6 +310,11 @@ msgstr "支持链接"
|
|||||||
msgid "System Name"
|
msgid "System Name"
|
||||||
msgstr "系统名称"
|
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
|
#. module: app_odoo_customize
|
||||||
#: model:ir.model.fields,help:app_odoo_customize.field_app_theme_config_settings_app_show_enterprise
|
#: model:ir.model.fields,help:app_odoo_customize.field_app_theme_config_settings_app_show_enterprise
|
||||||
msgid "Uncheck to hide the Enterprise tag"
|
msgid "Uncheck to hide the Enterprise tag"
|
||||||
@@ -379,17 +385,17 @@ 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:app_odoo_customize.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
|
||||||
msgid "odooApp Customize"
|
msgid "odooApp Customize"
|
||||||
msgstr "odooApp 定制"
|
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
|
#. 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 "odooApp Customize Settings"
|
msgid "odooApp Customize Settings"
|
||||||
|
|||||||
@@ -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_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_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")
|
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_url = fields.Char('Documentation Url')
|
||||||
app_documentation_dev_url = fields.Char('Developer Documentation Url')
|
app_documentation_dev_url = fields.Char('Developer Documentation 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_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")
|
||||||
@@ -109,7 +112,7 @@ class AppThemeConfigSettings(models.TransientModel):
|
|||||||
['sale.order', ],
|
['sale.order', ],
|
||||||
]
|
]
|
||||||
try:
|
try:
|
||||||
for line in to_removes :
|
for line in to_removes:
|
||||||
obj_name = line[0]
|
obj_name = line[0]
|
||||||
obj = self.pool.get(obj_name)
|
obj = self.pool.get(obj_name)
|
||||||
if obj and obj._table_exist:
|
if obj and obj._table_exist:
|
||||||
@@ -134,7 +137,7 @@ class AppThemeConfigSettings(models.TransientModel):
|
|||||||
['product.template', ],
|
['product.template', ],
|
||||||
]
|
]
|
||||||
try:
|
try:
|
||||||
for line in to_removes :
|
for line in to_removes:
|
||||||
obj_name = line[0]
|
obj_name = line[0]
|
||||||
obj = self.pool.get(obj_name)
|
obj = self.pool.get(obj_name)
|
||||||
if obj and obj._table_exist:
|
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';"
|
sql = "update ir_sequence set number_next=1 where code ='product.product';"
|
||||||
self._cr.execute(sql)
|
self._cr.execute(sql)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
pass #raise Warning(e)
|
pass # raise Warning(e)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def remove_product_attribute(self):
|
def remove_product_attribute(self):
|
||||||
@@ -159,14 +162,14 @@ class AppThemeConfigSettings(models.TransientModel):
|
|||||||
['product.attribute', ],
|
['product.attribute', ],
|
||||||
]
|
]
|
||||||
try:
|
try:
|
||||||
for line in to_removes :
|
for line in to_removes:
|
||||||
obj_name = line[0]
|
obj_name = line[0]
|
||||||
obj = self.pool.get(obj_name)
|
obj = self.pool.get(obj_name)
|
||||||
if obj and obj._table_exist:
|
if obj and obj._table_exist:
|
||||||
sql = "delete from %s" % obj._table
|
sql = "delete from %s" % obj._table
|
||||||
self._cr.execute(sql)
|
self._cr.execute(sql)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
pass #raise Warning(e)
|
pass # raise Warning(e)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
@api.multi
|
@api.multi
|
||||||
@@ -177,7 +180,7 @@ class AppThemeConfigSettings(models.TransientModel):
|
|||||||
['pos.order', ],
|
['pos.order', ],
|
||||||
]
|
]
|
||||||
try:
|
try:
|
||||||
for line in to_removes :
|
for line in to_removes:
|
||||||
obj_name = line[0]
|
obj_name = line[0]
|
||||||
obj = self.pool.get(obj_name)
|
obj = self.pool.get(obj_name)
|
||||||
if obj and obj._table_exist:
|
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';"
|
sql = "update ir_sequence set number_next=1 where code ='pos.order';"
|
||||||
self._cr.execute(sql)
|
self._cr.execute(sql)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
pass #raise Warning(e)
|
pass # raise Warning(e)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
@api.multi
|
@api.multi
|
||||||
@@ -205,7 +208,7 @@ class AppThemeConfigSettings(models.TransientModel):
|
|||||||
['purchase.requisition', ],
|
['purchase.requisition', ],
|
||||||
]
|
]
|
||||||
try:
|
try:
|
||||||
for line in to_removes :
|
for line in to_removes:
|
||||||
obj_name = line[0]
|
obj_name = line[0]
|
||||||
obj = self.pool.get(obj_name)
|
obj = self.pool.get(obj_name)
|
||||||
if obj and obj._table_exist:
|
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';"
|
sql = "update ir_sequence set number_next=1 where code ='purchase.order';"
|
||||||
self._cr.execute(sql)
|
self._cr.execute(sql)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
pass #raise Warning(e)
|
pass # raise Warning(e)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
@api.multi
|
@api.multi
|
||||||
@@ -236,7 +239,7 @@ class AppThemeConfigSettings(models.TransientModel):
|
|||||||
['change.production.qty', ],
|
['change.production.qty', ],
|
||||||
]
|
]
|
||||||
try:
|
try:
|
||||||
for line in to_removes :
|
for line in to_removes:
|
||||||
obj_name = line[0]
|
obj_name = line[0]
|
||||||
obj = self.pool.get(obj_name)
|
obj = self.pool.get(obj_name)
|
||||||
if obj and obj._table_exist:
|
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');"
|
sql = "update ir_sequence set number_next=1 where (code ='mrp.production' or code ='mrp.unbuild');"
|
||||||
self._cr.execute(sql)
|
self._cr.execute(sql)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
pass #raise Warning(e)
|
pass # raise Warning(e)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
@api.multi
|
@api.multi
|
||||||
@@ -262,14 +265,14 @@ class AppThemeConfigSettings(models.TransientModel):
|
|||||||
['mrp.bom', ],
|
['mrp.bom', ],
|
||||||
]
|
]
|
||||||
try:
|
try:
|
||||||
for line in to_removes :
|
for line in to_removes:
|
||||||
obj_name = line[0]
|
obj_name = line[0]
|
||||||
obj = self.pool.get(obj_name)
|
obj = self.pool.get(obj_name)
|
||||||
if obj and obj._table_exist:
|
if obj and obj._table_exist:
|
||||||
sql = "delete from %s" % obj._table
|
sql = "delete from %s" % obj._table
|
||||||
self._cr.execute(sql)
|
self._cr.execute(sql)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
pass #raise Warning(e)
|
pass # raise Warning(e)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
@api.multi
|
@api.multi
|
||||||
@@ -292,7 +295,7 @@ class AppThemeConfigSettings(models.TransientModel):
|
|||||||
['procurement.group', ],
|
['procurement.group', ],
|
||||||
]
|
]
|
||||||
try:
|
try:
|
||||||
for line in to_removes :
|
for line in to_removes:
|
||||||
obj_name = line[0]
|
obj_name = line[0]
|
||||||
obj = self.pool.get(obj_name)
|
obj = self.pool.get(obj_name)
|
||||||
if obj and obj._table_exist:
|
if obj and obj._table_exist:
|
||||||
@@ -334,7 +337,7 @@ class AppThemeConfigSettings(models.TransientModel):
|
|||||||
");"
|
");"
|
||||||
self._cr.execute(sql)
|
self._cr.execute(sql)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
pass #raise Warning(e)
|
pass # raise Warning(e)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
@api.multi
|
@api.multi
|
||||||
@@ -354,7 +357,7 @@ class AppThemeConfigSettings(models.TransientModel):
|
|||||||
['account.move', ],
|
['account.move', ],
|
||||||
]
|
]
|
||||||
try:
|
try:
|
||||||
for line in to_removes :
|
for line in to_removes:
|
||||||
obj_name = line[0]
|
obj_name = line[0]
|
||||||
obj = self.pool.get(obj_name)
|
obj = self.pool.get(obj_name)
|
||||||
if obj and obj._table_exist:
|
if obj and obj._table_exist:
|
||||||
@@ -399,7 +402,7 @@ class AppThemeConfigSettings(models.TransientModel):
|
|||||||
");"
|
");"
|
||||||
self._cr.execute(sql)
|
self._cr.execute(sql)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
pass #raise Warning(e)
|
pass # raise Warning(e)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
@api.multi
|
@api.multi
|
||||||
@@ -410,14 +413,14 @@ class AppThemeConfigSettings(models.TransientModel):
|
|||||||
['mail.followers', ],
|
['mail.followers', ],
|
||||||
]
|
]
|
||||||
try:
|
try:
|
||||||
for line in to_removes :
|
for line in to_removes:
|
||||||
obj_name = line[0]
|
obj_name = line[0]
|
||||||
obj = self.pool.get(obj_name)
|
obj = self.pool.get(obj_name)
|
||||||
if obj and obj._table_exist:
|
if obj and obj._table_exist:
|
||||||
sql = "delete from %s" % obj._table
|
sql = "delete from %s" % obj._table
|
||||||
self._cr.execute(sql)
|
self._cr.execute(sql)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
pass #raise Warning(e)
|
pass # raise Warning(e)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
@api.multi
|
@api.multi
|
||||||
@@ -428,7 +431,7 @@ class AppThemeConfigSettings(models.TransientModel):
|
|||||||
['wkf.instance', ],
|
['wkf.instance', ],
|
||||||
]
|
]
|
||||||
try:
|
try:
|
||||||
for line in to_removes :
|
for line in to_removes:
|
||||||
obj_name = line[0]
|
obj_name = line[0]
|
||||||
obj = self.pool.get(obj_name)
|
obj = self.pool.get(obj_name)
|
||||||
if obj and obj._table_exist:
|
if obj and obj._table_exist:
|
||||||
@@ -436,5 +439,5 @@ class AppThemeConfigSettings(models.TransientModel):
|
|||||||
self._cr.execute(sql)
|
self._cr.execute(sql)
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
pass #raise Warning(e)
|
pass # raise Warning(e)
|
||||||
return True
|
return True
|
||||||
|
|||||||
@@ -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...
|
15. Reset All the Sequence to beginning of 1: SO/PO/MO/Invoice...
|
||||||
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
|
||||||
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.
|
||||||
@@ -46,6 +47,7 @@ http://www.sunpop.cn
|
|||||||
15. 将各类单据的序号重置,从1开始,包括:SO/PO/MO/Invoice 等
|
15. 将各类单据的序号重置,从1开始,包括:SO/PO/MO/Invoice 等
|
||||||
16. 修复odoo启用英文后模块不显示中文的Bug
|
16. 修复odoo启用英文后模块不显示中文的Bug
|
||||||
17. 可停用odoo自动订阅功能,避免“同样对象关注2次”bug,同时提升性能
|
17. 可停用odoo自动订阅功能,避免“同样对象关注2次”bug,同时提升性能
|
||||||
|
18. 显示/隐藏应用的作者和网站-在应用安装面板中
|
||||||
|
|
||||||
使用方法:将解压后的 app_odoo_customize 放到 odoo的 addons目录下,激活开发者模式,应用-->更新应用列表,
|
使用方法:将解压后的 app_odoo_customize 放到 odoo的 addons目录下,激活开发者模式,应用-->更新应用列表,
|
||||||
找到 "App odoo Customize"模块,安装即可。
|
找到 "App odoo Customize"模块,安装即可。
|
||||||
|
|||||||
@@ -5,7 +5,8 @@
|
|||||||
<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>
|
||||||
<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>
|
<p>Fix some bug.</p>
|
||||||
<h1>More Powerful UI addons:
|
<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>
|
<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>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>16. Fix odoo reload module translation bug while enable english language</li>
|
||||||
<li>17. Stop Odoo Auto Subscribe(Performance Improve)</li>
|
<li>17. Stop Odoo Auto Subscribe(Performance Improve)</li>
|
||||||
|
<li>18. Show/Hide Author and Website in Apps Dashboard</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>
|
<p>
|
||||||
This module can help to white label the Odoo.
|
This module can help to white label the Odoo.
|
||||||
@@ -80,6 +82,23 @@
|
|||||||
</div>
|
</div>
|
||||||
</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_row oe_spaced" style="max-width: 800px;">
|
||||||
<div class="oe_demo"
|
<div class="oe_demo"
|
||||||
style="margin: 20px auto; padding: 0 15px 0 0; border:none; border-top:solid 1px #dedede; width: 96%;">
|
style="margin: 20px auto; padding: 0 15px 0 0; border:none; border-top:solid 1px #dedede; width: 96%;">
|
||||||
|
|||||||
BIN
app_odoo_customize/static/description/set18-1.jpg
Normal file
BIN
app_odoo_customize/static/description/set18-1.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 52 KiB |
BIN
app_odoo_customize/static/description/set18-2.jpg
Normal file
BIN
app_odoo_customize/static/description/set18-2.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 42 KiB |
@@ -64,6 +64,10 @@
|
|||||||
<field name="app_stop_subscribe"/>
|
<field name="app_stop_subscribe"/>
|
||||||
<label for="app_stop_subscribe"/>
|
<label for="app_stop_subscribe"/>
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
<field name="group_show_author_in_apps"/>
|
||||||
|
<label for="group_show_author_in_apps"/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</group>
|
</group>
|
||||||
<group string="User Menu Content">
|
<group string="User Menu Content">
|
||||||
|
|||||||
17
app_odoo_customize/views/ir_model_view.xml
Normal file
17
app_odoo_customize/views/ir_model_view.xml
Normal 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>
|
||||||
Reference in New Issue
Block a user