mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
yan release 2020.02.25
This commit is contained in:
@@ -69,6 +69,7 @@
|
|||||||
26. Add multi uninstall modules
|
26. Add multi uninstall modules
|
||||||
27. Add odoo boost modules link.
|
27. Add odoo boost modules link.
|
||||||
28. Easy Menu manager.
|
28. Easy Menu manager.
|
||||||
|
29. Add Install version in App list. Add Local updatable filter in app list.
|
||||||
|
|
||||||
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.
|
||||||
@@ -88,7 +89,7 @@
|
|||||||
'views/app_odoo_customize_views.xml',
|
'views/app_odoo_customize_views.xml',
|
||||||
'views/app_theme_config_settings_views.xml',
|
'views/app_theme_config_settings_views.xml',
|
||||||
'views/res_config_settings_views.xml',
|
'views/res_config_settings_views.xml',
|
||||||
'views/ir_model_views.xml',
|
'views/ir_module_module_views.xml',
|
||||||
'views/ir_views.xml',
|
'views/ir_views.xml',
|
||||||
'views/ir_ui_menu_views.xml',
|
'views/ir_ui_menu_views.xml',
|
||||||
# data
|
# data
|
||||||
|
|||||||
@@ -4,17 +4,23 @@
|
|||||||
#
|
#
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 12.0+e-20190401\n"
|
"Project-Id-Version: Odoo Server 13.0+e\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-05-11 10:04+0000\n"
|
"POT-Creation-Date: 2020-02-24 20:30+0000\n"
|
||||||
"PO-Revision-Date: 2019-05-11 18:10+0800\n"
|
"PO-Revision-Date: 2020-02-24 20:30+0000\n"
|
||||||
"Last-Translator: <>\n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: \n"
|
||||||
"Plural-Forms: \n"
|
"Plural-Forms: \n"
|
||||||
"X-Generator: Poedit 1.7.7\n"
|
|
||||||
|
#. module: app_odoo_customize
|
||||||
|
#. openerp-web
|
||||||
|
#: code:addons/app_odoo_customize/static/src/xml/res_config_edition.xml:0
|
||||||
|
#, python-format
|
||||||
|
msgid "(Sunpop.cn Professional Edition)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
#. module: app_odoo_customize
|
||||||
#: model_terms:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
#: model_terms:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
||||||
@@ -73,24 +79,17 @@ msgstr "<span class=\"col-3 col-lg-2 text-left\">网站与博客</span>"
|
|||||||
|
|
||||||
#. module: app_odoo_customize
|
#. module: app_odoo_customize
|
||||||
#. openerp-web
|
#. openerp-web
|
||||||
#: code:addons/app_odoo_customize/static/src/xml/customize_user_menu.xml:6
|
#: code:addons/app_odoo_customize/static/src/xml/customize_user_menu.xml:0
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Activate the developer mode"
|
msgid "Activate the developer mode"
|
||||||
msgstr "激活开发者模式"
|
msgstr "激活开发者模式"
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
#. module: app_odoo_customize
|
||||||
#. openerp-web
|
#. openerp-web
|
||||||
#: code:addons/app_odoo_customize/static/src/xml/customize_user_menu.xml:7
|
#: code:addons/app_odoo_customize/static/src/xml/customize_user_menu.xml:0
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Activate the developer mode (with assets)"
|
msgid "Activate the developer mode (with assets)"
|
||||||
msgstr "激活开发者模式 (assets)"
|
msgstr "激活开发者模式(Assets)"
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
|
||||||
#. openerp-web
|
|
||||||
#: code:addons/app_odoo_customize/static/src/xml/dashboard.xml:5
|
|
||||||
#, python-format
|
|
||||||
msgid "App store"
|
|
||||||
msgstr "应用市场"
|
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
#. module: app_odoo_customize
|
||||||
#: model_terms:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
#: model_terms:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
||||||
@@ -102,11 +101,6 @@ msgstr "应用"
|
|||||||
msgid "Cancel"
|
msgid "Cancel"
|
||||||
msgstr "取消"
|
msgstr "取消"
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
|
||||||
#: model:ir.model.fields,help:app_odoo_customize.field_res_config_settings__app_stop_subscribe
|
|
||||||
msgid "Check to stop Odoo Subscribe function"
|
|
||||||
msgstr "选中可停止odoo内置的用户消息订阅"
|
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
#. module: app_odoo_customize
|
||||||
#: model_terms:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
#: model_terms:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
||||||
msgid "Clean and reset Account Chart"
|
msgid "Clean and reset Account Chart"
|
||||||
@@ -120,7 +114,7 @@ msgstr "点击设置"
|
|||||||
#. module: app_odoo_customize
|
#. module: app_odoo_customize
|
||||||
#: model:ir.model,name:app_odoo_customize.model_res_config_settings
|
#: model:ir.model,name:app_odoo_customize.model_res_config_settings
|
||||||
msgid "Config Settings"
|
msgid "Config Settings"
|
||||||
msgstr "配置设定"
|
msgstr "配置设置"
|
||||||
|
|
||||||
#. 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
|
||||||
@@ -140,7 +134,7 @@ msgstr "数据清理(请谨慎操作!)"
|
|||||||
|
|
||||||
#. module: app_odoo_customize
|
#. module: app_odoo_customize
|
||||||
#. openerp-web
|
#. openerp-web
|
||||||
#: code:addons/app_odoo_customize/static/src/xml/customize_user_menu.xml:8
|
#: code:addons/app_odoo_customize/static/src/xml/customize_user_menu.xml:0
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Deactivate the developer mode"
|
msgid "Deactivate the developer mode"
|
||||||
msgstr "取消开发者模式"
|
msgstr "取消开发者模式"
|
||||||
@@ -157,8 +151,10 @@ msgstr "删除所有费用与报销申请"
|
|||||||
|
|
||||||
#. module: app_odoo_customize
|
#. module: app_odoo_customize
|
||||||
#: model_terms:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
#: model_terms:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
||||||
msgid "Delete All MRP/Sale/Purchase/Account/MRP/Inventory/Project/Message/Workflow"
|
msgid ""
|
||||||
msgstr "清除所有业务数据 MRP/Sale/Purchase/Account/MRP/Inventory/Project/Message/Workflow"
|
"Delete All MRP/Sale/Purchase/Account/MRP/Inventory/Project/Message/Workflow"
|
||||||
|
msgstr ""
|
||||||
|
"清除所有业务数据 MRP/Sale/Purchase/Account/MRP/Inventory/Project/Message/Workflow"
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
#. module: app_odoo_customize
|
||||||
#: model_terms:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
#: model_terms:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
||||||
@@ -227,7 +223,7 @@ msgstr "开发者手册链接"
|
|||||||
|
|
||||||
#. module: app_odoo_customize
|
#. module: app_odoo_customize
|
||||||
#. openerp-web
|
#. openerp-web
|
||||||
#: code:addons/app_odoo_customize/static/src/xml/customize_user_menu.xml:10
|
#: code:addons/app_odoo_customize/static/src/xml/customize_user_menu.xml:0
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Developer Manual"
|
msgid "Developer Manual"
|
||||||
msgstr "开发者手册"
|
msgstr "开发者手册"
|
||||||
@@ -242,6 +238,17 @@ msgstr "用户手册链接"
|
|||||||
msgid "Install Language"
|
msgid "Install Language"
|
||||||
msgstr "安装语言"
|
msgstr "安装语言"
|
||||||
|
|
||||||
|
#. module: app_odoo_customize
|
||||||
|
#: model:ir.ui.menu,name:app_odoo_customize.menu_app_demo_data
|
||||||
|
msgid "Load demo data"
|
||||||
|
msgstr "加载演示数据"
|
||||||
|
|
||||||
|
#. module: app_odoo_customize
|
||||||
|
#: model:ir.model.fields,field_description:app_odoo_customize.field_ir_module_module__local_updatable
|
||||||
|
#: model_terms:ir.ui.view,arch_db:app_odoo_customize.app_view_module_filter
|
||||||
|
msgid "Local updatable"
|
||||||
|
msgstr "可本地更新"
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
#. module: app_odoo_customize
|
||||||
#: model:ir.model,name:app_odoo_customize.model_ir_module_module
|
#: model:ir.model,name:app_odoo_customize.model_ir_module_module
|
||||||
msgid "Module"
|
msgid "Module"
|
||||||
@@ -323,11 +330,6 @@ msgstr "显示分享Odoo"
|
|||||||
msgid "Show Support"
|
msgid "Show Support"
|
||||||
msgstr "显示支持"
|
msgstr "显示支持"
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
|
||||||
#: model:ir.model.fields,field_description:app_odoo_customize.field_res_config_settings__app_stop_subscribe
|
|
||||||
msgid "Stop Odoo Subscribe(Performance Improve)"
|
|
||||||
msgstr "停用Odoo自动订阅(提高性能)"
|
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
#. module: app_odoo_customize
|
||||||
#: model:ir.model.fields,field_description:app_odoo_customize.field_res_config_settings__app_support_url
|
#: model:ir.model.fields,field_description:app_odoo_customize.field_res_config_settings__app_support_url
|
||||||
msgid "Support Url"
|
msgid "Support Url"
|
||||||
@@ -340,11 +342,9 @@ msgid "System Name"
|
|||||||
msgstr "系统名称"
|
msgstr "系统名称"
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
#. module: app_odoo_customize
|
||||||
#. openerp-web
|
#: model_terms:ir.ui.view,arch_db:app_odoo_customize.app_edit_menu_access_search
|
||||||
#: code:addons/app_odoo_customize/static/src/xml/dashboard.xml:6
|
msgid "Top Menu"
|
||||||
#, python-format
|
msgstr "顶级菜单"
|
||||||
msgid "Theme store"
|
|
||||||
msgstr "主题市场"
|
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
#. module: app_odoo_customize
|
||||||
#: model:ir.model.fields,help:app_odoo_customize.field_res_config_settings__group_show_author_in_apps
|
#: model:ir.model.fields,help:app_odoo_customize.field_res_config_settings__group_show_author_in_apps
|
||||||
@@ -436,6 +436,14 @@ msgstr "启用后,会显示快速调试菜单"
|
|||||||
msgid "White Label Setting"
|
msgid "White Label Setting"
|
||||||
msgstr "个性化odoo设置"
|
msgstr "个性化odoo设置"
|
||||||
|
|
||||||
|
#. module: app_odoo_customize
|
||||||
|
#. openerp-web
|
||||||
|
#: 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 ""
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
#. module: app_odoo_customize
|
||||||
#: model_terms:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
#: model_terms:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
||||||
msgid "odooApp Customize Settings"
|
msgid "odooApp Customize Settings"
|
||||||
|
|||||||
@@ -3,5 +3,5 @@
|
|||||||
from . import res_config_settings
|
from . import res_config_settings
|
||||||
from . import ir_ui_view
|
from . import ir_ui_view
|
||||||
from . import base_language_install
|
from . import base_language_install
|
||||||
from . import models
|
from . import ir_module_module
|
||||||
# from . import ir_ui_menu
|
# from . import ir_ui_menu
|
||||||
|
|||||||
34
app_odoo_customize/models/ir_module_module.py
Normal file
34
app_odoo_customize/models/ir_module_module.py
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from odoo import api, fields, models, modules, tools, _
|
||||||
|
|
||||||
|
import operator
|
||||||
|
|
||||||
|
class IrModule(models.Model):
|
||||||
|
_inherit = 'ir.module.module'
|
||||||
|
|
||||||
|
# attention: Incorrect field names !!
|
||||||
|
# installed_version refers the latest version (the one on disk)
|
||||||
|
# latest_version refers the installed version (the one in database)
|
||||||
|
# published_version refers the version available on the repository
|
||||||
|
# installed_version = fields.Char('Latest Version', compute='_get_latest_version')
|
||||||
|
# latest_version = fields.Char('Installed Version', readonly=True)
|
||||||
|
|
||||||
|
local_updatable = fields.Boolean('Local updatable', compute='_get_latest_version', default=False, store=True)
|
||||||
|
|
||||||
|
def module_multi_uninstall(self):
|
||||||
|
""" Perform the various steps required to uninstall a module completely
|
||||||
|
including the deletion of all database structures created by the module:
|
||||||
|
tables, columns, constraints, etc.
|
||||||
|
"""
|
||||||
|
modules = self.browse(self.env.context.get('active_ids'))
|
||||||
|
[module.button_immediate_uninstall() for module in modules if module not in ['base', 'web']]
|
||||||
|
|
||||||
|
|
||||||
|
@api.depends('name')
|
||||||
|
def _get_latest_version(self):
|
||||||
|
super(IrModule, self)._get_latest_version()
|
||||||
|
for rec in self:
|
||||||
|
rec.local_updatable = False
|
||||||
|
if rec.installed_version and rec.latest_version and operator.gt(rec.installed_version, rec.latest_version):
|
||||||
|
rec.local_updatable = True
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
from odoo import models, fields, api
|
|
||||||
|
|
||||||
|
|
||||||
class Module(models.Model):
|
|
||||||
_inherit = 'ir.module.module'
|
|
||||||
|
|
||||||
def module_multi_uninstall(self):
|
|
||||||
""" Perform the various steps required to uninstall a module completely
|
|
||||||
including the deletion of all database structures created by the module:
|
|
||||||
tables, columns, constraints, etc.
|
|
||||||
"""
|
|
||||||
modules = self.browse(self.env.context.get('active_ids'))
|
|
||||||
[module.button_immediate_uninstall() for module in modules if module not in ['base', 'web']]
|
|
||||||
|
|
||||||
@@ -51,6 +51,9 @@
|
|||||||
<div class="oe_span12">
|
<div class="oe_span12">
|
||||||
<h2 class="oe_slogan">This is a Long Term Support Apps.</h2>
|
<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%;">
|
<div class="oe_demo" style=" margin: 30px auto 0; padding: 0 15px 0 0; border:none; width: 96%;">
|
||||||
|
<h3>Update: v13.20.02.25</h3>
|
||||||
|
<p>28. Easy Menu manager.</p>
|
||||||
|
<p>29. Add Install version in App list. Add Local updatable filter in app list.</p>
|
||||||
<h3>Update: v13.19.10.19</h3>
|
<h3>Update: v13.19.10.19</h3>
|
||||||
<p>27. Add Odoo 13 support, all function add</p>
|
<p>27. Add Odoo 13 support, all function add</p>
|
||||||
<h3>Update: v12.19.04.30</h3>
|
<h3>Update: v12.19.04.30</h3>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<t t-extend="res_config_edition">
|
<t t-extend="res_config_edition">
|
||||||
<t t-jquery=".user-heading h3" t-operation="replace">
|
<t t-jquery=".user-heading h3" t-operation="replace">
|
||||||
<h3>
|
<h3>
|
||||||
odooApp <t t-esc="widget.server_version"/> (Sunpop.cn Enterprise Edition)
|
odooApp <t t-esc="widget.server_version"/> (Sunpop.cn Professional Edition)
|
||||||
</h3>
|
</h3>
|
||||||
</t>
|
</t>
|
||||||
</t>
|
</t>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<odoo>
|
<odoo>
|
||||||
<!-- Modules -->
|
<!-- Modules list -->
|
||||||
<record id="app_module_tree" model="ir.ui.view">
|
<record id="app_module_tree" model="ir.ui.view">
|
||||||
<field name="name">app.ir.module.module.tree</field>
|
<field name="name">app.ir.module.module.tree</field>
|
||||||
<field name="model">ir.module.module</field>
|
<field name="model">ir.module.module</field>
|
||||||
@@ -9,6 +9,21 @@
|
|||||||
<field name="name" position="attributes">
|
<field name="name" position="attributes">
|
||||||
<attribute name="groups"/>
|
<attribute name="groups"/>
|
||||||
</field>
|
</field>
|
||||||
|
<field name="installed_version" position="after">
|
||||||
|
<field name="latest_version"/>
|
||||||
|
<field name="local_updatable"/>
|
||||||
|
</field>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
<!-- Modules search-->
|
||||||
|
<record id="app_view_module_filter" model="ir.ui.view">
|
||||||
|
<field name="name">app.ir.module.module.list.select</field>
|
||||||
|
<field name="model">ir.module.module</field>
|
||||||
|
<field name="inherit_id" ref="base.view_module_filter" />
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<filter name="not_installed" position="after">
|
||||||
|
<filter name="is_local_updatable" string="Local updatable" domain="[('local_updatable', '=', True)]"/>
|
||||||
|
</filter>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
<record id="app_module_form" model="ir.ui.view">
|
<record id="app_module_form" model="ir.ui.view">
|
||||||
Reference in New Issue
Block a user