diff --git a/app_odoo_customize/__openerp__.py b/app_odoo_customize/__openerp__.py
index fd243a50..29c82768 100644
--- a/app_odoo_customize/__openerp__.py
+++ b/app_odoo_customize/__openerp__.py
@@ -15,8 +15,8 @@
# http://www.sunpop.cn/odoo10_developer_document_offline/
# description:
{
- 'name': 'App Odoo Customize(Backend Debranding Title,Language,Documentation,Quick Debug,Delete clear)',
- 'version': '10.0.2.4',
+ 'name': 'App Odoo Customize(Backend Debranding Title,Language,Documentation,Quick Debug,Clear Data)',
+ 'version': '11.0.3.3',
'author': 'Sunpop.cn',
'category': 'Productivity',
'website': 'http://www.sunpop.cn',
@@ -28,6 +28,7 @@
App Odoo Customize(Debranding Title,Language,Documentation,Quick Debug)
============
White label odoo.
+Support Odoo 11, 10, 9.
You can config odoo, make it look like your own platform.
1. Deletes Odoo label in footer
2. Replaces "Odoo" in Windows title
diff --git a/app_odoo_customize/models/__init__.py b/app_odoo_customize/models/__init__.py
index 36ac87dc..cf47f855 100644
--- a/app_odoo_customize/models/__init__.py
+++ b/app_odoo_customize/models/__init__.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
-import ir_ui_view
import app_theme_config_settings
+import ir_ui_view
import base_language_install
import mail_thread
diff --git a/app_odoo_customize/models/app_theme_config_settings.py b/app_odoo_customize/models/app_theme_config_settings.py
index 44079a48..dda490c5 100644
--- a/app_odoo_customize/models/app_theme_config_settings.py
+++ b/app_odoo_customize/models/app_theme_config_settings.py
@@ -33,7 +33,7 @@ class AppThemeConfigSettings(models.TransientModel):
app_account_url = fields.Char('My Odoo.com Account Url')
@api.model
- def get_default_all(self, fields):
+ def get_values(self):
ir_config = self.env['ir.config_parameter']
app_system_name = ir_config.get_param('app_system_name', default='odooApp')
@@ -76,7 +76,7 @@ class AppThemeConfigSettings(models.TransientModel):
)
@api.multi
- def set_default_all(self):
+ def set_values(self):
self.ensure_one()
ir_config = self.env['ir.config_parameter']
ir_config.set_param("app_system_name", self.app_system_name or "")
diff --git a/app_odoo_customize/readme.md b/app_odoo_customize/readme.md
index dcde3067..e1a0ceeb 100644
--- a/app_odoo_customize/readme.md
+++ b/app_odoo_customize/readme.md
@@ -1,6 +1,7 @@
##App Odoo Customize(Debranding Title,Language,Documentation,Quick Debug,Quick Data Clear)
============
-White label odoo.
+White label odoo.
+Support Odoo 11, 10, 9.
You can config odoo, make it look like your own platform.
1. Deletes Odoo label in footer
2. Replaces "Odoo" in Windows title
diff --git a/app_odoo_customize/static/description/index.html b/app_odoo_customize/static/description/index.html
index 565c9e10..32cf237d 100644
--- a/app_odoo_customize/static/description/index.html
+++ b/app_odoo_customize/static/description/index.html
@@ -9,7 +9,8 @@
App UI enhance
-
Lastest update: v10.0.2.4, 2018-02-04
+
Lastest update: v11.0.3.3, 2018-03-03
+
Add Odoo 11 Support
1. Deletes Odoo label in footer
2. Replaces "Odoo" in Windows title
diff --git a/app_odoo_customize/static/src/js/app_window_title.js b/app_odoo_customize/static/src/js/app_window_title.js
index b7c368af..8e673b54 100644
--- a/app_odoo_customize/static/src/js/app_window_title.js
+++ b/app_odoo_customize/static/src/js/app_window_title.js
@@ -1,4 +1,4 @@
-odoo.define('app_system_name', function (require) {
+odoo.define('app_odoo_customize.app_system_name', function (require) {
"use strict";
var WebClient = require('web.WebClient');
diff --git a/app_odoo_customize/static/src/js/customize_user_menu.js b/app_odoo_customize/static/src/js/customize_user_menu.js
index 8891bf7e..bedb9498 100644
--- a/app_odoo_customize/static/src/js/customize_user_menu.js
+++ b/app_odoo_customize/static/src/js/customize_user_menu.js
@@ -1,117 +1,165 @@
-odoo.define('app_odoo_customize.customize_user_menu', function (require) {
+odoo.define('app_odoo_customize.UserMenu', function (require) {
"use strict";
- var Model = require('web.Model');
- var session = require('web.session');
+
+ /**
+ * This widget is appended by the webclient to the right of the navbar.
+ * It displays the avatar and the name of the logged user (and optionally the
+ * db name, in debug mode).
+ * If clicked, it opens a dropdown allowing the user to perform actions like
+ * editing its preferences, accessing the documentation, logging out...
+ */
var UserMenu = require('web.UserMenu');
- var documentation_url;
+ //避免错误,要再定义
+ var session2 = require('web.session');
+ var documentation_url = 'http://www.sina.com.cn';
var documentation_dev_url;
var support_url;
var account_title;
var account_url;
+
UserMenu.include({
- on_menu_debug: function () {
- window.location = $.param.querystring(window.location.href, 'debug');
+ init: function () {
+ this._super.apply(this, arguments);
+ var self = this
+ var session = this.getSession();
+ var lang_list = '';
+
+ self._rpc({
+ model: 'res.lang',
+ method: 'search_read',
+ domain: [],
+ fields: ['name', 'code'],
+ lazy: false,
+ }).then(function (res) {
+ _.each(res, function (lang) {
+ var a = '';
+ if (lang['code'] === session.user_context.lang) {
+ a = '';
+ } else {
+ a = '';
+ }
+ lang_list += '