mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
update odoo customize
This commit is contained in:
@@ -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',
|
||||
|
||||
74
app_odoo_customize/data/ir_module_module.xml
Normal file
74
app_odoo_customize/data/ir_module_module.xml
Normal file
@@ -0,0 +1,74 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
|
||||
<record model="ir.module.module" id="base.module_web_studio">
|
||||
<field name="website">https://odoo.com/page/studio?utm_source=db&utm_medium=module</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.module.module" id="base.module_timesheet_grid">
|
||||
<field name="website">https://www.odoo.com/page/timesheet-mobile-app?utm_source=db&utm_medium=module</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.module.module" id="base.module_account_accountant">
|
||||
<field name="website">https://www.odoo.com/page/accounting?utm_source=db&utm_medium=module</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.module.module" id="base.module_helpdesk">
|
||||
<field name="website">https://www.odoo.com/page/helpdesk?utm_source=db&utm_medium=module</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.module.module" id="base.module_hr_appraisal">
|
||||
<field name="website">https://www.odoo.com/page/appraisal?utm_source=db&utm_medium=module</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.module.module" id="base.module_marketing_automation">
|
||||
<field name="website">https://www.odoo.com/page/marketing-automation?utm_source=db&utm_medium=module</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.module.module" id="base.module_mrp_plm">
|
||||
<field name="website">https://www.odoo.com/page/mrp-plm?utm_source=db&utm_medium=module</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.module.module" id="base.module_quality_control">
|
||||
<field name="website">https://www.odoo.com/page/quality-management-software?utm_source=db&utm_medium=module</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.module.module" id="base.module_sale_ebay">
|
||||
<field name="website">https://www.odoo.com/page/sales?utm_source=db&utm_medium=module</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.module.module" id="base.module_project_forecast">
|
||||
<field name="website">https://www.odoo.com/page/project?utm_source=db&utm_medium=module</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.module.module" id="base.module_sale_subscription">
|
||||
<field name="website">https://www.odoo.com/page/subscriptions?utm_source=db&utm_medium=module</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.module.module" id="base.module_sign">
|
||||
<field name="website">https://www.odoo.com/page/sign?utm_source=db&utm_medium=module</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.module.module" id="base.module_stock_barcode">
|
||||
<field name="website">https://www.odoo.com/page/warehouse?utm_source=db&utm_medium=module</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.module.module" id="base.module_voip">
|
||||
<field name="website">https://www.odoo.com/page/crm?utm_source=db&utm_medium=module</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.module.module" id="base.module_website_calendar">
|
||||
<field name="website">https://www.odoo.com/page/appointments?utm_source=db&utm_medium=module</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.module.module" id="base.module_mrp_workorder">
|
||||
<field name="icon">/base/static/img/icons/mrp_workorder.png</field>
|
||||
<field name="website">https://www.odoo.com/page/mrp-cloud-software?utm_source=db&utm_medium=module</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.module.module" id="base.module_web_mobile">
|
||||
<field name="website">https://play.google.com/store/apps/details?id=com.odoo.mobile</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
@@ -16,8 +16,12 @@
|
||||
# description:
|
||||
|
||||
def pre_init_hook(cr):
|
||||
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
|
||||
# cr.execute("")
|
||||
|
||||
def post_init_hook(cr, registry):
|
||||
pass
|
||||
|
||||
@@ -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 "<span class=\"col-3 col-lg-2 text-left\">制造</span>"
|
||||
#. module: app_odoo_customize
|
||||
#: model_terms:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
||||
msgid "<span class=\"col-3 col-lg-2 text-left\">POS</span>"
|
||||
msgstr "<span class=\"col-3 col-lg-2 text-left\">POS</span>"
|
||||
msgstr "<span class=\"col-3 col-lg-2 text-left\">POS收银</span>"
|
||||
|
||||
#. 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
|
||||
|
||||
@@ -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 = [
|
||||
# 清除销售单据
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 180 KiB After Width: | Height: | Size: 215 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 116 KiB After Width: | Height: | Size: 125 KiB |
@@ -6,6 +6,8 @@
|
||||
<p>This moduld allows user to quickly customize and debranding Odoo. Quick debug, Language Switcher,
|
||||
Online Documentation Access,Quick Data Clear. </p>
|
||||
<p>Support Odoo 12, 11, 10, 9. Including communicate and enterprise version. </p>
|
||||
<h3>Update: v12.19.04.17</h3>
|
||||
<p>Add Customize Odoo Native Module(eg. Enterprise) Url</p>
|
||||
<h3>Update: v12.19.3.15</h3>
|
||||
<p>Add reset or clear website blog data</p>
|
||||
<h3>Update: v12.19.3.12</h3>
|
||||
@@ -158,6 +160,17 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="oe_row oe_spaced" style="max-width: 95%;">
|
||||
<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'>Customize Module Url(eg. Enterprise).</h2>
|
||||
</div>
|
||||
<div class="oe_demo oe_screenshot">
|
||||
<img src="set21.jpg" style="border:1px solid black"/>
|
||||
<br/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="oe_row oe_spaced" style="max-width: 95%;">
|
||||
<div class="oe_demo"
|
||||
style="margin: 20px auto; padding: 0 15px 0 0; border:none; border-top:solid 1px #dedede; width: 96%;">
|
||||
@@ -169,6 +182,7 @@
|
||||
<br/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
<section class="oe_container oe_dark">
|
||||
|
||||
BIN
app_odoo_customize/static/description/set21.jpg
Normal file
BIN
app_odoo_customize/static/description/set21.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 90 KiB |
@@ -98,6 +98,11 @@
|
||||
<div>
|
||||
<field name="app_account_url"/>
|
||||
</div>
|
||||
<label for="app_enterprise_url"/>
|
||||
<div>
|
||||
<field name="app_enterprise_url" class="oe_inline"/>
|
||||
<button string="Click to set" type="object" name="set_module_url" class="ml8 oe_highlight"/>
|
||||
</div>
|
||||
</group>
|
||||
<div class="mt16 o_settings_container" name="data-clean">
|
||||
<h2 name="data-clean" class="o_horizontal_separator">Data Cleaning (Be careful to do that!)</h2>
|
||||
|
||||
Reference in New Issue
Block a user