diff --git a/app_odoo_dataclear/__init__.py b/app_odoo_dataclear/__init__.py new file mode 100644 index 00000000..e49c8b6f --- /dev/null +++ b/app_odoo_dataclear/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- +import models + + diff --git a/app_odoo_dataclear/__openerp__.py b/app_odoo_dataclear/__openerp__.py new file mode 100644 index 00000000..a4acf1e8 --- /dev/null +++ b/app_odoo_dataclear/__openerp__.py @@ -0,0 +1,73 @@ +# -*- coding: utf-8 -*- + +# Created on 2017-11-05 +# author: 广州尚鹏,http://www.sunpop.cn +# email: 300883@qq.com +# resource of Sunpop +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +# Odoo在线中文用户手册(长期更新) +# http://www.sunpop.cn/documentation/user/10.0/zh_CN/index.html + +# Odoo10离线中文用户手册下载 +# http://www.sunpop.cn/odoo10_user_manual_document_offline/ +# Odoo10离线开发手册下载-含python教程,jquery参考,Jinja2模板,PostgresSQL参考(odoo开发必备) +# http://www.sunpop.cn/odoo10_developer_document_offline/ +# description: +{ + 'name': 'App Odoo Data clear(Quick Debug,Delete clear)', + 'version': '10.0.2.4', + 'author': 'Sunpop.cn', + 'category': 'Productivity', + 'website': 'http://www.sunpop.cn', + 'license': 'AGPL-3', + 'sequence': 2, + 'summary': 'Quick customize and debranding your own Odoo. Quick debug, Language Switcher, Online Documentation Access,Delete test data.', + 'description': """ + +App Odoo Customize(Debranding Title,Language,Documentation,Quick Debug) +============ +White label odoo. +You can config odoo, make it look like your own platform. +1. Deletes Odoo label in footer +2. Replaces "Odoo" in Windows title +3. Customize Documentation, Support, About links and title in usermenu +4. Adds "Developer mode" link to the top right-hand User Menu. +5. Adds Quick Language Switcher to the top right-hand User Menu. +6. Adds Country flags to the top right-hand User Menu. +7. Adds English and Chinese user documentation access to the top right-hand User Menu. +8. Adds developer documentation access to the top right-hand User Menu. +9. Customize "My odoo.com account" button +10. Standalone setting panel, easy to setup. +11. Provide 236 country flags. +12. Multi-language Support. +13. Change Powered by Odoo in login screen.(Please change '../views/app_odoo_customize_view.xml' #15) +14. Quick delete test data in Apps: Sales/POS/Purchase/MRP/Inventory/Accounting/Message/Workflow etc. +15. Reset All the Sequence to beginning of 1: SO/PO/MO/Invoice... +16. Fix odoo reload module translation bug while enable english language +17. Stop Odoo Auto Subscribe(Performance Improve) + +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.png'], + 'depends': [], + 'data': [ + # 'views/app_odoo_customize_view.xml', + 'views/app_theme_config_settings_view.xml', + # data + 'data/ir_config_parameter.xml', + ], + 'demo': [], + 'test': [ + ], + 'installable': True, + 'application': True, + 'auto_install': False, + 'qweb': [ + 'static/src/xml/customize_user_menu.xml', + ], +} + diff --git a/app_odoo_dataclear/data/ir_config_parameter.xml b/app_odoo_dataclear/data/ir_config_parameter.xml new file mode 100644 index 00000000..ede752c1 --- /dev/null +++ b/app_odoo_dataclear/data/ir_config_parameter.xml @@ -0,0 +1,71 @@ + + + + + app_system_name + odooApp + + + + app_show_lang + True + + + app_show_debug + True + + + app_show_documentation + True + + + app_show_documentation_dev + True + + + app_show_support + True + + + app_show_account + True + + + app_show_enterprise + False + + + app_show_share + False + + + app_show_poweredby + False + + + app_stop_subscribe + False + + + + app_documentation_url + http://www.sunpop.cn/documentation/user/10.0/zh_CN/index.html + + + app_documentation_dev_url + http://www.sunpop.cn/documentation/10.0/index.html + + + app_support_url + http://www.sunpop.cn/trial + + + app_account_title + My Online Account + + + app_account_url + http://www.sunpop.cn/my-account + + + \ No newline at end of file diff --git a/app_odoo_dataclear/i18n/zh_CN.po b/app_odoo_dataclear/i18n/zh_CN.po new file mode 100644 index 00000000..aea4159b --- /dev/null +++ b/app_odoo_dataclear/i18n/zh_CN.po @@ -0,0 +1,397 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * app_odoo_customize +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0+e-20171107\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-01-10 11:41+0000\n" +"PO-Revision-Date: 2018-01-10 11:41+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: app_odoo_customize +#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings +msgid "Accounting" +msgstr "会计" + +#. module: app_odoo_customize +#. openerp-web +#: code:addons/app_odoo_customize/static/src/xml/customize_user_menu.xml:7 +#, python-format +msgid "Activate the developer mode" +msgstr "激活开发者模式" + +#. module: app_odoo_customize +#. openerp-web +#: code:addons/app_odoo_customize/static/src/xml/customize_user_menu.xml:10 +#, python-format +msgid "Activate the developer mode (with assets)" +msgstr "激活开发者模式 (assets)" + +#. module: app_odoo_customize +#: model:ir.model,name:app_odoo_customize.model_app_theme_config_settings +msgid "App Odoo Customize settings" +msgstr "App Odoo 自定义设置" + +#. module: app_odoo_customize +#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings +msgid "Apply" +msgstr "应用" + +#. module: app_odoo_customize +#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings +msgid "Base Models" +msgstr "基础模型数据" + +#. module: app_odoo_customize +#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings +msgid "Cancel" +msgstr "取消" + +#. module: app_odoo_customize +#: model:ir.model.fields,help:app_odoo_customize.field_app_theme_config_settings_app_stop_subscribe +msgid "Check to stop Odoo Subscribe function" +msgstr "Check to stop Odoo Subscribe function" + +#. module: app_odoo_customize +#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_create_uid +msgid "Created by" +msgstr "创建人" + +#. module: app_odoo_customize +#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_create_date +msgid "Created on" +msgstr "创建时间" + +#. module: app_odoo_customize +#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings +msgid "Data Cleaning (Be careful to do that!)" +msgstr "数据清理(请谨慎操作!)" + +#. module: app_odoo_customize +#. openerp-web +#: code:addons/app_odoo_customize/static/src/xml/customize_user_menu.xml:13 +#, python-format +msgid "Deactivate the developer mode" +msgstr "取消激活开发者模式" + +#. module: app_odoo_customize +#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings +msgid "Delete All BOM" +msgstr "删除所有物料清单" + +#. module: app_odoo_customize +#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings +msgid "Delete All Manufacturing Order" +msgstr "删除所有生产单" + +#. module: app_odoo_customize +#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings +msgid "Delete All Message" +msgstr "删除所有消息" + +#. module: app_odoo_customize +#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings +msgid "Delete All Move/Picking/Package/Lot" +msgstr "删除所有库存调拨/拣货/包装/批次数据" + +#. module: app_odoo_customize +#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings +msgid "Delete All POS Order" +msgstr "删除所有POS订单" + +#. module: app_odoo_customize +#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings +msgid "Delete All Product" +msgstr "删除所有产品及变体" + +#. module: app_odoo_customize +#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings +msgid "Delete All Product Attribute" +msgstr "删除所有产品属性" + +#. module: app_odoo_customize +#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings +msgid "Delete All Purchase Order and Requisition" +msgstr "删除所有询价单、采购单,采购招标" + +#. module: app_odoo_customize +#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings +msgid "Delete All Sales Order" +msgstr "删除所有报价单、销售单" + +#. module: app_odoo_customize +#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings +msgid "Delete All Voucher/Invoice/Bill" +msgstr "删除所有收据/发票/账单" + +#. module: app_odoo_customize +#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings +msgid "Delete All Workflow" +msgstr "删除所有工作流" + +#. module: app_odoo_customize +#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_app_documentation_dev_url +msgid "Developer Documentation Url" +msgstr "开发者手册链接" + +#. module: app_odoo_customize +#. openerp-web +#: code:addons/app_odoo_customize/static/src/xml/customize_user_menu.xml:16 +#, python-format +msgid "Developer Manual" +msgstr "开发者手册" + +#. module: app_odoo_customize +#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_display_name +msgid "Display Name" +msgstr "显示名称" + +#. module: app_odoo_customize +#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_app_documentation_url +msgid "Documentation Url" +msgstr "用户手册链接" + +#. module: app_odoo_customize +#: model:ir.model,name:app_odoo_customize.model_mail_thread +msgid "Email Thread" +msgstr "Email线程" + +#. module: app_odoo_customize +#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_id +msgid "ID" +msgstr "ID" + +#. module: app_odoo_customize +#: model:ir.model,name:app_odoo_customize.model_base_language_install +msgid "Install Language" +msgstr "安装语言" + +#. module: app_odoo_customize +#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings +msgid "Inventory" +msgstr "库存" + +#. module: app_odoo_customize +#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings +msgid "Item to Show" +msgstr "显示/隐藏菜单项" + +#. module: app_odoo_customize +#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings___last_update +msgid "Last Modified on" +msgstr "最后修改日" + +#. module: app_odoo_customize +#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_write_uid +msgid "Last Updated by" +msgstr "最后更新人" + +#. module: app_odoo_customize +#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_write_date +msgid "Last Updated on" +msgstr "最后更新时间" + +#. module: app_odoo_customize +#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings +msgid "MRP" +msgstr "生产" + +#. module: app_odoo_customize +#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_app_account_title +msgid "My Odoo.com Account Title" +msgstr "我的帐户显示标题" + +#. module: app_odoo_customize +#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_app_account_url +msgid "My Odoo.com Account Url" +msgstr "我的帐户链接" + +#. module: app_odoo_customize +#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings +msgid "Online Support" +msgstr "系统支持" + +#. module: app_odoo_customize +#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings +msgid "POS" +msgstr "POS门店" + +#. module: app_odoo_customize +#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings +msgid "Please confirm to delete the select data?" +msgstr "确认删除指定数据?" + +#. module: app_odoo_customize +#: model:ir.ui.view,arch_db:app_odoo_customize.replace_login +msgid "Powered by odooApp" +msgstr "技术支持 odooApp" + +#. module: app_odoo_customize +#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings +msgid "Purchase" +msgstr "采购" + +#. module: app_odoo_customize +#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings +msgid "Sales" +msgstr "销售" + +#. module: app_odoo_customize +#: model:ir.model.fields,help:app_odoo_customize.field_app_theme_config_settings_app_system_name +msgid "Setup System Name,which replace Odoo" +msgstr "设置系统名称,取代Odoo" + +#. module: app_odoo_customize +#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_app_show_documentation_dev +msgid "Show Developer Documentation" +msgstr "显示开发者文档" + +#. module: app_odoo_customize +#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_app_show_documentation +msgid "Show Documentation" +msgstr "显示文档" + +#. module: app_odoo_customize +#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_app_show_enterprise +msgid "Show Enterprise Tag" +msgstr "显示升级企业版标签提醒" + +#. module: app_odoo_customize +#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_app_show_account +msgid "Show My Account" +msgstr "显示我的帐户" + +#. module: app_odoo_customize +#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_app_show_poweredby +msgid "Show Powered by Odoo" +msgstr "显示Powered by Odoo" + +#. module: app_odoo_customize +#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_app_show_debug +msgid "Show Quick Debug" +msgstr "显示快速调试" + +#. module: app_odoo_customize +#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_app_show_lang +msgid "Show Quick Language Switcher" +msgstr "显示快速多语言切换" + +#. module: app_odoo_customize +#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_app_show_share +msgid "Show Share Dashboard" +msgstr "显示分享Odoo" + +#. module: app_odoo_customize +#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_app_show_support +msgid "Show Support" +msgstr "显示支持" + +#. module: app_odoo_customize +#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_app_stop_subscribe +msgid "Stop Odoo Subscribe(Performance Improve)" +msgstr "停用Odoo自动订阅(提高性能)" + +#. module: app_odoo_customize +#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_app_support_url +msgid "Support Url" +msgstr "支持链接" + +#. module: app_odoo_customize +#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_app_system_name +#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings +msgid "System Name" +msgstr "系统名称" + +#. module: app_odoo_customize +#: model:ir.model.fields,help:app_odoo_customize.field_app_theme_config_settings_app_show_enterprise +msgid "Uncheck to hide the Enterprise tag" +msgstr "Uncheck to hide the Enterprise tag" + +#. module: app_odoo_customize +#: model:ir.model.fields,help:app_odoo_customize.field_app_theme_config_settings_app_show_share +msgid "Uncheck to hide the Odoo Share Dashboard" +msgstr "Uncheck to hide the Odoo Share Dashboard" + +#. module: app_odoo_customize +#: model:ir.model.fields,help:app_odoo_customize.field_app_theme_config_settings_app_show_poweredby +msgid "Uncheck to hide the Powered by text" +msgstr "不勾选则不显示Odoo Powered by" + +#. module: app_odoo_customize +#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings +msgid "User Menu" +msgstr "用户菜单" + +#. module: app_odoo_customize +#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings +msgid "User Menu Content" +msgstr "菜单项具体操作设置" + +#. module: app_odoo_customize +#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings +msgid "Visit our website for more apps and Support. http://www.sunpop.cn" +msgstr "请访问我们的网站获取更多支持. http://www.sunpop.cn" + +#. module: app_odoo_customize +#: model:ir.model.fields,help:app_odoo_customize.field_app_theme_config_settings_app_show_account +msgid "When enable,User can login to your website" +msgstr "启用后,会显示登录到你的网站" + +#. module: app_odoo_customize +#: model:ir.model.fields,help:app_odoo_customize.field_app_theme_config_settings_app_show_lang +msgid "When enable,User can quick switch language in user menu" +msgstr "启用后,会显示快速语言切换菜单" + +#. module: app_odoo_customize +#: model:ir.model.fields,help:app_odoo_customize.field_app_theme_config_settings_app_show_documentation_dev +msgid "When enable,User can visit development documentation" +msgstr "启用后,会显示开发手册链接" + +#. module: app_odoo_customize +#: model:ir.model.fields,help:app_odoo_customize.field_app_theme_config_settings_app_show_documentation +msgid "When enable,User can visit user manual" +msgstr "启用后,会显示用户手册链接" + +#. module: app_odoo_customize +#: model:ir.model.fields,help:app_odoo_customize.field_app_theme_config_settings_app_show_support +msgid "When enable,User can vist your support site" +msgstr "启用后,会显示在线支持链接" + +#. module: app_odoo_customize +#: model:ir.model.fields,help:app_odoo_customize.field_app_theme_config_settings_app_show_debug +msgid "When enable,everyone login can see the debug menu" +msgstr "启用后,会显示快速调试菜单" + +#. module: app_odoo_customize +#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings +msgid "White Label Setting" +msgstr "个性化odoo设置" + +#. module: app_odoo_customize +#: model:ir.model,name:app_odoo_customize.model_ir_ui_view +msgid "ir.ui.view" +msgstr "ir.ui.view" + +#. module: app_odoo_customize +#: model:ir.actions.act_window,name:app_odoo_customize.action_app_theme_config +#: model:ir.ui.menu,name:app_odoo_customize.menu_app_theme_config +msgid "odooApp Customize" +msgstr "odooApp 定制" + +#. module: app_odoo_customize +#: model:ir.ui.menu,name:app_odoo_customize.menu_app_group +msgid "odooApp" +msgstr "odooApp" + +#. module: app_odoo_customize +#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings +msgid "odooApp Customize Settings" +msgstr "odooApp 定制化设置" + diff --git a/app_odoo_dataclear/models/__init__.py b/app_odoo_dataclear/models/__init__.py new file mode 100644 index 00000000..d60e88cd --- /dev/null +++ b/app_odoo_dataclear/models/__init__.py @@ -0,0 +1,6 @@ +# -*- coding: utf-8 -*- + +# import ir_ui_view +import app_theme_config_settings +import base_language_install +# import mail_thread diff --git a/app_odoo_dataclear/models/app_theme_config_settings.py b/app_odoo_dataclear/models/app_theme_config_settings.py new file mode 100644 index 00000000..44079a48 --- /dev/null +++ b/app_odoo_dataclear/models/app_theme_config_settings.py @@ -0,0 +1,440 @@ +# -*- coding: utf-8 -*- + +import logging + +from openerp import api, fields, models, _ + +_logger = logging.getLogger(__name__) + + +class AppThemeConfigSettings(models.TransientModel): + _inherit = 'res.config.settings' + _name = 'app.theme.config.settings' + + _description = u"App Odoo Customize settings" + app_system_name = fields.Char('System Name', help=u"Setup System Name,which replace Odoo") + app_show_lang = fields.Boolean('Show Quick Language Switcher', + help=u"When enable,User can quick switch language in user menu") + app_show_debug = fields.Boolean('Show Quick Debug', help=u"When enable,everyone login can see the debug menu") + app_show_documentation = fields.Boolean('Show Documentation', help=u"When enable,User can visit user manual") + app_show_documentation_dev = fields.Boolean('Show Developer Documentation', + help=u"When enable,User can visit development documentation") + app_show_support = fields.Boolean('Show Support', help=u"When enable,User can vist your support site") + app_show_account = fields.Boolean('Show My Account', help=u"When enable,User can login to your website") + app_show_enterprise = fields.Boolean('Show Enterprise Tag', help=u"Uncheck to hide the Enterprise tag") + app_show_share = fields.Boolean('Show Share Dashboard', help=u"Uncheck to hide the Odoo Share Dashboard") + app_show_poweredby = fields.Boolean('Show Powered by Odoo', help=u"Uncheck to hide the Powered by text") + app_stop_subscribe = fields.Boolean('Stop Odoo Subscribe(Performance Improve)', help=u"Check to stop Odoo Subscribe function") + + app_documentation_url = fields.Char('Documentation Url') + app_documentation_dev_url = fields.Char('Developer Documentation Url') + 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') + + @api.model + def get_default_all(self, fields): + ir_config = self.env['ir.config_parameter'] + app_system_name = ir_config.get_param('app_system_name', default='odooApp') + + app_show_lang = True if ir_config.get_param('app_show_lang') == "True" else False + app_show_debug = True if ir_config.get_param('app_show_debug') == "True" else False + app_show_documentation = True if ir_config.get_param('app_show_documentation') == "True" else False + app_show_documentation_dev = True if ir_config.get_param('app_show_documentation_dev') == "True" else False + app_show_support = True if ir_config.get_param('app_show_support') == "True" else False + app_show_account = True if ir_config.get_param('app_show_account') == "True" else False + app_show_enterprise = True if ir_config.get_param('app_show_enterprise') == "True" else False + app_show_share = True if ir_config.get_param('app_show_share') == "True" else False + app_show_poweredby = True if ir_config.get_param('app_show_poweredby') == "True" else False + app_stop_subscribe = True if ir_config.get_param('app_stop_subscribe') == "True" else False + + app_documentation_url = ir_config.get_param('app_documentation_url', + default='http://www.sunpop.cn/documentation/user/10.0/en/index.html') + app_documentation_dev_url = ir_config.get_param('app_documentation_dev_url', + default='http://www.sunpop.cn/documentation/10.0/index.html') + app_support_url = ir_config.get_param('app_support_url', default='http://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='http://www.sunpop.cn/my-account/') + return dict( + app_system_name=app_system_name, + app_show_lang=app_show_lang, + app_show_debug=app_show_debug, + app_show_documentation=app_show_documentation, + app_show_documentation_dev=app_show_documentation_dev, + app_show_support=app_show_support, + app_show_account=app_show_account, + app_show_enterprise=app_show_enterprise, + app_show_share=app_show_share, + app_show_poweredby=app_show_poweredby, + app_stop_subscribe=app_stop_subscribe, + + app_documentation_url=app_documentation_url, + 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 + ) + + @api.multi + def set_default_all(self): + self.ensure_one() + ir_config = self.env['ir.config_parameter'] + ir_config.set_param("app_system_name", self.app_system_name or "") + ir_config.set_param("app_show_lang", self.app_show_lang or "False") + ir_config.set_param("app_show_debug", self.app_show_debug or "False") + ir_config.set_param("app_show_documentation", self.app_show_documentation or "False") + ir_config.set_param("app_show_documentation_dev", self.app_show_documentation_dev or "False") + ir_config.set_param("app_show_support", self.app_show_support or "False") + ir_config.set_param("app_show_account", self.app_show_account or "False") + ir_config.set_param("app_show_enterprise", self.app_show_enterprise or "False") + ir_config.set_param("app_show_share", self.app_show_share or "False") + ir_config.set_param("app_show_poweredby", self.app_show_poweredby or "False") + ir_config.set_param("app_stop_subscribe", self.app_stop_subscribe or "False") + + ir_config.set_param("app_documentation_url", + self.app_documentation_url or "http://www.sunpop.cn/documentation/user/10.0/en/index.html") + ir_config.set_param("app_documentation_dev_url", + self.app_documentation_dev_url or "http://www.sunpop.cn/documentation/10.0/index.html") + ir_config.set_param("app_support_url", self.app_support_url or "http://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 "http://www.sunpop.cn/my-account/") + + return True + + @api.multi + def remove_sales(self): + to_removes = [ + # 清除销售单据 + ['sale.order.line', ], + ['sale.order', ], + ] + try: + for line in to_removes : + obj_name = line[0] + obj = self.pool.get(obj_name) + if obj and obj._table_exist: + sql = "delete from %s" % obj._table + self._cr.execute(sql) + # 更新序号 + seqs = self.env['ir.sequence'].search([('code', '=', 'sale.order')]) + for seq in seqs: + seq.write({ + 'number_next': 1, + }) + sql = "update ir_sequence set number_next=1 where code ='sale.order';" + self._cr.execute(sql) + except Exception, e: + raise Warning(e) + return True + + def remove_product(self): + to_removes = [ + # 清除产品数据 + ['product.product', ], + ['product.template', ], + ] + try: + for line in to_removes : + obj_name = line[0] + obj = self.pool.get(obj_name) + if obj and obj._table_exist: + sql = "delete from %s" % obj._table + self._cr.execute(sql) + # 更新序号,针对自动产品编号 + seqs = self.env['ir.sequence'].search([('code', '=', 'product.product')]) + for seq in seqs: + seq.write({ + 'number_next': 1, + }) + sql = "update ir_sequence set number_next=1 where code ='product.product';" + self._cr.execute(sql) + except Exception, e: + raise Warning(e) + return True + + def remove_product_attribute(self): + to_removes = [ + # 清除产品属性 + ['product.attribute.value', ], + ['product.attribute', ], + ] + try: + for line in to_removes : + obj_name = line[0] + obj = self.pool.get(obj_name) + if obj and obj._table_exist: + sql = "delete from %s" % obj._table + self._cr.execute(sql) + except Exception, e: + raise Warning(e) + return True + + @api.multi + def remove_pos(self): + to_removes = [ + # 清除POS单据 + ['pos.order.line', ], + ['pos.order', ], + ] + try: + for line in to_removes : + obj_name = line[0] + obj = self.pool.get(obj_name) + if obj and obj._table_exist: + sql = "delete from %s" % obj._table + self._cr.execute(sql) + # 更新序号 + seqs = self.env['ir.sequence'].search([('code', '=', 'pos.order')]) + for seq in seqs: + seq.write({ + 'number_next': 1, + }) + sql = "update ir_sequence set number_next=1 where code ='pos.order';" + self._cr.execute(sql) + except Exception, e: + raise Warning(e) + return True + + @api.multi + def remove_purchase(self): + to_removes = [ + # 清除采购单据 + ['purchase.order.line', ], + ['purchase.order', ], + ['purchase.requisition.line', ], + ['purchase.requisition', ], + ] + try: + for line in to_removes : + obj_name = line[0] + obj = self.pool.get(obj_name) + if obj and obj._table_exist: + sql = "delete from %s" % obj._table + self._cr.execute(sql) + # 更新序号 + seqs = self.env['ir.sequence'].search([('code', '=', 'purchase.order')]) + for seq in seqs: + seq.write({ + 'number_next': 1, + }) + sql = "update ir_sequence set number_next=1 where code ='purchase.order';" + self._cr.execute(sql) + except Exception, e: + raise Warning(e) + return True + + @api.multi + def remove_mrp(self): + to_removes = [ + # 清除生产单据 + ['mrp.workcenter.productivity', ], + ['mrp.workorder', ], + ['mrp.production.workcenter.line', ], + ['mrp.production', ], + ['mrp.production.product.line', ], + ['mrp.unbuild', ], + ['change.production.qty', ], + ] + try: + for line in to_removes : + obj_name = line[0] + obj = self.pool.get(obj_name) + if obj and obj._table_exist: + sql = "delete from %s" % obj._table + self._cr.execute(sql) + # 更新序号 + seqs = self.env['ir.sequence'].search(['|', ('code', '=', 'mrp.production'), ('code', '=', 'mrp.unbuild')]) + for seq in seqs: + seq.write({ + 'number_next': 1, + }) + sql = "update ir_sequence set number_next=1 where (code ='mrp.production' or code ='mrp.unbuild');" + self._cr.execute(sql) + except Exception, e: + raise Warning(e) + return True + + @api.multi + def remove_mrp_bom(self): + to_removes = [ + # 清除生产BOM + ['mrp.bom.line', ], + ['mrp.bom', ], + ] + try: + for line in to_removes : + obj_name = line[0] + obj = self.pool.get(obj_name) + if obj and obj._table_exist: + sql = "delete from %s" % obj._table + self._cr.execute(sql) + except Exception, e: + raise Warning(e) + return True + + @api.multi + def remove_inventory(self): + to_removes = [ + # 清除库存单据 + ['stock.quant', ], + ['stock.quant.package', ], + ['stock.quant.move.rel', ], + ['stock.move', ], + ['stock.pack.operation', ], + ['stock.picking', ], + ['stock.scrap', ], + ['stock.inventory.line', ], + ['stock.inventory', ], + ['stock.production.lot', ], + ['stock.fixed.putaway.strat', ], + ['make.procurement', ], + ['procurement.order', ], + ['procurement.group', ], + ] + try: + for line in to_removes : + obj_name = line[0] + obj = self.pool.get(obj_name) + if obj and obj._table_exist: + sql = "delete from %s" % obj._table + self._cr.execute(sql) + # 更新序号 + seqs = self.env['ir.sequence'].search([ + '|', ('code', '=', 'stock.lot.serial'), + '|', ('code', '=', 'stock.lot.tracking'), + '|', ('code', '=', 'stock.orderpoint'), + '|', ('code', '=', 'stock.picking'), + '|', ('code', '=', 'stock.quant.package'), + '|', ('code', '=', 'stock.scrap'), + '|', ('code', '=', 'stock.picking'), + '|', ('prefix', '=', 'WH/IN/'), + '|', ('prefix', '=', 'WH/INT/'), + '|', ('prefix', '=', 'WH/OUT/'), + '|', ('prefix', '=', 'WH/PACK/'), + ('prefix', '=', 'WH/PICK/') + ]) + + for seq in seqs: + seq.write({ + 'number_next': 1, + }) + sql = "update ir_sequence set number_next=1 where (" \ + "code ='stock.lot.serial' " \ + "or code ='stock.lot.tracking' " \ + "or code ='stock.orderpoint'" \ + "or code ='stock.picking'" \ + "or code ='stock.quant.package'" \ + "or code ='stock.scrap'" \ + "or code ='stock.picking'" \ + "or prefix ='WH/IN/'" \ + "or prefix ='WH/INT/'" \ + "or prefix ='WH/OUT/'" \ + "or prefix ='WH/PACK/'" \ + "or prefix ='WH/PICK/'" \ + ");" + self._cr.execute(sql) + except Exception, e: + raise Warning(e) + return True + + @api.multi + def remove_account(self): + to_removes = [ + # 清除财务会计单据 + ['account.voucher.line', ], + ['account.voucher', ], + ['account.bank.statement', ], + ['account.bank.statement.line', ], + ['account.payment', ], + ['account.analytic.line', ], + ['account.invoice.line', ], + ['account.invoice', ], + ['account.partial.reconcile', ], + ['account.move.line', ], + ['account.move', ], + ] + try: + for line in to_removes : + obj_name = line[0] + obj = self.pool.get(obj_name) + if obj and obj._table_exist: + sql = "delete from %s" % obj._table + self._cr.execute(sql) + + # 更新序号 + seqs = self.env['ir.sequence'].search([ + '|', ('code', '=', 'account.reconcile'), + '|', ('code', '=', 'account.payment.customer.invoice'), + '|', ('code', '=', 'account.payment.customer.refund'), + '|', ('code', '=', 'account.payment.supplier.invoice'), + '|', ('code', '=', 'account.payment.supplier.refund'), + '|', ('code', '=', 'account.payment.transfer'), + '|', ('prefix', 'like', 'BNK1/'), + '|', ('prefix', 'like', 'CSH1/'), + '|', ('prefix', 'like', 'INV/'), + '|', ('prefix', 'like', 'EXCH/'), + '|', ('prefix', 'like', 'MISC/'), + '|', ('prefix', 'like', u'账单/'), + ('prefix', 'like', u'杂项/') + ]) + + for seq in seqs: + seq.write({ + 'number_next': 1, + }) + # todo: 帐单 or BILL/% + sql = "update ir_sequence set number_next=1 where (" \ + "code ='account.reconcile' " \ + "or code ='account.payment.customer.invoice' " \ + "or code ='account.payment.customer.refund' " \ + "or code ='account.payment.supplier.invoice' " \ + "or code ='account.payment.supplier.refund' " \ + "or prefix like 'BNK1/%'" \ + "or prefix like 'CSH1/%'" \ + "or prefix like 'INV/%'" \ + "or prefix like 'EXCH/%'" \ + "or prefix like 'MISC/%'" \ + "or prefix like '账单/%'" \ + "or prefix like '杂项/%'" \ + ");" + self._cr.execute(sql) + except Exception, e: + raise Warning(e) + return True + + @api.multi + def remove_message(self): + to_removes = [ + # 清除消息数据 + ['mail.message', ], + ['mail.followers', ], + ] + try: + for line in to_removes : + obj_name = line[0] + obj = self.pool.get(obj_name) + if obj and obj._table_exist: + sql = "delete from %s" % obj._table + self._cr.execute(sql) + except Exception, e: + raise Warning(e) + return True + + @api.multi + def remove_workflow(self): + to_removes = [ + # 清除工作流 + ['wkf.workitem', ], + ['wkf.instance', ], + ] + try: + for line in to_removes : + obj_name = line[0] + obj = self.pool.get(obj_name) + if obj and obj._table_exist: + sql = "delete from %s" % obj._table + self._cr.execute(sql) + + except Exception, e: + raise Warning(e) + return True diff --git a/app_odoo_dataclear/models/base_language_install.py b/app_odoo_dataclear/models/base_language_install.py new file mode 100644 index 00000000..727dd549 --- /dev/null +++ b/app_odoo_dataclear/models/base_language_install.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +# Copyright 2017 Jarvis (www.odoomod.com) +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). + +from openerp import api, fields, models, _ + + +class BaseLanguageInstall(models.TransientModel): + _inherit = "base.language.install" + + @api.multi + def lang_install(self): + self.ensure_one() + self.env.cr.execute(""" + delete from ir_translation + where (name='ir.module.module,shortdesc' + or name='ir.module.module,description' + or name='ir.module.module,summary') + and lang=%s + """, (self.lang,)) + return super(BaseLanguageInstall, self).lang_install() diff --git a/app_odoo_dataclear/models/ir_ui_view.py b/app_odoo_dataclear/models/ir_ui_view.py new file mode 100644 index 00000000..eca8ed13 --- /dev/null +++ b/app_odoo_dataclear/models/ir_ui_view.py @@ -0,0 +1,18 @@ +# -*- coding: utf-8 -*- + +import logging + +from openerp import api, fields, models, _ + +_logger = logging.getLogger(__name__) + +class View(models.Model): + _inherit = 'ir.ui.view' + + @api.model + def render_template(self, template, values=None, engine='ir.qweb'): + if template in ['web.login', 'web.webclient_bootstrap']: + if not values: + values = {} + values["title"] = self.env['ir.config_parameter'].get_param("app_system_name", "odooApp") + return super(View, self).render_template(template, values=values, engine=engine) \ No newline at end of file diff --git a/app_odoo_dataclear/models/mail_thread.py b/app_odoo_dataclear/models/mail_thread.py new file mode 100644 index 00000000..ec59b6e6 --- /dev/null +++ b/app_odoo_dataclear/models/mail_thread.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +# Copyright 2017 Jarvis (www.odoomod.com) +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). + +from openerp import api, fields, models, _ + + +class MailThread(models.AbstractModel): + _inherit = "mail.thread" + + @api.multi + def message_subscribe(self, partner_ids=None, channel_ids=None, subtype_ids=None, force=True): + """ 停用订阅功能. """ + ir_config = self.env['ir.config_parameter'] + app_stop_subscribe = True if ir_config.get_param('app_stop_subscribe') == "True" else False + if app_stop_subscribe: + return + else: + return super(MailThread, self).message_subscribe(partner_ids, channel_ids, subtype_ids, force) + + @api.multi + def message_auto_subscribe(self, updated_fields, values=None): + """ 停用订阅功能. """ + ir_config = self.env['ir.config_parameter'] + app_stop_subscribe = True if ir_config.get_param('app_stop_subscribe') == "True" else False + if app_stop_subscribe: + return + else: + return super(MailThread, self).message_auto_subscribe(updated_fields, values) + + @api.multi + def _message_auto_subscribe_notify(self, partner_ids): + """ 停用订阅功能. """ + ir_config = self.env['ir.config_parameter'] + app_stop_subscribe = True if ir_config.get_param('app_stop_subscribe') == "True" else False + if app_stop_subscribe: + return + else: + return super(MailThread, self)._message_auto_subscribe_notify(partner_ids) \ No newline at end of file diff --git a/app_odoo_dataclear/readme.md b/app_odoo_dataclear/readme.md new file mode 100644 index 00000000..c238f19d --- /dev/null +++ b/app_odoo_dataclear/readme.md @@ -0,0 +1,44 @@ +##App Odoo Customize(Debranding Title,Language,Documentation,Quick Debug,Quick Data Clear) +============ +White label odoo. +You can config odoo, make it look like your own platform. +14. Quick delete test data in Apps: Sales/POS/Purchase/MRP/Inventory/Accounting/Message/Workflow etc. +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. + +For more support +http://www.sunpop.cn + +## 在符合odoo开源协议的前提下,去除odoo版权信息,自定义你的odoo +可完全自行设置下列 odoo 选项,让 odoo 看上去像是你的软件产品 +1. 删除菜单导航页脚的 Odoo 标签 +2. 将弹出窗口中 "Odoo" 设置为自定义名称 +3. 自定义用户菜单中的 Documentation, Support, About 的链接 +4. 在用户菜单中增加快速切换开发模式 +5. 在用户菜单中增加快速切换多国语言 +6. 对语言菜单进行美化,设置国旗图标 +7. 在用户菜单中增加中/英文用户手册,可以不用翻墙加速了 +8. 在用户菜单中增加开发者手册,含python教程,jquery参考,Jinja2模板,PostgresSQL参考 +9. 在用户菜单中自定义"My odoo.com account" +10. 单独设置面板,每个选项都可以自定义 +11. 提供236个国家的国旗文件(部份需要自行设置文件名) +12. 多语言版本 +13. 自定义登陆界面中的 Powered by Odoo +14. 快速删除测试数据,支持模块包括:销售/POS门店/采购/生产/库存/会计/消息与工作流等. +15. 将各类单据的序号重置,从1开始,包括:SO/PO/MO/Invoice 等 +16. 修复odoo启用英文后模块不显示中文的Bug +17. 可停用odoo自动订阅功能,避免“同样对象关注2次”bug,同时提升性能 + +使用方法:将解压后的 app_odoo_customize 放到 odoo的 addons目录下,激活开发者模式,应用-->更新应用列表, +找到 "App odoo Customize"模块,安装即可。 + +## 其它技术资源: +#### odoo10-windows64位高性能最新绿色版下载及制作方法-提速50% +http://www.sunpop.cn/odoo10_fast_x64_download/ +#### Odoo10离线中文用户手册下载 +http://www.sunpop.cn/odoo10_user_manual_document_offline/ +#### Odoo10离线开发手册下载-含python教程,jquery参考,Jinja2模板,PostgresSQL参考(odoo开发必备) +http://www.sunpop.cn/odoo10_developer_document_offline/ + + diff --git a/app_odoo_dataclear/static/description/banner.png b/app_odoo_dataclear/static/description/banner.png new file mode 100644 index 00000000..6bd0fba1 Binary files /dev/null and b/app_odoo_dataclear/static/description/banner.png differ diff --git a/app_odoo_dataclear/static/description/cnreadme.png b/app_odoo_dataclear/static/description/cnreadme.png new file mode 100644 index 00000000..d76676e0 Binary files /dev/null and b/app_odoo_dataclear/static/description/cnreadme.png differ diff --git a/app_odoo_dataclear/static/description/icon.png b/app_odoo_dataclear/static/description/icon.png new file mode 100644 index 00000000..4c57f611 Binary files /dev/null and b/app_odoo_dataclear/static/description/icon.png differ diff --git a/app_odoo_dataclear/static/description/index.html b/app_odoo_dataclear/static/description/index.html new file mode 100644 index 00000000..315b247f --- /dev/null +++ b/app_odoo_dataclear/static/description/index.html @@ -0,0 +1,109 @@ +
+
+
+

App Odoo Data Clear

+
+

This moduld allows user to quick Data Clear.

+

More Powerful UI addons: + App UI enhance +

+
+
    +
  • 14. Quick delete test data in Apps: Sales/POS/Purchase/MRP/Inventory/Accounting/Base Models.
  • +
+
+
+
+ + +
+
+

Odoo Customize(Debranding Title,Language,Documentation,Quick Debug)

+
+
+ +
+ +
+
+
+

Multi-language support: Chinese ready

+
+
+ +
+ +
+
+
+ +
+
+

How to use: Go to Settings -> odooApp Settings

+
+
+ +
+
+
+ +
+
+

Setup more flags: just rename the flag pic to locale code of the country

+

You can find the pictures in "\app-odoo\app_odoo_customize\static\src\img\flags"

+
+
+ +
+
+
+ +
+
+

Quick Delete test Data.

+

You can quickly delete all the test data in Apps: Sales/POS/Purchase/MRP/Inventory/Accounting/Message/Workflow etc.

+
+
+ +
+
+
+
+ +
+
+
+

Technical Help & Support

+
+
+
+

+ For any type of technical help & support requests, Feel free to contact us

+ + guohuadeng@hotmail.com +

+ Via QQ: 300883

+ + 300883@qq.com +
+
+

+ Visit our website for more support.

+ + http://www.sunpop.cn +
+
+
+
+ diff --git a/app_odoo_dataclear/static/description/set1.png b/app_odoo_dataclear/static/description/set1.png new file mode 100644 index 00000000..b68f7abe Binary files /dev/null and b/app_odoo_dataclear/static/description/set1.png differ diff --git a/app_odoo_dataclear/static/description/set11.png b/app_odoo_dataclear/static/description/set11.png new file mode 100644 index 00000000..3f004c03 Binary files /dev/null and b/app_odoo_dataclear/static/description/set11.png differ diff --git a/app_odoo_dataclear/static/description/set12.png b/app_odoo_dataclear/static/description/set12.png new file mode 100644 index 00000000..bda7ea1b Binary files /dev/null and b/app_odoo_dataclear/static/description/set12.png differ diff --git a/app_odoo_dataclear/static/description/set2.png b/app_odoo_dataclear/static/description/set2.png new file mode 100644 index 00000000..896f33b1 Binary files /dev/null and b/app_odoo_dataclear/static/description/set2.png differ diff --git a/app_odoo_dataclear/static/description/set3.png b/app_odoo_dataclear/static/description/set3.png new file mode 100644 index 00000000..0c2edc58 Binary files /dev/null and b/app_odoo_dataclear/static/description/set3.png differ diff --git a/app_odoo_dataclear/static/src/css/app.css b/app_odoo_dataclear/static/src/css/app.css new file mode 100644 index 00000000..4d00f248 --- /dev/null +++ b/app_odoo_dataclear/static/src/css/app.css @@ -0,0 +1,8 @@ +.o_user_menu .dropdown-menu img { + height: 20px; + margin: 2px; +} +li .flag img { + height: 30px; + height: auto; +} \ No newline at end of file diff --git a/app_odoo_dataclear/static/src/img/flags/de_DE.png b/app_odoo_dataclear/static/src/img/flags/de_DE.png new file mode 100644 index 00000000..5bcb0b2b Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/de_DE.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/en_US.png b/app_odoo_dataclear/static/src/img/flags/en_US.png new file mode 100644 index 00000000..5c4f03e2 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/en_US.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/es_ES.png b/app_odoo_dataclear/static/src/img/flags/es_ES.png new file mode 100644 index 00000000..0c9580b0 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/es_ES.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/es_ES.png~HEAD b/app_odoo_dataclear/static/src/img/flags/es_ES.png~HEAD new file mode 100644 index 00000000..0c9580b0 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/es_ES.png~HEAD differ diff --git a/app_odoo_dataclear/static/src/img/flags/es_ES.png~origin_10.0 b/app_odoo_dataclear/static/src/img/flags/es_ES.png~origin_10.0 new file mode 100644 index 00000000..0c9580b0 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/es_ES.png~origin_10.0 differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_afghanistan.png b/app_odoo_dataclear/static/src/img/flags/flag_afghanistan.png new file mode 100644 index 00000000..e5ee97f1 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_afghanistan.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_albania.png b/app_odoo_dataclear/static/src/img/flags/flag_albania.png new file mode 100644 index 00000000..8aac6dce Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_albania.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_algeria.png b/app_odoo_dataclear/static/src/img/flags/flag_algeria.png new file mode 100644 index 00000000..afaf8142 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_algeria.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_american_samoa.png b/app_odoo_dataclear/static/src/img/flags/flag_american_samoa.png new file mode 100644 index 00000000..49a77ce6 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_american_samoa.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_andorra.png b/app_odoo_dataclear/static/src/img/flags/flag_andorra.png new file mode 100644 index 00000000..b1fb0225 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_andorra.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_angola.png b/app_odoo_dataclear/static/src/img/flags/flag_angola.png new file mode 100644 index 00000000..d16b690f Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_angola.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_anguilla.png b/app_odoo_dataclear/static/src/img/flags/flag_anguilla.png new file mode 100644 index 00000000..b63d5f43 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_anguilla.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_antigua_and_barbuda.png b/app_odoo_dataclear/static/src/img/flags/flag_antigua_and_barbuda.png new file mode 100644 index 00000000..1ed51774 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_antigua_and_barbuda.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_argentina.png b/app_odoo_dataclear/static/src/img/flags/flag_argentina.png new file mode 100644 index 00000000..3adecbad Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_argentina.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_armenia.png b/app_odoo_dataclear/static/src/img/flags/flag_armenia.png new file mode 100644 index 00000000..e819b9b5 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_armenia.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_aruba.png b/app_odoo_dataclear/static/src/img/flags/flag_aruba.png new file mode 100644 index 00000000..35cd54d6 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_aruba.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_australia.png b/app_odoo_dataclear/static/src/img/flags/flag_australia.png new file mode 100644 index 00000000..8108cc37 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_australia.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_austria.png b/app_odoo_dataclear/static/src/img/flags/flag_austria.png new file mode 100644 index 00000000..0993dfa8 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_austria.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_azerbaijan.png b/app_odoo_dataclear/static/src/img/flags/flag_azerbaijan.png new file mode 100644 index 00000000..e0d7c6a7 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_azerbaijan.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_bahamas.png b/app_odoo_dataclear/static/src/img/flags/flag_bahamas.png new file mode 100644 index 00000000..5b75d213 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_bahamas.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_bahrain.png b/app_odoo_dataclear/static/src/img/flags/flag_bahrain.png new file mode 100644 index 00000000..131c494a Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_bahrain.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_bangladesh.png b/app_odoo_dataclear/static/src/img/flags/flag_bangladesh.png new file mode 100644 index 00000000..14ccd4c7 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_bangladesh.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_barbados.png b/app_odoo_dataclear/static/src/img/flags/flag_barbados.png new file mode 100644 index 00000000..1923c7a5 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_barbados.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_belarus.png b/app_odoo_dataclear/static/src/img/flags/flag_belarus.png new file mode 100644 index 00000000..5d098126 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_belarus.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_belgium.png b/app_odoo_dataclear/static/src/img/flags/flag_belgium.png new file mode 100644 index 00000000..d19bd942 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_belgium.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_belize.png b/app_odoo_dataclear/static/src/img/flags/flag_belize.png new file mode 100644 index 00000000..e5c30ded Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_belize.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_benin.png b/app_odoo_dataclear/static/src/img/flags/flag_benin.png new file mode 100644 index 00000000..500fd032 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_benin.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_bermuda.png b/app_odoo_dataclear/static/src/img/flags/flag_bermuda.png new file mode 100644 index 00000000..f44a1100 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_bermuda.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_bhutan.png b/app_odoo_dataclear/static/src/img/flags/flag_bhutan.png new file mode 100644 index 00000000..94c81a9e Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_bhutan.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_bolivia.png b/app_odoo_dataclear/static/src/img/flags/flag_bolivia.png new file mode 100644 index 00000000..e44677a1 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_bolivia.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_bosnia_and_herzegovina.png b/app_odoo_dataclear/static/src/img/flags/flag_bosnia_and_herzegovina.png new file mode 100644 index 00000000..d3595a50 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_bosnia_and_herzegovina.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_botswana.png b/app_odoo_dataclear/static/src/img/flags/flag_botswana.png new file mode 100644 index 00000000..b458e964 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_botswana.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_brazil.png b/app_odoo_dataclear/static/src/img/flags/flag_brazil.png new file mode 100644 index 00000000..9b01d07d Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_brazil.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_british_indian_ocean_territory.png b/app_odoo_dataclear/static/src/img/flags/flag_british_indian_ocean_territory.png new file mode 100644 index 00000000..4ca19cfb Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_british_indian_ocean_territory.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_british_virgin_islands.png b/app_odoo_dataclear/static/src/img/flags/flag_british_virgin_islands.png new file mode 100644 index 00000000..5b88c96a Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_british_virgin_islands.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_brunei.png b/app_odoo_dataclear/static/src/img/flags/flag_brunei.png new file mode 100644 index 00000000..433a7465 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_brunei.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_bulgaria.png b/app_odoo_dataclear/static/src/img/flags/flag_bulgaria.png new file mode 100644 index 00000000..8716c7a0 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_bulgaria.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_burkina_faso.png b/app_odoo_dataclear/static/src/img/flags/flag_burkina_faso.png new file mode 100644 index 00000000..9d105b7e Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_burkina_faso.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_burma.png b/app_odoo_dataclear/static/src/img/flags/flag_burma.png new file mode 100644 index 00000000..31a5fc27 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_burma.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_burundi.png b/app_odoo_dataclear/static/src/img/flags/flag_burundi.png new file mode 100644 index 00000000..7a11bf80 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_burundi.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_cambodia.png b/app_odoo_dataclear/static/src/img/flags/flag_cambodia.png new file mode 100644 index 00000000..4b313803 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_cambodia.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_cameroon.png b/app_odoo_dataclear/static/src/img/flags/flag_cameroon.png new file mode 100644 index 00000000..e5b98fd6 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_cameroon.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_canada.png b/app_odoo_dataclear/static/src/img/flags/flag_canada.png new file mode 100644 index 00000000..30e76b08 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_canada.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_cape_verde.png b/app_odoo_dataclear/static/src/img/flags/flag_cape_verde.png new file mode 100644 index 00000000..a12b2618 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_cape_verde.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_cayman_islands.png b/app_odoo_dataclear/static/src/img/flags/flag_cayman_islands.png new file mode 100644 index 00000000..2751dd1c Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_cayman_islands.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_central_african_republic.png b/app_odoo_dataclear/static/src/img/flags/flag_central_african_republic.png new file mode 100644 index 00000000..5ce7df13 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_central_african_republic.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_chad.png b/app_odoo_dataclear/static/src/img/flags/flag_chad.png new file mode 100644 index 00000000..250ea6f4 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_chad.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_checkered.png b/app_odoo_dataclear/static/src/img/flags/flag_checkered.png new file mode 100644 index 00000000..128d5d78 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_checkered.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_chile.png b/app_odoo_dataclear/static/src/img/flags/flag_chile.png new file mode 100644 index 00000000..85d3a6c8 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_chile.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_colombia.png b/app_odoo_dataclear/static/src/img/flags/flag_colombia.png new file mode 100644 index 00000000..736d7618 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_colombia.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_comoros.png b/app_odoo_dataclear/static/src/img/flags/flag_comoros.png new file mode 100644 index 00000000..c09c3927 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_comoros.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_congo_democratic_republic.png b/app_odoo_dataclear/static/src/img/flags/flag_congo_democratic_republic.png new file mode 100644 index 00000000..4091ed9a Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_congo_democratic_republic.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_congo_republic.png b/app_odoo_dataclear/static/src/img/flags/flag_congo_republic.png new file mode 100644 index 00000000..2f4795aa Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_congo_republic.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_cook_islands.png b/app_odoo_dataclear/static/src/img/flags/flag_cook_islands.png new file mode 100644 index 00000000..f337d0c9 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_cook_islands.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_costa_rica.png b/app_odoo_dataclear/static/src/img/flags/flag_costa_rica.png new file mode 100644 index 00000000..361a65fe Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_costa_rica.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_cote_divoire.png b/app_odoo_dataclear/static/src/img/flags/flag_cote_divoire.png new file mode 100644 index 00000000..536abd6a Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_cote_divoire.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_croatia.png b/app_odoo_dataclear/static/src/img/flags/flag_croatia.png new file mode 100644 index 00000000..1471bf15 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_croatia.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_cuba.png b/app_odoo_dataclear/static/src/img/flags/flag_cuba.png new file mode 100644 index 00000000..e5b23f52 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_cuba.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_cyprus.png b/app_odoo_dataclear/static/src/img/flags/flag_cyprus.png new file mode 100644 index 00000000..1d30fa97 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_cyprus.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_czech_republic.png b/app_odoo_dataclear/static/src/img/flags/flag_czech_republic.png new file mode 100644 index 00000000..6c5556a8 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_czech_republic.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_denmark.png b/app_odoo_dataclear/static/src/img/flags/flag_denmark.png new file mode 100644 index 00000000..c9e4450b Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_denmark.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_djibouti.png b/app_odoo_dataclear/static/src/img/flags/flag_djibouti.png new file mode 100644 index 00000000..db95c50b Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_djibouti.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_dominica.png b/app_odoo_dataclear/static/src/img/flags/flag_dominica.png new file mode 100644 index 00000000..d2dc6374 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_dominica.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_dominican_republic.png b/app_odoo_dataclear/static/src/img/flags/flag_dominican_republic.png new file mode 100644 index 00000000..29970e73 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_dominican_republic.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_east_timor.png b/app_odoo_dataclear/static/src/img/flags/flag_east_timor.png new file mode 100644 index 00000000..1553f1e5 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_east_timor.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_ecuador.png b/app_odoo_dataclear/static/src/img/flags/flag_ecuador.png new file mode 100644 index 00000000..0273da66 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_ecuador.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_egypt.png b/app_odoo_dataclear/static/src/img/flags/flag_egypt.png new file mode 100644 index 00000000..ebe257ad Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_egypt.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_el_salvador.png b/app_odoo_dataclear/static/src/img/flags/flag_el_salvador.png new file mode 100644 index 00000000..0c114b89 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_el_salvador.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_england.png b/app_odoo_dataclear/static/src/img/flags/flag_england.png new file mode 100644 index 00000000..41940377 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_england.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_equatorial_guinea.png b/app_odoo_dataclear/static/src/img/flags/flag_equatorial_guinea.png new file mode 100644 index 00000000..5bf6458b Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_equatorial_guinea.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_eritrea.png b/app_odoo_dataclear/static/src/img/flags/flag_eritrea.png new file mode 100644 index 00000000..6e7e770e Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_eritrea.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_estonia.png b/app_odoo_dataclear/static/src/img/flags/flag_estonia.png new file mode 100644 index 00000000..5ef87c07 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_estonia.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_ethiopia.png b/app_odoo_dataclear/static/src/img/flags/flag_ethiopia.png new file mode 100644 index 00000000..5330161f Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_ethiopia.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_eu.png b/app_odoo_dataclear/static/src/img/flags/flag_eu.png new file mode 100644 index 00000000..7b67730d Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_eu.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_faeroe_islands.png b/app_odoo_dataclear/static/src/img/flags/flag_faeroe_islands.png new file mode 100644 index 00000000..5d781a32 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_faeroe_islands.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_falkland_islands.png b/app_odoo_dataclear/static/src/img/flags/flag_falkland_islands.png new file mode 100644 index 00000000..788bee08 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_falkland_islands.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_fiji.png b/app_odoo_dataclear/static/src/img/flags/flag_fiji.png new file mode 100644 index 00000000..ffc11731 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_fiji.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_finland.png b/app_odoo_dataclear/static/src/img/flags/flag_finland.png new file mode 100644 index 00000000..24f113ec Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_finland.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_french_polynesia.png b/app_odoo_dataclear/static/src/img/flags/flag_french_polynesia.png new file mode 100644 index 00000000..43b6698f Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_french_polynesia.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_gabon.png b/app_odoo_dataclear/static/src/img/flags/flag_gabon.png new file mode 100644 index 00000000..bfdc1ea7 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_gabon.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_gambia.png b/app_odoo_dataclear/static/src/img/flags/flag_gambia.png new file mode 100644 index 00000000..62194b7d Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_gambia.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_generic.png b/app_odoo_dataclear/static/src/img/flags/flag_generic.png new file mode 100644 index 00000000..c12b24df Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_generic.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_georgia.png b/app_odoo_dataclear/static/src/img/flags/flag_georgia.png new file mode 100644 index 00000000..09dae1d4 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_georgia.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_ghana.png b/app_odoo_dataclear/static/src/img/flags/flag_ghana.png new file mode 100644 index 00000000..e985e9ce Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_ghana.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_gibraltar.png b/app_odoo_dataclear/static/src/img/flags/flag_gibraltar.png new file mode 100644 index 00000000..731a99a2 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_gibraltar.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_greece.png b/app_odoo_dataclear/static/src/img/flags/flag_greece.png new file mode 100644 index 00000000..7d5f7019 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_greece.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_greenland.png b/app_odoo_dataclear/static/src/img/flags/flag_greenland.png new file mode 100644 index 00000000..94ccb785 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_greenland.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_grenada.png b/app_odoo_dataclear/static/src/img/flags/flag_grenada.png new file mode 100644 index 00000000..6555c1b7 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_grenada.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_guam.png b/app_odoo_dataclear/static/src/img/flags/flag_guam.png new file mode 100644 index 00000000..271cd8cc Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_guam.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_guatemala.png b/app_odoo_dataclear/static/src/img/flags/flag_guatemala.png new file mode 100644 index 00000000..139e648b Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_guatemala.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_guernsey.png b/app_odoo_dataclear/static/src/img/flags/flag_guernsey.png new file mode 100644 index 00000000..e45ae1d8 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_guernsey.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_guinea.png b/app_odoo_dataclear/static/src/img/flags/flag_guinea.png new file mode 100644 index 00000000..99839874 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_guinea.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_guinea_bissau.png b/app_odoo_dataclear/static/src/img/flags/flag_guinea_bissau.png new file mode 100644 index 00000000..9d743983 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_guinea_bissau.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_guyana.png b/app_odoo_dataclear/static/src/img/flags/flag_guyana.png new file mode 100644 index 00000000..0d9bb963 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_guyana.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_haiti.png b/app_odoo_dataclear/static/src/img/flags/flag_haiti.png new file mode 100644 index 00000000..4b4eb300 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_haiti.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_honduras.png b/app_odoo_dataclear/static/src/img/flags/flag_honduras.png new file mode 100644 index 00000000..62b85fa7 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_honduras.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_hong_kong.png b/app_odoo_dataclear/static/src/img/flags/flag_hong_kong.png new file mode 100644 index 00000000..8426e7cc Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_hong_kong.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_hungary.png b/app_odoo_dataclear/static/src/img/flags/flag_hungary.png new file mode 100644 index 00000000..d903f3dc Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_hungary.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_iceland.png b/app_odoo_dataclear/static/src/img/flags/flag_iceland.png new file mode 100644 index 00000000..2fc4f7ab Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_iceland.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_india.png b/app_odoo_dataclear/static/src/img/flags/flag_india.png new file mode 100644 index 00000000..ceb9971c Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_india.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_indonesia.png b/app_odoo_dataclear/static/src/img/flags/flag_indonesia.png new file mode 100644 index 00000000..aff745b5 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_indonesia.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_iran.png b/app_odoo_dataclear/static/src/img/flags/flag_iran.png new file mode 100644 index 00000000..cc6acabe Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_iran.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_iraq.png b/app_odoo_dataclear/static/src/img/flags/flag_iraq.png new file mode 100644 index 00000000..570f8994 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_iraq.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_ireland.png b/app_odoo_dataclear/static/src/img/flags/flag_ireland.png new file mode 100644 index 00000000..75c91bed Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_ireland.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_isle_of_man.png b/app_odoo_dataclear/static/src/img/flags/flag_isle_of_man.png new file mode 100644 index 00000000..1f761fee Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_isle_of_man.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_israel.png b/app_odoo_dataclear/static/src/img/flags/flag_israel.png new file mode 100644 index 00000000..b05ebc26 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_israel.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_italy.png b/app_odoo_dataclear/static/src/img/flags/flag_italy.png new file mode 100644 index 00000000..f6aa615e Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_italy.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_jamaica.png b/app_odoo_dataclear/static/src/img/flags/flag_jamaica.png new file mode 100644 index 00000000..3a422e62 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_jamaica.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_japan.png b/app_odoo_dataclear/static/src/img/flags/flag_japan.png new file mode 100644 index 00000000..066ab4d8 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_japan.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_jersey.png b/app_odoo_dataclear/static/src/img/flags/flag_jersey.png new file mode 100644 index 00000000..03f648fb Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_jersey.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_jordan.png b/app_odoo_dataclear/static/src/img/flags/flag_jordan.png new file mode 100644 index 00000000..6d680054 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_jordan.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_kazakhstan.png b/app_odoo_dataclear/static/src/img/flags/flag_kazakhstan.png new file mode 100644 index 00000000..e1562a65 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_kazakhstan.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_kenya.png b/app_odoo_dataclear/static/src/img/flags/flag_kenya.png new file mode 100644 index 00000000..14a202cf Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_kenya.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_kiribati.png b/app_odoo_dataclear/static/src/img/flags/flag_kiribati.png new file mode 100644 index 00000000..f5b08a25 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_kiribati.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_kuwait.png b/app_odoo_dataclear/static/src/img/flags/flag_kuwait.png new file mode 100644 index 00000000..82357429 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_kuwait.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_kyrgyzstan.png b/app_odoo_dataclear/static/src/img/flags/flag_kyrgyzstan.png new file mode 100644 index 00000000..b4974f47 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_kyrgyzstan.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_laos.png b/app_odoo_dataclear/static/src/img/flags/flag_laos.png new file mode 100644 index 00000000..665aa7d8 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_laos.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_latvia.png b/app_odoo_dataclear/static/src/img/flags/flag_latvia.png new file mode 100644 index 00000000..b466aa7f Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_latvia.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_lebanon.png b/app_odoo_dataclear/static/src/img/flags/flag_lebanon.png new file mode 100644 index 00000000..6e170b1d Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_lebanon.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_lesotho.png b/app_odoo_dataclear/static/src/img/flags/flag_lesotho.png new file mode 100644 index 00000000..f6ee22d8 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_lesotho.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_liberia.png b/app_odoo_dataclear/static/src/img/flags/flag_liberia.png new file mode 100644 index 00000000..d4c10fc4 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_liberia.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_libya.png b/app_odoo_dataclear/static/src/img/flags/flag_libya.png new file mode 100644 index 00000000..14f9a3a3 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_libya.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_liechtenstein.png b/app_odoo_dataclear/static/src/img/flags/flag_liechtenstein.png new file mode 100644 index 00000000..a2f5fc0b Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_liechtenstein.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_lithuania.png b/app_odoo_dataclear/static/src/img/flags/flag_lithuania.png new file mode 100644 index 00000000..709383fc Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_lithuania.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_luxembourg.png b/app_odoo_dataclear/static/src/img/flags/flag_luxembourg.png new file mode 100644 index 00000000..dc4814f8 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_luxembourg.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_macau.png b/app_odoo_dataclear/static/src/img/flags/flag_macau.png new file mode 100644 index 00000000..cf60bb75 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_macau.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_macedonia.png b/app_odoo_dataclear/static/src/img/flags/flag_macedonia.png new file mode 100644 index 00000000..2d9a8ae7 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_macedonia.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_madagascar.png b/app_odoo_dataclear/static/src/img/flags/flag_madagascar.png new file mode 100644 index 00000000..2e84d6ee Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_madagascar.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_malawi.png b/app_odoo_dataclear/static/src/img/flags/flag_malawi.png new file mode 100644 index 00000000..a17c4519 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_malawi.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_malaysia.png b/app_odoo_dataclear/static/src/img/flags/flag_malaysia.png new file mode 100644 index 00000000..1eeb7be3 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_malaysia.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_maldives.png b/app_odoo_dataclear/static/src/img/flags/flag_maldives.png new file mode 100644 index 00000000..d9d72e23 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_maldives.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_mali.png b/app_odoo_dataclear/static/src/img/flags/flag_mali.png new file mode 100644 index 00000000..cae153fe Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_mali.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_malta.png b/app_odoo_dataclear/static/src/img/flags/flag_malta.png new file mode 100644 index 00000000..736aa4ca Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_malta.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_marshall_islands.png b/app_odoo_dataclear/static/src/img/flags/flag_marshall_islands.png new file mode 100644 index 00000000..082eb763 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_marshall_islands.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_martinique.png b/app_odoo_dataclear/static/src/img/flags/flag_martinique.png new file mode 100644 index 00000000..a20c9b38 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_martinique.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_mauritania.png b/app_odoo_dataclear/static/src/img/flags/flag_mauritania.png new file mode 100644 index 00000000..03db77f7 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_mauritania.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_mauritius.png b/app_odoo_dataclear/static/src/img/flags/flag_mauritius.png new file mode 100644 index 00000000..5336f591 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_mauritius.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_mexico.png b/app_odoo_dataclear/static/src/img/flags/flag_mexico.png new file mode 100644 index 00000000..539739fe Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_mexico.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_micronesia.png b/app_odoo_dataclear/static/src/img/flags/flag_micronesia.png new file mode 100644 index 00000000..dfda47ee Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_micronesia.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_moldova.png b/app_odoo_dataclear/static/src/img/flags/flag_moldova.png new file mode 100644 index 00000000..e7ee75db Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_moldova.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_monaco.png b/app_odoo_dataclear/static/src/img/flags/flag_monaco.png new file mode 100644 index 00000000..b51dc7f6 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_monaco.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_mongolia.png b/app_odoo_dataclear/static/src/img/flags/flag_mongolia.png new file mode 100644 index 00000000..825a0c29 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_mongolia.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_montenegro.png b/app_odoo_dataclear/static/src/img/flags/flag_montenegro.png new file mode 100644 index 00000000..8d1ad79b Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_montenegro.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_montserrat.png b/app_odoo_dataclear/static/src/img/flags/flag_montserrat.png new file mode 100644 index 00000000..53b21152 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_montserrat.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_morocco.png b/app_odoo_dataclear/static/src/img/flags/flag_morocco.png new file mode 100644 index 00000000..193f0cd2 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_morocco.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_mozambique.png b/app_odoo_dataclear/static/src/img/flags/flag_mozambique.png new file mode 100644 index 00000000..e8051d3c Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_mozambique.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_namibia.png b/app_odoo_dataclear/static/src/img/flags/flag_namibia.png new file mode 100644 index 00000000..ebaa9ce1 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_namibia.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_nauru.png b/app_odoo_dataclear/static/src/img/flags/flag_nauru.png new file mode 100644 index 00000000..c8cbecc4 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_nauru.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_nepal.png b/app_odoo_dataclear/static/src/img/flags/flag_nepal.png new file mode 100644 index 00000000..c43e96da Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_nepal.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_netherlands.png b/app_odoo_dataclear/static/src/img/flags/flag_netherlands.png new file mode 100644 index 00000000..e566685f Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_netherlands.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_netherlands_antilles.png b/app_odoo_dataclear/static/src/img/flags/flag_netherlands_antilles.png new file mode 100644 index 00000000..c1fbf588 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_netherlands_antilles.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_new_zealand.png b/app_odoo_dataclear/static/src/img/flags/flag_new_zealand.png new file mode 100644 index 00000000..2ed6512e Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_new_zealand.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_nicaragua.png b/app_odoo_dataclear/static/src/img/flags/flag_nicaragua.png new file mode 100644 index 00000000..e48abf3b Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_nicaragua.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_niger.png b/app_odoo_dataclear/static/src/img/flags/flag_niger.png new file mode 100644 index 00000000..a54b1d8b Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_niger.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_nigeria.png b/app_odoo_dataclear/static/src/img/flags/flag_nigeria.png new file mode 100644 index 00000000..afdc0fbd Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_nigeria.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_niue.png b/app_odoo_dataclear/static/src/img/flags/flag_niue.png new file mode 100644 index 00000000..ec9fa49a Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_niue.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_norfolk_island.png b/app_odoo_dataclear/static/src/img/flags/flag_norfolk_island.png new file mode 100644 index 00000000..7dcad5b0 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_norfolk_island.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_north_korea.png b/app_odoo_dataclear/static/src/img/flags/flag_north_korea.png new file mode 100644 index 00000000..4df5f0a4 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_north_korea.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_northern_mariana_islands.png b/app_odoo_dataclear/static/src/img/flags/flag_northern_mariana_islands.png new file mode 100644 index 00000000..3da7c7c0 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_northern_mariana_islands.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_norway.png b/app_odoo_dataclear/static/src/img/flags/flag_norway.png new file mode 100644 index 00000000..f1e64f75 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_norway.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_oman.png b/app_odoo_dataclear/static/src/img/flags/flag_oman.png new file mode 100644 index 00000000..a50864e3 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_oman.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_pakistan.png b/app_odoo_dataclear/static/src/img/flags/flag_pakistan.png new file mode 100644 index 00000000..e4633af1 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_pakistan.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_palau.png b/app_odoo_dataclear/static/src/img/flags/flag_palau.png new file mode 100644 index 00000000..2425cbf4 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_palau.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_panama.png b/app_odoo_dataclear/static/src/img/flags/flag_panama.png new file mode 100644 index 00000000..1fdbc11f Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_panama.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_papua_new_guinea.png b/app_odoo_dataclear/static/src/img/flags/flag_papua_new_guinea.png new file mode 100644 index 00000000..cc0455c7 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_papua_new_guinea.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_paraguay.png b/app_odoo_dataclear/static/src/img/flags/flag_paraguay.png new file mode 100644 index 00000000..e3b76cee Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_paraguay.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_peru.png b/app_odoo_dataclear/static/src/img/flags/flag_peru.png new file mode 100644 index 00000000..a40226fd Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_peru.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_philippines.png b/app_odoo_dataclear/static/src/img/flags/flag_philippines.png new file mode 100644 index 00000000..d847f8c1 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_philippines.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_pirate.png b/app_odoo_dataclear/static/src/img/flags/flag_pirate.png new file mode 100644 index 00000000..bc493602 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_pirate.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_pitcairn_islands.png b/app_odoo_dataclear/static/src/img/flags/flag_pitcairn_islands.png new file mode 100644 index 00000000..f2b9b5e2 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_pitcairn_islands.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_poland.png b/app_odoo_dataclear/static/src/img/flags/flag_poland.png new file mode 100644 index 00000000..9fb2f6aa Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_poland.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_portugal.png b/app_odoo_dataclear/static/src/img/flags/flag_portugal.png new file mode 100644 index 00000000..c3de0b19 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_portugal.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_puerto_rico.png b/app_odoo_dataclear/static/src/img/flags/flag_puerto_rico.png new file mode 100644 index 00000000..3c995992 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_puerto_rico.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_qatar.png b/app_odoo_dataclear/static/src/img/flags/flag_qatar.png new file mode 100644 index 00000000..902fc4d5 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_qatar.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_rainbow.png b/app_odoo_dataclear/static/src/img/flags/flag_rainbow.png new file mode 100644 index 00000000..78fc721c Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_rainbow.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_romania.png b/app_odoo_dataclear/static/src/img/flags/flag_romania.png new file mode 100644 index 00000000..4e7f9f13 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_romania.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_rwanda.png b/app_odoo_dataclear/static/src/img/flags/flag_rwanda.png new file mode 100644 index 00000000..444c8c79 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_rwanda.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_saint_helena.png b/app_odoo_dataclear/static/src/img/flags/flag_saint_helena.png new file mode 100644 index 00000000..82a3b598 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_saint_helena.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_saint_kitts_and_nevis.png b/app_odoo_dataclear/static/src/img/flags/flag_saint_kitts_and_nevis.png new file mode 100644 index 00000000..796827d5 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_saint_kitts_and_nevis.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_saint_lucia.png b/app_odoo_dataclear/static/src/img/flags/flag_saint_lucia.png new file mode 100644 index 00000000..d3a719dc Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_saint_lucia.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_saint_pierre_and_miquelon.png b/app_odoo_dataclear/static/src/img/flags/flag_saint_pierre_and_miquelon.png new file mode 100644 index 00000000..ef0df15c Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_saint_pierre_and_miquelon.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_saint_vincent_and_the_grenadines.png b/app_odoo_dataclear/static/src/img/flags/flag_saint_vincent_and_the_grenadines.png new file mode 100644 index 00000000..15f36674 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_saint_vincent_and_the_grenadines.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_samoa.png b/app_odoo_dataclear/static/src/img/flags/flag_samoa.png new file mode 100644 index 00000000..209897e4 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_samoa.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_san_marino.png b/app_odoo_dataclear/static/src/img/flags/flag_san_marino.png new file mode 100644 index 00000000..a1222635 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_san_marino.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_sao_tome_and_principe.png b/app_odoo_dataclear/static/src/img/flags/flag_sao_tome_and_principe.png new file mode 100644 index 00000000..40534684 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_sao_tome_and_principe.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_saudi_arabia.png b/app_odoo_dataclear/static/src/img/flags/flag_saudi_arabia.png new file mode 100644 index 00000000..20061b91 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_saudi_arabia.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_scotland.png b/app_odoo_dataclear/static/src/img/flags/flag_scotland.png new file mode 100644 index 00000000..bb01bc94 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_scotland.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_senegal.png b/app_odoo_dataclear/static/src/img/flags/flag_senegal.png new file mode 100644 index 00000000..1047e9be Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_senegal.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_serbia.png b/app_odoo_dataclear/static/src/img/flags/flag_serbia.png new file mode 100644 index 00000000..255e428b Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_serbia.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_seychelles.png b/app_odoo_dataclear/static/src/img/flags/flag_seychelles.png new file mode 100644 index 00000000..e1a139fe Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_seychelles.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_sierra_leone.png b/app_odoo_dataclear/static/src/img/flags/flag_sierra_leone.png new file mode 100644 index 00000000..a223c5df Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_sierra_leone.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_singapore.png b/app_odoo_dataclear/static/src/img/flags/flag_singapore.png new file mode 100644 index 00000000..a4a4a812 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_singapore.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_slovakia.png b/app_odoo_dataclear/static/src/img/flags/flag_slovakia.png new file mode 100644 index 00000000..e7c39150 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_slovakia.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_slovenia.png b/app_odoo_dataclear/static/src/img/flags/flag_slovenia.png new file mode 100644 index 00000000..85385895 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_slovenia.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_solomon_islands.png b/app_odoo_dataclear/static/src/img/flags/flag_solomon_islands.png new file mode 100644 index 00000000..fcd10c18 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_solomon_islands.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_somalia.png b/app_odoo_dataclear/static/src/img/flags/flag_somalia.png new file mode 100644 index 00000000..2f856d2e Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_somalia.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_south_africa.png b/app_odoo_dataclear/static/src/img/flags/flag_south_africa.png new file mode 100644 index 00000000..617fe9f4 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_south_africa.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_south_georgia.png b/app_odoo_dataclear/static/src/img/flags/flag_south_georgia.png new file mode 100644 index 00000000..d4705488 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_south_georgia.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_south_korea.png b/app_odoo_dataclear/static/src/img/flags/flag_south_korea.png new file mode 100644 index 00000000..b0b21dfa Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_south_korea.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_spain.png b/app_odoo_dataclear/static/src/img/flags/flag_spain.png new file mode 100644 index 00000000..0c9580b0 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_spain.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_sri_lanka.png b/app_odoo_dataclear/static/src/img/flags/flag_sri_lanka.png new file mode 100644 index 00000000..3fbe5791 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_sri_lanka.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_sudan.png b/app_odoo_dataclear/static/src/img/flags/flag_sudan.png new file mode 100644 index 00000000..f607390b Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_sudan.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_suriname.png b/app_odoo_dataclear/static/src/img/flags/flag_suriname.png new file mode 100644 index 00000000..d12cae84 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_suriname.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_swaziland.png b/app_odoo_dataclear/static/src/img/flags/flag_swaziland.png new file mode 100644 index 00000000..27fdf138 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_swaziland.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_sweden.png b/app_odoo_dataclear/static/src/img/flags/flag_sweden.png new file mode 100644 index 00000000..870be17a Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_sweden.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_switzerland.png b/app_odoo_dataclear/static/src/img/flags/flag_switzerland.png new file mode 100644 index 00000000..e487a0e5 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_switzerland.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_syria.png b/app_odoo_dataclear/static/src/img/flags/flag_syria.png new file mode 100644 index 00000000..b7f684e0 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_syria.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_tajikistan.png b/app_odoo_dataclear/static/src/img/flags/flag_tajikistan.png new file mode 100644 index 00000000..4c66da33 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_tajikistan.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_tanzania.png b/app_odoo_dataclear/static/src/img/flags/flag_tanzania.png new file mode 100644 index 00000000..f2ee2ea2 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_tanzania.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_thailand.png b/app_odoo_dataclear/static/src/img/flags/flag_thailand.png new file mode 100644 index 00000000..445da6ab Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_thailand.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_togo.png b/app_odoo_dataclear/static/src/img/flags/flag_togo.png new file mode 100644 index 00000000..28a696ee Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_togo.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_tonga.png b/app_odoo_dataclear/static/src/img/flags/flag_tonga.png new file mode 100644 index 00000000..bb9e9afb Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_tonga.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_trinidad_and_tobago.png b/app_odoo_dataclear/static/src/img/flags/flag_trinidad_and_tobago.png new file mode 100644 index 00000000..25226659 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_trinidad_and_tobago.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_tunisia.png b/app_odoo_dataclear/static/src/img/flags/flag_tunisia.png new file mode 100644 index 00000000..13bb8782 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_tunisia.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_turkey.png b/app_odoo_dataclear/static/src/img/flags/flag_turkey.png new file mode 100644 index 00000000..4e27f6a2 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_turkey.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_turkmenistan.png b/app_odoo_dataclear/static/src/img/flags/flag_turkmenistan.png new file mode 100644 index 00000000..981a9308 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_turkmenistan.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_turks_and_caicos_islands.png b/app_odoo_dataclear/static/src/img/flags/flag_turks_and_caicos_islands.png new file mode 100644 index 00000000..8efd241c Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_turks_and_caicos_islands.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_tuvalu.png b/app_odoo_dataclear/static/src/img/flags/flag_tuvalu.png new file mode 100644 index 00000000..6c38b44a Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_tuvalu.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_uganda.png b/app_odoo_dataclear/static/src/img/flags/flag_uganda.png new file mode 100644 index 00000000..52ee97d8 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_uganda.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_ukraine.png b/app_odoo_dataclear/static/src/img/flags/flag_ukraine.png new file mode 100644 index 00000000..4eac918d Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_ukraine.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_united_arab_emirates.png b/app_odoo_dataclear/static/src/img/flags/flag_united_arab_emirates.png new file mode 100644 index 00000000..460a9d5c Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_united_arab_emirates.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_united_kingdom.png b/app_odoo_dataclear/static/src/img/flags/flag_united_kingdom.png new file mode 100644 index 00000000..18d5ff99 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_united_kingdom.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_uruguay.png b/app_odoo_dataclear/static/src/img/flags/flag_uruguay.png new file mode 100644 index 00000000..fa065560 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_uruguay.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_uzbekistan.png b/app_odoo_dataclear/static/src/img/flags/flag_uzbekistan.png new file mode 100644 index 00000000..8df3de42 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_uzbekistan.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_vanuatu.png b/app_odoo_dataclear/static/src/img/flags/flag_vanuatu.png new file mode 100644 index 00000000..697f6212 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_vanuatu.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_vatican_city.png b/app_odoo_dataclear/static/src/img/flags/flag_vatican_city.png new file mode 100644 index 00000000..ffb303b5 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_vatican_city.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_venezuela.png b/app_odoo_dataclear/static/src/img/flags/flag_venezuela.png new file mode 100644 index 00000000..facca467 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_venezuela.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_vietnam.png b/app_odoo_dataclear/static/src/img/flags/flag_vietnam.png new file mode 100644 index 00000000..4e89f65d Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_vietnam.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_virgin_islands.png b/app_odoo_dataclear/static/src/img/flags/flag_virgin_islands.png new file mode 100644 index 00000000..ce23e137 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_virgin_islands.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_wales.png b/app_odoo_dataclear/static/src/img/flags/flag_wales.png new file mode 100644 index 00000000..4e30af59 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_wales.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_wallis_and_futuna.png b/app_odoo_dataclear/static/src/img/flags/flag_wallis_and_futuna.png new file mode 100644 index 00000000..d97fc3f9 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_wallis_and_futuna.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_white.png b/app_odoo_dataclear/static/src/img/flags/flag_white.png new file mode 100644 index 00000000..0efc9ee7 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_white.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_yemen.png b/app_odoo_dataclear/static/src/img/flags/flag_yemen.png new file mode 100644 index 00000000..e9dea302 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_yemen.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_zambia.png b/app_odoo_dataclear/static/src/img/flags/flag_zambia.png new file mode 100644 index 00000000..96d06e4d Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_zambia.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/flag_zimbabwe.png b/app_odoo_dataclear/static/src/img/flags/flag_zimbabwe.png new file mode 100644 index 00000000..7501780d Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/flag_zimbabwe.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/fr_FR.png b/app_odoo_dataclear/static/src/img/flags/fr_FR.png new file mode 100644 index 00000000..ae26d3b9 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/fr_FR.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/ru_RU.png b/app_odoo_dataclear/static/src/img/flags/ru_RU.png new file mode 100644 index 00000000..c251d628 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/ru_RU.png differ diff --git a/app_odoo_dataclear/static/src/img/flags/zh_CN.png b/app_odoo_dataclear/static/src/img/flags/zh_CN.png new file mode 100644 index 00000000..d969efa0 Binary files /dev/null and b/app_odoo_dataclear/static/src/img/flags/zh_CN.png differ diff --git a/app_odoo_dataclear/static/src/js/app_window_title.js b/app_odoo_dataclear/static/src/js/app_window_title.js new file mode 100644 index 00000000..b7c368af --- /dev/null +++ b/app_odoo_dataclear/static/src/js/app_window_title.js @@ -0,0 +1,12 @@ +odoo.define('app_system_name', function (require) { +"use strict"; + +var WebClient = require('web.WebClient'); +WebClient.include({ + init: function() { + this._super.apply(this, arguments); + this.set('title_part', {"zopenerp": document.title}); + } +}); + +}); \ No newline at end of file diff --git a/app_odoo_dataclear/static/src/js/customize_user_menu.js b/app_odoo_dataclear/static/src/js/customize_user_menu.js new file mode 100644 index 00000000..8891bf7e --- /dev/null +++ b/app_odoo_dataclear/static/src/js/customize_user_menu.js @@ -0,0 +1,117 @@ +odoo.define('app_odoo_customize.customize_user_menu', function (require) { + "use strict"; + var Model = require('web.Model'); + var session = require('web.session'); + + var UserMenu = require('web.UserMenu'); + var documentation_url; + 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'); + }, + on_menu_debugassets: function () { + window.location = $.param.querystring(window.location.href, 'debug=assets'); + }, + on_menu_quitdebug: function () { + window.location.search = "?"; + }, + on_menu_documentation: function () { + window.open(documentation_url, '_blank'); + }, + on_menu_documentation_dev: function () { + window.open(documentation_dev_url, '_blank'); + }, + on_menu_support: function () { + window.open(support_url, '_blank'); + }, + on_menu_account: function () { + window.open(account_url, '_blank'); + }, + }); + + $(document).ready(function () { + var self = this; + documentation_url = 'http://www.sunpop.cn/documentation/user/10.0/zh_CN/index.html'; + documentation_dev_url = 'http://www.sunpop.cn/documentation/10.0/index.html'; + support_url = 'http://www.sunpop.cn/trial'; + account_title = 'My Online Account'; + account_url = 'http://www.sunpop.cn/my-account'; + setTimeout(function () { + new Model('ir.config_parameter').call('search_read', [[['key', '=', 'app_show_debug']], ['value']]).then(function (show) { + if (show.length >= 1 && (show[0]['value'] == "False")) { + $('[data-menu="debug"]').parent().hide(); + $('[data-menu="debugassets"]').parent().hide(); + $('[data-menu="quitdebug"]').parent().hide(); + } + }); + new Model('ir.config_parameter').call('search_read', [[['key', '=', 'app_show_documentation']], ['value']]).then(function (show) { + if (show.length >= 1 && (show[0]['value'] == "False")) + $('[data-menu="documentation"]').parent().hide(); + else { + new Model('ir.config_parameter').call('search_read', [[['key', '=', 'app_documentation_url']], ['value']]).then(function (res) { + if (res.length >= 1) { + _.each(res, function (item) { + documentation_url = item['value']; + }); + } + }); + } + }); + new Model('ir.config_parameter').call('search_read', [[['key', '=', 'app_show_documentation_dev']], ['value']]).then(function (show) { + if (show.length >= 1 && (show[0]['value'] == "False")) + $('[data-menu="documentation_dev"]').parent().hide(); + else { + new Model('ir.config_parameter').call('search_read', [[['key', '=', 'app_documentation_dev_url']], ['value']]).then(function (res) { + if (res.length >= 1) { + _.each(res, function (item) { + documentation_dev_url = item['value']; + }); + } + }); + } + }); + new Model('ir.config_parameter').call('search_read', [[['key', '=', 'app_show_support']], ['value']]).then(function (show) { + if (show.length >= 1 && (show[0]['value'] == "False")) + $('[data-menu="support"]').parent().hide(); + else { + new Model('ir.config_parameter').call('search_read', [[['key', '=', 'app_support_url']], ['value']]).then(function (res) { + if (res.length >= 1) { + _.each(res, function (item) { + support_url = item['value']; + }); + } + }); + } + }); + new Model('ir.config_parameter').call('search_read', [[['key', '=', 'app_show_account']], ['value']]).then(function (show) { + if (show.length >= 1 && (show[0]['value'] == "False")) + $('[data-menu="account"]').parent().hide(); + else { + new Model('ir.config_parameter').call('search_read', [[['key', '=', 'app_account_title']], ['value']]).then(function (res) { + if (res.length >= 1) { + _.each(res, function (item) { + account_title = item['value']; + }); + } + $('[data-menu="account"]').html(account_title); + }); + } + }); + new Model('ir.config_parameter').call('search_read', [[['key', '=', 'app_account_url']], ['value']]).then(function (res) { + if (res.length >= 1) { + _.each(res, function (item) { + account_url = item['value']; + }); + } + }); + new Model('ir.config_parameter').call('search_read', [[['key', '=', 'app_show_poweredby']], ['value']]).then(function (show) { + if (show.length >= 1 && (show[0]['value'] == "False")) + $('.o_sub_menu_footer').hide(); + }); + }, 2500); + }); +}) diff --git a/app_odoo_dataclear/static/src/js/switch_language.js b/app_odoo_dataclear/static/src/js/switch_language.js new file mode 100644 index 00000000..2910319f --- /dev/null +++ b/app_odoo_dataclear/static/src/js/switch_language.js @@ -0,0 +1,49 @@ +odoo.define('app_odoo_customize.switch_language', function (require) { + "use strict"; + + var Model = require('web.Model'); + var session = require('web.session'); + var UserMenu = require('web.UserMenu'); + + UserMenu.include({ + on_menu_lang: function (ev) { + var self = this; + var lang = ($(ev).data("lang-id")); + new Model('res.users').call('write', [[session.uid], {'lang': lang}]).then(function () { + self.do_action({ + type: 'ir.actions.client', + res_model: 'res.users', + tag: 'reload_context', + target: 'current' + }); + }); + return false; + }, + }); + // + $(document).ready(function () { + var self = this; + var lang_list = ''; + setTimeout(function () { + new Model('ir.config_parameter').call('search_read', [[['key', '=', 'app_show_lang']], ['value']]).then(function (show) { + if (show.length >= 1 && (show[0]['value'] == "False")) + $('switch-lang').hide(); + else { + new Model('res.lang').call('search_read', [[], ['name', 'code']]).then(function (res) { + _.each(res, function (lang) { + var a = ''; + if (lang['code'] === session.user_context.lang) { + a = ''; + } else { + a = ''; + } + lang_list += '
  • ' + lang['name'] + a + '
  • '; + }); + lang_list += '
  • '; + $('switch-lang').replaceWith(lang_list); + }); + } + }); + }, 2500); + }); +}); diff --git a/app_odoo_dataclear/static/src/xml/customize_user_menu.xml b/app_odoo_dataclear/static/src/xml/customize_user_menu.xml new file mode 100644 index 00000000..5107c3c3 --- /dev/null +++ b/app_odoo_dataclear/static/src/xml/customize_user_menu.xml @@ -0,0 +1,21 @@ + + + + + +
  • + Activate the developer mode +
  • +
  • + Activate the developer mode (with assets) +
  • +
  • + Deactivate the developer mode +
  • +
  • + Developer Manual +
  • +
  • + + + diff --git a/app_odoo_dataclear/views/app_odoo_customize_view.xml b/app_odoo_dataclear/views/app_odoo_customize_view.xml new file mode 100644 index 00000000..4ae6b16c --- /dev/null +++ b/app_odoo_dataclear/views/app_odoo_customize_view.xml @@ -0,0 +1,13 @@ + + + +