diff --git a/app_odoo_customize/i18n/zh_CN.po b/app_odoo_customize/i18n/zh_CN.po index 23ba30db..ed93b1f7 100644 --- a/app_odoo_customize/i18n/zh_CN.po +++ b/app_odoo_customize/i18n/zh_CN.po @@ -4,10 +4,10 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 16.0+e-20230721\n" +"Project-Id-Version: Odoo Server 16.0+e-20231112\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-08-24 11:23+0000\n" -"PO-Revision-Date: 2023-08-24 11:23+0000\n" +"POT-Creation-Date: 2023-12-12 14:57+0000\n" +"PO-Revision-Date: 2023-12-12 14:57+0000\n" "Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -101,10 +101,18 @@ msgstr "激活开发者模式 (assets)" #. module: app_odoo_customize #. odoo-javascript #: code:addons/app_odoo_customize/static/src/js/user_menu.js:0 +#: code:addons/app_odoo_customize/static/src/xml/customize_user_menu.xml:0 #, python-format msgid "Activate the developer mode" msgstr "激活开发者模式" +#. module: app_odoo_customize +#. odoo-javascript +#: code:addons/app_odoo_customize/static/src/xml/customize_user_menu.xml:0 +#, python-format +msgid "Activate the developer mode (with assets)" +msgstr "激活资源调试" + #. module: app_odoo_customize #: model:ir.model.fields,field_description:app_odoo_customize.field_ir_module_module__addons_path #: model_terms:ir.ui.view,arch_db:app_odoo_customize.app_view_module_filter @@ -167,8 +175,12 @@ msgstr "配置设置" #. module: app_odoo_customize #: model_terms:ir.ui.view,arch_db:app_odoo_customize.replace_copyright_name -msgid "Copyright ©" -msgstr "版权所有 ©" +msgid "" +"Copyright ©\n" +"\t 2009-2024 " +msgstr +"版权所有 ©\n" +"\t 2009-2024 " #. module: app_odoo_customize #: model:ir.model.fields,field_description:app_odoo_customize.field_ir_module_addons_path__create_uid @@ -190,6 +202,13 @@ msgstr "自定义模块链接(如企业版)" msgid "Data Cleaning (Be careful to do that!)" msgstr "数据清理(请谨慎操作!)" +#. module: app_odoo_customize +#. odoo-javascript +#: code:addons/app_odoo_customize/static/src/xml/customize_user_menu.xml:0 +#, python-format +msgid "Deactivate the developer mode" +msgstr "退出开发者模式" + #. module: app_odoo_customize #: model:ir.model.fields,field_description:app_odoo_customize.field_res_config_settings__app_debug_only_admin msgid "Debug for Admin" @@ -287,6 +306,13 @@ msgstr "删除所有工作流" msgid "Developer Documentation Url" msgstr "开发者手册链接" +#. module: app_odoo_customize +#. odoo-javascript +#: code:addons/app_odoo_customize/static/src/xml/customize_user_menu.xml:0 +#, python-format +msgid "Developer Manual" +msgstr "开发手册" + #. module: app_odoo_customize #: model:ir.model.fields,field_description:app_odoo_customize.field_ir_module_addons_path__display_name msgid "Display Name" @@ -349,16 +375,26 @@ msgstr "HTTP 路由" msgid "Help Document Anywhere" msgstr "即时查看帮助" +#. module: app_odoo_customize +#: model:ir.model.fields,field_description:app_odoo_customize.field_res_config_settings__app_doc_root_url +msgid "Help of topic domain" +msgstr "帮助主域名" + #. module: app_odoo_customize #: model:ir.model.fields,field_description:app_odoo_customize.field_ir_module_addons_path__id msgid "ID" -msgstr "ID" +msgstr "" #. module: app_odoo_customize #: model:ir.model,name:app_odoo_customize.model_base_language_install msgid "Install Language" msgstr "安装语言" +#. module: app_odoo_customize +#: model_terms:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings +msgid "Internal User UI" +msgstr "后台用户界面" + #. module: app_odoo_customize #: model:ir.model.fields,field_description:app_odoo_customize.field_ir_module_addons_path____last_update msgid "Last Modified on" @@ -438,11 +474,6 @@ msgstr "导航栏移动" msgid "Navbar PC" msgstr "导航栏电脑" -#. module: app_odoo_customize -#: model_terms:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings -msgid "Navigator" -msgstr "导航栏" - #. module: app_odoo_customize #: model_terms:ir.ui.view,arch_db:app_odoo_customize.app_view_model_data_search msgid "No Updatable" @@ -453,6 +484,12 @@ msgstr "无需更新" msgid "OEM & Boost" msgstr "定制与增强" +#. 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 "OEM and Boost" +msgstr "odoo定制OEM及增强" + #. module: app_odoo_customize #. odoo-javascript #: code:addons/app_odoo_customize/static/src/xml/res_config_edition.xml:0 @@ -489,6 +526,11 @@ msgstr "技术支持 odooai.cn" msgid "Preferences" msgstr "偏好" +#. module: app_odoo_customize +#: model_terms:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings +msgid "Public User UI" +msgstr "网站用户界面" + #. module: app_odoo_customize #. odoo-javascript #: code:addons/app_odoo_customize/static/src/js/user_menu.js:0 @@ -517,12 +559,6 @@ msgstr "计划任务" msgid "Security and Boost" msgstr "安全与提速" -#. 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 "OEM and Boost" -msgstr "odoo定制OEM及增强" - #. module: app_odoo_customize #: model:ir.model.fields,help:app_odoo_customize.field_res_config_settings__app_system_name msgid "Setup System Name,which replace Odoo" diff --git a/app_odoo_customize/views/app_theme_config_settings_views.xml b/app_odoo_customize/views/app_theme_config_settings_views.xml index 59027f67..7fe49aef 100644 --- a/app_odoo_customize/views/app_theme_config_settings_views.xml +++ b/app_odoo_customize/views/app_theme_config_settings_views.xml @@ -1,230 +1,5 @@ - - res.config.settings.view.form.inherit.app_odoo_customize - res.config.settings - 20 - - - - - - - - - - OEM and Boost - ir.actions.act_window - res.config.settings - form - inline - {'module' : 'app_odoo_customize', 'bin_size': False} - diff --git a/app_odoo_customize/views/res_config_settings_views.xml b/app_odoo_customize/views/res_config_settings_views.xml index 586d16b4..7791818d 100644 --- a/app_odoo_customize/views/res_config_settings_views.xml +++ b/app_odoo_customize/views/res_config_settings_views.xml @@ -1,6 +1,227 @@ + + res.config.settings.view.form.inherit.app_odoo_customize + res.config.settings + 20 + + + +
+
+ +
+

Security and Boost

+
+ + + + + + + + +
+

Extra Feature

+
+ + +
+ +

UI Config

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

Data Cleaning (Be careful to do that!)

+
+
+ Sale +
+
+ POS +
+
+ Purchase +
+
+ Expense +
+
+ MRP +
+
+ Inventory +
+
+ + Accounting + +
+
+ Project +
+
+ Quality +
+
+ Website And Blog +
+
+ Base Models +
+
+ All Business +
+
+
+ + + + app.res.config.settings.view.form res.config.settings @@ -11,5 +232,14 @@ + + + OEM and Boost + ir.actions.act_window + res.config.settings + form + inline + {'module' : 'app_odoo_customize', 'bin_size': False} + diff --git a/app_web_fullwidth/__manifest__.py b/app_web_fullwidth/__manifest__.py index 5127d702..709c1b7e 100644 --- a/app_web_fullwidth/__manifest__.py +++ b/app_web_fullwidth/__manifest__.py @@ -22,7 +22,7 @@ { 'name': 'Web Form Fullwidth, Full screen full width. Chatter Position ', - 'version': '16.23.12.08', + 'version': '16.23.12.12', 'category': 'web', 'author': 'odooai.cn', 'website': 'https://www.odooai.cn', @@ -40,12 +40,14 @@ 'description': """ UI Enhance for Odoo. Form view fullwidth, full screen. Easy config the chatter position to bottom or side or Responsive form every user. + Easy set all company user UI for chatter position """, 'depends': [ 'app_odoo_customize' ], 'data': [ 'views/res_users_views.xml', + 'views/res_config_settings_views.xml', 'views/webclient_templates.xml', ], 'assets': { diff --git a/app_web_fullwidth/i18n/zh_CN.po b/app_web_fullwidth/i18n/zh_CN.po index 32a8857a..184b1b27 100644 --- a/app_web_fullwidth/i18n/zh_CN.po +++ b/app_web_fullwidth/i18n/zh_CN.po @@ -1,15 +1,59 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: +# * app_web_fullwidth # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 16.0+e-20230721\n" +"Project-Id-Version: Odoo Server 16.0+e-20231112\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-09-06 05:40+0000\n" -"PO-Revision-Date: 2023-09-06 05:40+0000\n" +"POT-Creation-Date: 2023-12-12 15:25+0000\n" +"PO-Revision-Date: 2023-12-12 15:25+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_web_fullwidth +#: model:ir.model.fields.selection,name:app_web_fullwidth.selection__res_config_settings__default_chatter_position__bottom +#: model:ir.model.fields.selection,name:app_web_fullwidth.selection__res_users__chatter_position__bottom +msgid "Bottom" +msgstr "底部" + +#. module: app_web_fullwidth +#: model:ir.model.fields,field_description:app_web_fullwidth.field_res_users__chatter_position +msgid "Chatter Position" +msgstr "操作日志位置" + +#. module: app_web_fullwidth +#: model:ir.model,name:app_web_fullwidth.model_res_config_settings +msgid "Config Settings" +msgstr "设置" + +#. module: app_web_fullwidth +#: model:ir.model.fields,field_description:app_web_fullwidth.field_res_config_settings__default_chatter_position +msgid "Default Chatter Position" +msgstr "默认日志位置" + +#. module: app_web_fullwidth +#: model:ir.model.fields.selection,name:app_web_fullwidth.selection__res_config_settings__default_chatter_position__auto +#: model:ir.model.fields.selection,name:app_web_fullwidth.selection__res_users__chatter_position__auto +msgid "Responsive" +msgstr "自适应(系统)" + +#. module: app_web_fullwidth +#: model_terms:ir.ui.view,arch_db:app_web_fullwidth.view_app_theme_config_settings +msgid "Set All User" +msgstr "应用至所有用户" + +#. module: app_web_fullwidth +#: model:ir.model.fields.selection,name:app_web_fullwidth.selection__res_config_settings__default_chatter_position__sided +#: model:ir.model.fields.selection,name:app_web_fullwidth.selection__res_users__chatter_position__sided +msgid "Sided" +msgstr "右边" + +#. module: app_web_fullwidth +#: model:ir.model,name:app_web_fullwidth.model_res_users +msgid "User" +msgstr "用户" diff --git a/app_web_fullwidth/models/res_config_settings.py b/app_web_fullwidth/models/res_config_settings.py index c7e9afb9..ffe189ef 100644 --- a/app_web_fullwidth/models/res_config_settings.py +++ b/app_web_fullwidth/models/res_config_settings.py @@ -11,8 +11,19 @@ _logger = logging.getLogger(__name__) class ResConfigSettings(models.TransientModel): _inherit = 'res.config.settings' + # todo: 可能要设置为不同公司不同 default_chatter_position = fields.Selection([ ("auto", "Responsive"), ("bottom", "Bottom"), ("sided", "Sided"), ], string='Default Chatter Position', default="bottom", default_model="res.users") + + def user_set_chatter_pos(self): + # todo: 处理设置 + company_id = self.env.company.id + users = self.env['res.users'].with_context(active_test=False).search([('company_id', '=', company_id)]) + if users: + users.write({ + 'chatter_position': self.default_chatter_position + }) + pass diff --git a/app_web_fullwidth/static/description/demo5.jpg b/app_web_fullwidth/static/description/demo5.jpg new file mode 100644 index 00000000..997900ef Binary files /dev/null and b/app_web_fullwidth/static/description/demo5.jpg differ diff --git a/app_web_fullwidth/static/description/index.html b/app_web_fullwidth/static/description/index.html index 8b847d13..56636864 100644 --- a/app_web_fullwidth/static/description/index.html +++ b/app_web_fullwidth/static/description/index.html @@ -21,6 +21,10 @@ Ready for enterprise and communicate version. +
  • + + Easy set all company user UI for chatter position +
  • @@ -74,6 +78,11 @@
    +

    Easy set all company user UI for chatter position

    +
    + +
    +
    diff --git a/app_web_fullwidth/views/res_config_settings_views.xml b/app_web_fullwidth/views/res_config_settings_views.xml new file mode 100644 index 00000000..d822ceaf --- /dev/null +++ b/app_web_fullwidth/views/res_config_settings_views.xml @@ -0,0 +1,18 @@ + + + + res.config.settings.view.form.inherit.app_odoo_customize + res.config.settings + 20 + + + + + + +