mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
update sunpop 为 odooai
This commit is contained in:
@@ -1,32 +1,32 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Created on 2018-11-26
|
||||
# author: 广州尚鹏,https://www.sunpop.cn
|
||||
# author: 欧度智能,https://www.odooai.cn
|
||||
# email: 300883@qq.com
|
||||
# resource of Sunpop
|
||||
# resource of odooai
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
# Odoo12在线用户手册(长期更新)
|
||||
# https://www.sunpop.cn/documentation/user/12.0/en/index.html
|
||||
# https://www.odooai.cn/documentation/user/12.0/en/index.html
|
||||
|
||||
# Odoo12在线开发者手册(长期更新)
|
||||
# https://www.sunpop.cn/documentation/12.0/index.html
|
||||
# https://www.odooai.cn/documentation/12.0/index.html
|
||||
|
||||
# Odoo10在线中文用户手册(长期更新)
|
||||
# https://www.sunpop.cn/documentation/user/10.0/zh_CN/index.html
|
||||
# https://www.odooai.cn/documentation/user/10.0/zh_CN/index.html
|
||||
|
||||
# Odoo10离线中文用户手册下载
|
||||
# https://www.sunpop.cn/odoo10_user_manual_document_offline/
|
||||
# https://www.odooai.cn/odoo10_user_manual_document_offline/
|
||||
# Odoo10离线开发手册下载-含python教程,jquery参考,Jinja2模板,PostgresSQL参考(odoo开发必备)
|
||||
# https://www.sunpop.cn/odoo10_developer_document_offline/
|
||||
# https://www.odooai.cn/odoo10_developer_document_offline/
|
||||
# description:
|
||||
|
||||
{
|
||||
'name': 'odoo 15,14,13 Customize OEM(Boost, Data reset)',
|
||||
'version': '13.22.04.26',
|
||||
'author': 'Sunpop.cn',
|
||||
'author': 'odooai.cn',
|
||||
'category': 'Productivity',
|
||||
'website': 'https://www.sunpop.cn',
|
||||
'website': 'https://www.odooai.cn',
|
||||
'license': 'LGPL-3',
|
||||
'sequence': 2,
|
||||
'summary': """
|
||||
|
||||
@@ -124,7 +124,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div style="text-align: center;"><a href="https://www.sunpop.cn" target="_blank"><img src="/digest/static/src/img/google_play.png" style="display: inline-block; height: 30px; margin-left: auto; margin-right: 12px;"/></a><a href="https://www.sunpop.cn" target="_blank"><img src="/digest/static/src/img/app_store.png" style="display: inline-block; height: 30px; margin-left: 12px; margin-right: auto;"/></a>
|
||||
<div style="text-align: center;"><a href="https://www.odooai.cn" target="_blank"><img src="/digest/static/src/img/google_play.png" style="display: inline-block; height: 30px; margin-left: auto; margin-right: 12px;"/></a><a href="https://www.odooai.cn" target="_blank"><img src="/digest/static/src/img/app_store.png" style="display: inline-block; height: 30px; margin-left: 12px; margin-right: auto;"/></a>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -12,12 +12,12 @@
|
||||
<function model="ir.config_parameter" name="set_param" eval="('app_show_enterprise', 'False')"/>
|
||||
<function model="ir.config_parameter" name="set_param" eval="('app_show_share', 'False')"/>
|
||||
<function model="ir.config_parameter" name="set_param" eval="('app_show_poweredby', 'False')"/>
|
||||
<function model="ir.config_parameter" name="set_param" eval="('app_documentation_url', 'https://www.sunpop.cn/documentation/user/13.0/zh_CN/index.html')"/>
|
||||
<function model="ir.config_parameter" name="set_param" eval="('app_documentation_dev_url', 'https://www.sunpop.cn/documentation/13.0/index.html')"/>
|
||||
<function model="ir.config_parameter" name="set_param" eval="('app_support_url', 'https://www.sunpop.cn/trial')"/>
|
||||
<function model="ir.config_parameter" name="set_param" eval="('app_documentation_url', 'https://www.odooai.cn/documentation/user/13.0/zh_CN/index.html')"/>
|
||||
<function model="ir.config_parameter" name="set_param" eval="('app_documentation_dev_url', 'https://www.odooai.cn/documentation/13.0/index.html')"/>
|
||||
<function model="ir.config_parameter" name="set_param" eval="('app_support_url', 'https://www.odooai.cn/trial')"/>
|
||||
<function model="ir.config_parameter" name="set_param" eval="('app_account_title', 'My Online Account')"/>
|
||||
<function model="ir.config_parameter" name="set_param" eval="('app_account_url', 'https://www.sunpop.cn/my-account')"/>
|
||||
<function model="ir.config_parameter" name="set_param" eval="('app_ribbon_name', 'Sunpop.cn')"/>
|
||||
<function model="ir.config_parameter" name="set_param" eval="('app_account_url', 'https://www.odooai.cn/my-account')"/>
|
||||
<function model="ir.config_parameter" name="set_param" eval="('app_ribbon_name', 'odooai.cn')"/>
|
||||
<function model="ir.config_parameter" name="set_param" eval="('app_ribbon_color', '#f0f0f0')"/>
|
||||
<function model="ir.config_parameter" name="set_param" eval="('app_ribbon_background_color', 'rgba(255,0,0,.4)')"/>
|
||||
</data>
|
||||
|
||||
@@ -2,67 +2,67 @@
|
||||
<odoo>
|
||||
<data>
|
||||
<record model="ir.module.module" id="base.module_web_studio">
|
||||
<field name="website">https://www.sunpop.cn</field>
|
||||
<field name="website">https://www.odooai.cn</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.module.module" id="base.module_timesheet_grid">
|
||||
<field name="website">https://www.sunpop.cn</field>
|
||||
<field name="website">https://www.odooai.cn</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.module.module" id="base.module_account_accountant">
|
||||
<field name="website">https://www.sunpop.cn</field>
|
||||
<field name="website">https://www.odooai.cn</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.module.module" id="base.module_helpdesk">
|
||||
<field name="website">https://www.sunpop.cn</field>
|
||||
<field name="website">https://www.odooai.cn</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.module.module" id="base.module_hr_appraisal">
|
||||
<field name="website">https://www.sunpop.cn</field>
|
||||
<field name="website">https://www.odooai.cn</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.module.module" id="base.module_marketing_automation">
|
||||
<field name="website">https://www.sunpop.cn</field>
|
||||
<field name="website">https://www.odooai.cn</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.module.module" id="base.module_mrp_plm">
|
||||
<field name="website">https://www.sunpop.cn</field>
|
||||
<field name="website">https://www.odooai.cn</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.module.module" id="base.module_quality_control">
|
||||
<field name="website">https://www.sunpop.cn</field>
|
||||
<field name="website">https://www.odooai.cn</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.module.module" id="base.module_sale_ebay">
|
||||
<field name="website">https://www.sunpop.cn</field>
|
||||
<field name="website">https://www.odooai.cn</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.module.module" id="base.module_sale_subscription">
|
||||
<field name="website">https://www.sunpop.cn</field>
|
||||
<field name="website">https://www.odooai.cn</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.module.module" id="base.module_sign">
|
||||
<field name="website">https://www.sunpop.cn</field>
|
||||
<field name="website">https://www.odooai.cn</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.module.module" id="base.module_stock_barcode">
|
||||
<field name="website">https://www.sunpop.cn</field>
|
||||
<field name="website">https://www.odooai.cn</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.module.module" id="base.module_voip">
|
||||
<field name="website">https://www.sunpop.cn</field>
|
||||
<field name="website">https://www.odooai.cn</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.module.module" id="base.module_website_calendar">
|
||||
<field name="website">https://www.sunpop.cn</field>
|
||||
<field name="website">https://www.odooai.cn</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.module.module" id="base.module_mrp_workorder">
|
||||
<field name="website">https://www.sunpop.cn</field>
|
||||
<field name="website">https://www.odooai.cn</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.module.module" id="base.module_web_mobile">
|
||||
<field name="website">https://www.sunpop.cn</field>
|
||||
<field name="website">https://www.odooai.cn</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<data noupdate="1">
|
||||
<!-- 创建数据库时首个公司信息 -->
|
||||
<record id="base.main_company" model="res.company">
|
||||
<field name="website">https://www.sunpop.cn</field>
|
||||
<field name="website">https://www.odooai.cn</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
@@ -1,18 +1,18 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Created on 2018-10-12
|
||||
# author: 广州尚鹏,https://www.sunpop.cn
|
||||
# author: 欧度智能,https://www.odooai.cn
|
||||
# email: 300883@qq.com
|
||||
# resource of Sunpop
|
||||
# resource of odooai
|
||||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
|
||||
|
||||
# Odoo在线中文用户手册(长期更新)
|
||||
# https://www.sunpop.cn/documentation/user/10.0/zh_CN/index.html
|
||||
# https://www.odooai.cn/documentation/user/10.0/zh_CN/index.html
|
||||
|
||||
# Odoo10离线中文用户手册下载
|
||||
# https://www.sunpop.cn/odoo10_user_manual_document_offline/
|
||||
# https://www.odooai.cn/odoo10_user_manual_document_offline/
|
||||
# Odoo10离线开发手册下载-含python教程,jquery参考,Jinja2模板,PostgresSQL参考(odoo开发必备)
|
||||
# https://www.sunpop.cn/odoo10_developer_document_offline/
|
||||
# https://www.odooai.cn/odoo10_developer_document_offline/
|
||||
# description:
|
||||
|
||||
from odoo import api, SUPERUSER_ID, _
|
||||
@@ -21,7 +21,7 @@ from odoo import api, SUPERUSER_ID, _
|
||||
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%')
|
||||
sql = "UPDATE ir_module_module SET website = '%s' WHERE license like '%s' and website <> ''" % ('https://www.odooai.cn', 'OEEL%')
|
||||
cr.execute(sql)
|
||||
cr.commit()
|
||||
except Exception as e:
|
||||
|
||||
@@ -19,8 +19,8 @@ msgstr ""
|
||||
#. openerp-web
|
||||
#: code:addons/app_odoo_customize/static/src/xml/res_config_edition.xml:0
|
||||
#, python-format
|
||||
msgid "(Sunpop.cn Professional Edition)"
|
||||
msgstr "(Sunpop.cn 专业版)"
|
||||
msgid "(odooai.cn Professional Edition)"
|
||||
msgstr "(odooai.cn 专业版)"
|
||||
|
||||
#. module: app_odoo_customize
|
||||
#: model_terms:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
||||
@@ -329,7 +329,7 @@ msgstr "您确认要删除指定数据?"
|
||||
#. module: app_odoo_customize
|
||||
#: model_terms:ir.ui.view,arch_db:app_odoo_customize.replace_login
|
||||
msgid "Powered by <span>odooApp</span>"
|
||||
msgstr "技术支持 <span>Sunpop.cn</span>"
|
||||
msgstr "技术支持 <span>odooai.cn</span>"
|
||||
|
||||
#. module: app_odoo_customize
|
||||
#: model:ir.actions.server,name:app_odoo_customize.action_server_module_multi_refresh_po
|
||||
@@ -496,8 +496,8 @@ msgstr "视图"
|
||||
|
||||
#. module: app_odoo_customize
|
||||
#: model_terms:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
||||
msgid "Visit our website for more apps and Support. https://www.sunpop.cn"
|
||||
msgstr "请访问我们的网站获取更多支持. http://www.sunpop.cn"
|
||||
msgid "Visit our website for more apps and Support. https://www.odooai.cn"
|
||||
msgstr "请访问我们的网站获取更多支持. http://www.odooai.cn"
|
||||
|
||||
#. module: app_odoo_customize
|
||||
#: model:ir.model,name:app_odoo_customize.model_web_environment_ribbon_backend
|
||||
|
||||
@@ -51,14 +51,14 @@ class ResConfigSettings(models.TransientModel):
|
||||
app_show_poweredby = True if ir_config.get_param('app_show_poweredby') == "True" else False
|
||||
|
||||
app_documentation_url = ir_config.get_param('app_documentation_url',
|
||||
default='https://www.sunpop.cn/documentation/user/12.0/en/index.html')
|
||||
default='https://www.odooai.cn/documentation/user/12.0/en/index.html')
|
||||
app_documentation_dev_url = ir_config.get_param('app_documentation_dev_url',
|
||||
default='https://www.sunpop.cn/documentation/12.0/index.html')
|
||||
app_support_url = ir_config.get_param('app_support_url', default='https://www.sunpop.cn/trial/')
|
||||
default='https://www.odooai.cn/documentation/12.0/index.html')
|
||||
app_support_url = ir_config.get_param('app_support_url', default='https://www.odooai.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')
|
||||
app_ribbon_name = ir_config.get_param('app_ribbon_name', default='*Sunpop.cn')
|
||||
app_account_url = ir_config.get_param('app_account_url', default='https://www.odooai.cn/my-account/')
|
||||
app_enterprise_url = ir_config.get_param('app_enterprise_url', default='https://www.odooai.cn')
|
||||
app_ribbon_name = ir_config.get_param('app_ribbon_name', default='*odooai.cn')
|
||||
res.update(
|
||||
app_system_name=app_system_name,
|
||||
app_show_lang=app_show_lang,
|
||||
@@ -96,14 +96,14 @@ class ResConfigSettings(models.TransientModel):
|
||||
ir_config.set_param("app_show_poweredby", self.app_show_poweredby or "False")
|
||||
|
||||
ir_config.set_param("app_documentation_url",
|
||||
self.app_documentation_url or "https://www.sunpop.cn/documentation/user/12.0/en/index.html")
|
||||
self.app_documentation_url or "https://www.odooai.cn/documentation/user/12.0/en/index.html")
|
||||
ir_config.set_param("app_documentation_dev_url",
|
||||
self.app_documentation_dev_url or "https://www.sunpop.cn/documentation/12.0/index.html")
|
||||
ir_config.set_param("app_support_url", self.app_support_url or "https://www.sunpop.cn/trial/")
|
||||
self.app_documentation_dev_url or "https://www.odooai.cn/documentation/12.0/index.html")
|
||||
ir_config.set_param("app_support_url", self.app_support_url or "https://www.odooai.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")
|
||||
ir_config.set_param("app_ribbon_name", self.app_ribbon_name or "*Sunpop.cn")
|
||||
ir_config.set_param("app_account_url", self.app_account_url or "https://www.odooai.cn/my-account/")
|
||||
ir_config.set_param("app_enterprise_url", self.app_enterprise_url or "https://www.odooai.cn")
|
||||
ir_config.set_param("app_ribbon_name", self.app_ribbon_name or "*odooai.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%')
|
||||
|
||||
@@ -36,7 +36,7 @@ Also helpful for training and support for your odoo end-user.
|
||||
The user can get the help document just by one click.
|
||||
|
||||
For more support
|
||||
https://www.sunpop.cn
|
||||
https://www.odooai.cn
|
||||
|
||||
## 在符合odoo开源协议的前提下,去除odoo版权信息,自定义你的odoo
|
||||
可完全自行设置下列 odoo 选项,让 odoo 看上去像是你的软件产品
|
||||
@@ -76,17 +76,17 @@ https://www.sunpop.cn
|
||||
|
||||
## 其它技术资源:
|
||||
# Odoo12在线用户手册(长期更新)
|
||||
# https://www.sunpop.cn/documentation/user/12.0/en/index.html
|
||||
# https://www.odooai.cn/documentation/user/12.0/en/index.html
|
||||
|
||||
# Odoo12在线开发者手册(长期更新)
|
||||
# https://www.sunpop.cn/documentation/12.0/index.html
|
||||
# https://www.odooai.cn/documentation/12.0/index.html
|
||||
|
||||
# Odoo10在线中文用户手册(长期更新)
|
||||
# https://www.sunpop.cn/documentation/user/10.0/zh_CN/index.html
|
||||
# https://www.odooai.cn/documentation/user/10.0/zh_CN/index.html
|
||||
|
||||
# Odoo10离线中文用户手册下载
|
||||
# https://www.sunpop.cn/odoo10_user_manual_document_offline/
|
||||
# https://www.odooai.cn/odoo10_user_manual_document_offline/
|
||||
# Odoo10离线开发手册下载-含python教程,jquery参考,Jinja2模板,PostgresSQL参考(odoo开发必备)
|
||||
# https://www.sunpop.cn/odoo10_developer_document_offline/
|
||||
# https://www.odooai.cn/odoo10_developer_document_offline/
|
||||
# description:
|
||||
|
||||
|
||||
@@ -20,12 +20,12 @@
|
||||
</h4>
|
||||
<h4 class="mt8">
|
||||
Also you can
|
||||
<a href="https://www.odoo.com/apps/modules/browse?author=Sunpop.cn" target="_blank">
|
||||
<a href="https://www.odoo.com/apps/modules/browse?author=odooai.cn" target="_blank">
|
||||
get more powerful odoo apps from us.
|
||||
</a>. like [superbar widget]
|
||||
</h4>
|
||||
<div class="oe_demo oe_screenshot">
|
||||
<a href="https://www.odoo.com/apps/modules/browse?author=Sunpop.cn" target="_blank">
|
||||
<a href="https://www.odoo.com/apps/modules/browse?author=odooai.cn" target="_blank">
|
||||
<img oe_demo oe_screenshot src="https://apps.odoocdn.com/apps/assets/13.0/app_web_superbar/superbar.gif"/>
|
||||
</a>
|
||||
</div>
|
||||
@@ -93,7 +93,7 @@
|
||||
<p>Add 18. Show/Hide Author and Website in Apps Dashboard</p>
|
||||
<h1 class="text-primary">More Powerful addons:</h1>
|
||||
<p class="">
|
||||
<a class="btn btn-block btn-success mt16 mb16" href="http://www.odoo.com/apps/modules/browse?author=Sunpop.cn">Sunpop.cn Awesome Odoo Addons</a>
|
||||
<a class="btn btn-block btn-success mt16 mb16" href="http://www.odoo.com/apps/modules/browse?author=odooai.cn">odooai.cn Awesome Odoo Addons</a>
|
||||
</p>
|
||||
<br>
|
||||
<h3>Odoo 13, 12, 11, 10 Support. Community and Enterprise version support</h3>
|
||||
@@ -282,7 +282,7 @@
|
||||
<div class="oe_mt16">
|
||||
<h4>
|
||||
Visit our website for more support.</h4>
|
||||
<h4>https://www.sunpop.cn</h4>
|
||||
<h4>https://www.odooai.cn</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -12,11 +12,11 @@ odoo.define('app_odoo_customize.UserMenu', function (require) {
|
||||
const session = require('web.session');
|
||||
var UserMenu = require('web.UserMenu');
|
||||
//避免错误,要再定义
|
||||
var documentation_url = 'https://www.sunpop.cn';
|
||||
var documentation_dev_url = 'https://www.sunpop.cn';
|
||||
var support_url = 'https://www.sunpop.cn';
|
||||
var documentation_url = 'https://www.odooai.cn';
|
||||
var documentation_dev_url = 'https://www.odooai.cn';
|
||||
var support_url = 'https://www.odooai.cn';
|
||||
var account_title = 'My Account';
|
||||
var account_url = 'https://www.sunpop.cn';
|
||||
var account_url = 'https://www.odooai.cn';
|
||||
|
||||
UserMenu.include({
|
||||
init: function () {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<t t-extend="res_config_edition">
|
||||
<t t-jquery=".user-heading h3" t-operation="replace">
|
||||
<h3>
|
||||
odooApp <t t-esc="widget.server_version"/> (Sunpop.cn Professional Edition)
|
||||
odooApp <t t-esc="widget.server_version"/> (odooai.cn Professional Edition)
|
||||
</h3>
|
||||
</t>
|
||||
</t>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<!-- some odoo version not support, please remove this if you are using odoo9 -->
|
||||
<template id="replace_login" name="Login Layout" inherit_id="web.login_layout">
|
||||
<xpath expr="//a[@target='_blank']" position="replace">
|
||||
<a href="https://www.sunpop.cn" target="_blank">Powered by <span>odooApp</span></a>
|
||||
<a href="https://www.odooai.cn" target="_blank">Powered by <span>odooApp</span></a>
|
||||
</xpath>
|
||||
</template>
|
||||
</odoo>
|
||||
@@ -17,7 +17,7 @@
|
||||
<div>
|
||||
<field name="app_system_name"/>
|
||||
<div>
|
||||
<a href="https://www.sunpop.cn" target="_blank">Visit our website for more apps and Support. https://www.sunpop.cn</a>
|
||||
<a href="https://www.odooai.cn" target="_blank">Visit our website for more apps and Support. https://www.odooai.cn</a>
|
||||
</div>
|
||||
</div>
|
||||
</group>
|
||||
|
||||
Reference in New Issue
Block a user