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 16 Customize OEM(Boost, Data reset)',
|
||||
'version': '16.22.12.29',
|
||||
'version': '16.23.02.06',
|
||||
'author': 'Sunpop.cn',
|
||||
'category': 'Productivity',
|
||||
'website': 'https://www.sunpop.cn',
|
||||
@@ -73,7 +73,7 @@
|
||||
'app_odoo_customize/static/src/scss/dialog.scss',
|
||||
'app_odoo_customize/static/src/js/app_window_title.js',
|
||||
'app_odoo_customize/static/src/js/user_menu.js',
|
||||
# 'app_odoo_customize/static/src/js/ribbon.js',
|
||||
'app_odoo_customize/static/src/js/ribbon.js',
|
||||
'app_odoo_customize/static/src/js/dialog.js',
|
||||
],
|
||||
},
|
||||
@@ -135,7 +135,7 @@
|
||||
The user can get the help document just by one click.
|
||||
## 在符合odoo开源协议的前提下,去除odoo版权信息,自定义你的odoo
|
||||
可完全自行设置下列 odoo 选项,让 odoo 看上去像是你的软件产品
|
||||
支持odoo 15,14,13,12, 11, 10, 9 版本,社区版企业版通用
|
||||
支持odoo 16,15,14,13,12, 11, 10, 9 版本,社区版企业版通用
|
||||
1. 删除菜单导航页脚的 Odoo 标签
|
||||
2. 将弹出窗口中 "Odoo" 设置为自定义名称
|
||||
3. 自定义用户菜单中的 Documentation, Support, About 的链接
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 13.0+e-20200628\n"
|
||||
"Project-Id-Version: Odoo Server 16.0-20221228\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-11-02 08:16+0000\n"
|
||||
"PO-Revision-Date: 2020-11-02 08:16+0000\n"
|
||||
"POT-Creation-Date: 2023-02-06 06:40+0000\n"
|
||||
"PO-Revision-Date: 2023-02-06 06:40+0000\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
@@ -16,7 +16,7 @@ msgstr ""
|
||||
"Plural-Forms: \n"
|
||||
|
||||
#. module: app_odoo_customize
|
||||
#. openerp-web
|
||||
#. odoo-javascript
|
||||
#: code:addons/app_odoo_customize/static/src/xml/res_config_edition.xml:0
|
||||
#, python-format
|
||||
msgid "(Sunpop.cn Professional Edition)"
|
||||
@@ -26,15 +26,13 @@ msgstr "(Sunpop.cn 专业版)"
|
||||
#: 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\">\n"
|
||||
" Accounting <span class=\"fa fa-lg fa-building-o\" title=\"Values set here are company-specific.\" groups=\"base.group_multi_company\"/>\n"
|
||||
" Accounting\n"
|
||||
" </span>"
|
||||
msgstr ""
|
||||
"<span class=\"col-3 col-lg-2 text-left\">\n"
|
||||
" 财务 <span class=\"fa fa-lg fa-building-o\" title=\"只处理当前公司的数据.\" groups=\"base.group_multi_company\"/>\n"
|
||||
" 财务\n"
|
||||
" </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\">All Business</span>"
|
||||
@@ -96,14 +94,22 @@ msgid "<span>Set to False to hide</span>"
|
||||
msgstr "<span>设置为 False 则不显示</span>"
|
||||
|
||||
#. module: app_odoo_customize
|
||||
#. openerp-web
|
||||
#. odoo-javascript
|
||||
#: code:addons/app_odoo_customize/static/src/js/user_menu.js:0
|
||||
#, python-format
|
||||
msgid "Activate Assets Debugging"
|
||||
msgstr "激活开发者模式 (assets)"
|
||||
|
||||
#. module: app_odoo_customize
|
||||
#. odoo-javascript
|
||||
#: code:addons/app_odoo_customize/static/src/js/user_menu.js:0
|
||||
#: code:addons/app_odoo_customize/static/src/xml/customize_user_menu.xml:0
|
||||
#, python-format
|
||||
msgid "Activate the developer mode"
|
||||
msgstr "激活开发者模式"
|
||||
|
||||
#. module: app_odoo_customize
|
||||
#. openerp-web
|
||||
#. odoo-javascript
|
||||
#: code:addons/app_odoo_customize/static/src/xml/customize_user_menu.xml:0
|
||||
#, python-format
|
||||
msgid "Activate the developer mode (with assets)"
|
||||
@@ -151,7 +157,7 @@ msgid "Data Cleaning (Be careful to do that!)"
|
||||
msgstr "数据清理(请谨慎操作!)"
|
||||
|
||||
#. module: app_odoo_customize
|
||||
#. openerp-web
|
||||
#. odoo-javascript
|
||||
#: code:addons/app_odoo_customize/static/src/xml/customize_user_menu.xml:0
|
||||
#, python-format
|
||||
msgid "Deactivate the developer mode"
|
||||
@@ -250,16 +256,18 @@ msgid "Developer Documentation Url"
|
||||
msgstr "开发者手册链接"
|
||||
|
||||
#. module: app_odoo_customize
|
||||
#. openerp-web
|
||||
#. odoo-javascript
|
||||
#: code:addons/app_odoo_customize/static/src/xml/customize_user_menu.xml:0
|
||||
#, python-format
|
||||
msgid "Developer Manual"
|
||||
msgstr "开发者手册"
|
||||
|
||||
#. module: app_odoo_customize
|
||||
#: model:ir.model.fields,field_description:app_odoo_customize.field_web_environment_ribbon_backend__display_name
|
||||
msgid "Display Name"
|
||||
msgstr "显示名称"
|
||||
#. odoo-javascript
|
||||
#: code:addons/app_odoo_customize/static/src/js/user_menu.js:0
|
||||
#, python-format
|
||||
msgid "Documentation"
|
||||
msgstr "支持文档"
|
||||
|
||||
#. module: app_odoo_customize
|
||||
#: model:ir.model.fields,field_description:app_odoo_customize.field_res_config_settings__app_documentation_url
|
||||
@@ -273,19 +281,21 @@ msgid "Export Translation"
|
||||
msgstr "导出翻译"
|
||||
|
||||
#. module: app_odoo_customize
|
||||
#: model:ir.model.fields,field_description:app_odoo_customize.field_web_environment_ribbon_backend__id
|
||||
msgid "ID"
|
||||
msgstr ""
|
||||
#: model:ir.model,name:app_odoo_customize.model_ir_http
|
||||
msgid "HTTP Routing"
|
||||
msgstr "HTTP 路由"
|
||||
|
||||
#. module: app_odoo_customize
|
||||
#: model:ir.model,name:app_odoo_customize.model_base_language_install
|
||||
msgid "Install Language"
|
||||
msgstr "安装语言"
|
||||
msgstr ""
|
||||
|
||||
#. module: app_odoo_customize
|
||||
#: model:ir.model.fields,field_description:app_odoo_customize.field_web_environment_ribbon_backend____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr ""
|
||||
#. odoo-javascript
|
||||
#: code:addons/app_odoo_customize/static/src/js/user_menu.js:0
|
||||
#, python-format
|
||||
msgid "Leave the Developer Tools"
|
||||
msgstr "离开开发者模式"
|
||||
|
||||
#. module: app_odoo_customize
|
||||
#: model:ir.ui.menu,name:app_odoo_customize.menu_app_demo_data
|
||||
@@ -313,6 +323,16 @@ msgstr "我的帐户显示标题"
|
||||
msgid "My Odoo.com Account Url"
|
||||
msgstr "我的帐户链接"
|
||||
|
||||
#. module: app_odoo_customize
|
||||
#: model_terms:ir.ui.view,arch_db:app_odoo_customize.app_view_model_data_search
|
||||
msgid "No Updatable"
|
||||
msgstr "无需更新"
|
||||
|
||||
#. module: app_odoo_customize
|
||||
#: model_terms:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
||||
msgid "Odoo Customize Setting"
|
||||
msgstr "odoo自定义设置"
|
||||
|
||||
#. module: app_odoo_customize
|
||||
#: model_terms:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
||||
msgid "Please confirm to delete the select data?"
|
||||
@@ -334,6 +354,11 @@ msgstr "刷新翻译"
|
||||
msgid "Reset Category And Location Complete Name"
|
||||
msgstr "重置品类及区位显示名"
|
||||
|
||||
#. module: app_odoo_customize
|
||||
#: model:ir.ui.menu,name:app_odoo_customize.menu_ir_cron
|
||||
msgid "Scheduled Actions"
|
||||
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"
|
||||
@@ -405,6 +430,13 @@ msgstr "显示分享Odoo"
|
||||
msgid "Show Support"
|
||||
msgstr "显示支持"
|
||||
|
||||
#. module: app_odoo_customize
|
||||
#. odoo-javascript
|
||||
#: code:addons/app_odoo_customize/static/src/js/user_menu.js:0
|
||||
#, python-format
|
||||
msgid "Support"
|
||||
msgstr "技术支持"
|
||||
|
||||
#. module: app_odoo_customize
|
||||
#: model:ir.model.fields,field_description:app_odoo_customize.field_res_config_settings__app_support_url
|
||||
msgid "Support Url"
|
||||
@@ -471,11 +503,6 @@ msgstr "用户菜单"
|
||||
msgid "User Menu Content"
|
||||
msgstr "菜单项具体操作设置"
|
||||
|
||||
#. module: app_odoo_customize
|
||||
#: model:ir.model,name:app_odoo_customize.model_ir_ui_view
|
||||
msgid "View"
|
||||
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"
|
||||
@@ -517,17 +544,12 @@ msgid "When enable,everyone login can see the debug menu"
|
||||
msgstr "启用后,会显示快速调试菜单"
|
||||
|
||||
#. module: app_odoo_customize
|
||||
#: model_terms:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
||||
msgid "White Label Setting"
|
||||
msgstr "个性化odoo设置"
|
||||
|
||||
#. module: app_odoo_customize
|
||||
#. openerp-web
|
||||
#. odoo-javascript
|
||||
#: code:addons/app_odoo_customize/static/src/xml/res_config_edition.xml:0
|
||||
#: model:ir.ui.menu,name:app_odoo_customize.menu_app_group
|
||||
#, python-format
|
||||
msgid "odooApp"
|
||||
msgstr ""
|
||||
msgstr "odooApp"
|
||||
|
||||
#. module: app_odoo_customize
|
||||
#: model_terms:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
||||
|
||||
@@ -6,13 +6,3 @@ from odoo import api, fields, models, _
|
||||
|
||||
class BaseLanguageInstall(models.TransientModel):
|
||||
_inherit = "base.language.install"
|
||||
|
||||
def lang_install(self):
|
||||
self.ensure_one()
|
||||
if self.overwrite:
|
||||
self.env.cr.execute("""
|
||||
delete from ir_translation
|
||||
where lang=%s
|
||||
""", (self.lang,))
|
||||
self.env.cr.commit()
|
||||
return super(BaseLanguageInstall, self).lang_install()
|
||||
|
||||
@@ -27,16 +27,30 @@ class IrModule(models.Model):
|
||||
# 更新翻译,当前语言
|
||||
def module_multi_refresh_po(self):
|
||||
lang = self.env.user.lang
|
||||
modules = self.browse(self.env.context.get('active_ids'))
|
||||
modules = self.filtered(lambda r: r.state == 'installed')
|
||||
# 先清理, odoo原生经常清理不干净
|
||||
for rec in modules:
|
||||
translate = self.env['ir.translation'].search([
|
||||
('lang', '=', lang),
|
||||
('module', '=', rec.name)
|
||||
])
|
||||
translate.sudo().unlink()
|
||||
# odoo 16中,不再使用 ir.translation,直接使用json字段
|
||||
# for rec in modules:
|
||||
# translate = self.env['ir.translation'].search([
|
||||
# ('lang', '=', lang),
|
||||
# ('module', '=', rec.name)
|
||||
# ])
|
||||
# translate.sudo().unlink()
|
||||
# 再重载
|
||||
self.sudo().with_context(overwrite=True)._update_translations(lang)
|
||||
modules._update_translations(filter_lang=lang, overwrite=True)
|
||||
# odoo 16翻译模式改变,仍需更新模块
|
||||
return {
|
||||
'type': 'ir.actions.client',
|
||||
'tag': 'display_notification',
|
||||
'target': 'new',
|
||||
'params': {
|
||||
'message': _("The languages that you selected have been successfully update.\
|
||||
You still need to Upgrade the apps to make it worked."),
|
||||
'type': 'success',
|
||||
'sticky': False,
|
||||
'next': {'type': 'ir.actions.act_window_close'},
|
||||
}
|
||||
}
|
||||
|
||||
def button_get_po(self):
|
||||
self.ensure_one()
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
<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>
|
||||
<p class="mb16">Support odoo 15,14,13, 12, 11, 10, 9. Including community and enterprise version. </p>
|
||||
<p class="mb16">Support odoo 16,15,14,13, 12, 11, 10, 9. Including community and enterprise version. </p>
|
||||
</div>
|
||||
<div class="oe_demo" style=" margin: 30px auto 0; padding: 0 15px 0 0; border:none; width: 96%;">
|
||||
<p>If you want to change the login page. </p>
|
||||
@@ -47,6 +47,9 @@
|
||||
<div class="oe_span12">
|
||||
<h2 class="oe_slogan">This is a Long Term Support Apps.</h2>
|
||||
<div class="oe_demo" style=" margin: 30px auto 0; padding: 0 15px 0 0; border:none; width: 96%;">
|
||||
<h3>Update: v16.23.02.06</h3>
|
||||
<p>Fix odoo ribbon.</p>
|
||||
<p>Fix odoo translate update.</p>
|
||||
<h3>Update: v16.22.10.21</h3>
|
||||
<p>Add odoo16 support.</p>
|
||||
<h3>Update: v15.21.10.21</h3>
|
||||
|
||||
@@ -5,9 +5,8 @@
|
||||
Copyright 2017 Xavier Jiménez <xavier.jimenez@qubiq.es>
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). */
|
||||
|
||||
odoo.define("web_environment_ribbon.ribbon", function(require) {
|
||||
odoo.define("web_environment_ribbon.ribbon", function (require) {
|
||||
"use strict";
|
||||
|
||||
var rpc = require("web.rpc");
|
||||
var core = require("web.core");
|
||||
|
||||
@@ -33,7 +32,7 @@ odoo.define("web_environment_ribbon.ribbon", function(require) {
|
||||
return image.style.color !== "rgb(255, 255, 255)";
|
||||
}
|
||||
|
||||
core.bus.on("web_client_ready", null, function() {
|
||||
core.bus.on("web_client_ready", null, function () {
|
||||
var ribbon = $('<div class="test-ribbon hidden"/>');
|
||||
$("body").append(ribbon);
|
||||
ribbon.hide();
|
||||
@@ -41,7 +40,7 @@ odoo.define("web_environment_ribbon.ribbon", function(require) {
|
||||
rpc.query({
|
||||
model: "web.environment.ribbon.backend",
|
||||
method: "get_environment_ribbon",
|
||||
}).then(function(ribbon_data) {
|
||||
}).then(function (ribbon_data) {
|
||||
// Ribbon name
|
||||
if (ribbon_data.name && ribbon_data.name !== "False") {
|
||||
ribbon.html(ribbon_data.name);
|
||||
|
||||
@@ -26,3 +26,10 @@
|
||||
.test-ribbon b {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
header:hover ~ .test-ribbon,
|
||||
nav:hover ~ .test-ribbon {
|
||||
/* Ease out ribbon when user is using the navigation in Odoo */
|
||||
opacity: 0;
|
||||
transition: 0.2s ease;
|
||||
}
|
||||
|
||||
@@ -22,56 +22,21 @@
|
||||
</div>
|
||||
</group>
|
||||
<group string="User Menu">
|
||||
<div class="row mt16 o_settings_container" name="user_menu_show_hide">
|
||||
<div class="col-12 col-lg-6 o_setting_box">
|
||||
<div>
|
||||
<group>
|
||||
<field name="app_show_lang"/>
|
||||
<label for="app_show_lang"/>
|
||||
</div>
|
||||
<div>
|
||||
<field name="app_show_debug"/>
|
||||
<label for="app_show_debug"/>
|
||||
</div>
|
||||
<div>
|
||||
<field name="app_show_documentation"/>
|
||||
<label for="app_show_documentation"/>
|
||||
</div>
|
||||
<div>
|
||||
<field name="app_show_documentation_dev"/>
|
||||
<label for="app_show_documentation_dev"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-lg-6 o_setting_box">
|
||||
<div>
|
||||
<field name="app_show_support"/>
|
||||
<label for="app_show_support"/>
|
||||
</div>
|
||||
<div>
|
||||
<field name="app_show_account"/>
|
||||
<label for="app_show_account"/>
|
||||
</div>
|
||||
<div invisible="1">
|
||||
</group>
|
||||
<group>
|
||||
<field name="app_show_enterprise"/>
|
||||
<label for="app_show_enterprise"/>
|
||||
</div>
|
||||
<div invisible="1">
|
||||
<field name="app_show_share"/>
|
||||
<label for="app_show_share"/>
|
||||
</div>
|
||||
<div>
|
||||
<field name="app_show_poweredby"/>
|
||||
<label for="app_show_poweredby"/>
|
||||
</div>
|
||||
<div>
|
||||
<field name="group_show_author_in_apps"/>
|
||||
<label for="group_show_author_in_apps"/>
|
||||
</div>
|
||||
<div>
|
||||
<field name="module_odoo_referral"/>
|
||||
<label for="module_odoo_referral"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</group>
|
||||
</group>
|
||||
<group string="User Menu Content">
|
||||
<label for="app_documentation_url"/>
|
||||
@@ -144,7 +109,7 @@
|
||||
</div>
|
||||
<div class="col-12 col-lg-12 mb4">
|
||||
<span class="col-3 col-lg-2 text-left">
|
||||
Accounting <span class="fa fa-lg fa-building-o" title="Values set here are company-specific." groups="base.group_multi_company"/>
|
||||
Accounting
|
||||
</span>
|
||||
<button string="Delete All Voucher/Invoice/Bill" type="object" name="remove_account"
|
||||
confirm="Please confirm to delete the select data?" class="oe_highlight"/>
|
||||
|
||||
@@ -19,10 +19,7 @@
|
||||
<field name="binding_model_id" ref="base.model_ir_module_module" />
|
||||
<field name="model_id" ref="base.model_ir_module_module" />
|
||||
<field name="state">code</field>
|
||||
<field name="code">
|
||||
if records:
|
||||
records.module_multi_refresh_po()
|
||||
</field>
|
||||
<field name="code">action=records.module_multi_refresh_po()</field>
|
||||
</record>
|
||||
|
||||
<record id="action_server_module_multi_get_po" model="ir.actions.act_window">
|
||||
|
||||
Reference in New Issue
Block a user