udpate readme
@@ -1,69 +1,136 @@
|
||||
Odoo Addon for 13,12,11,10
|
||||
# Odoo Addon for 17,16,15,14,13,12,11,10,Odoo的全版本开源免费增强集合
|
||||
|
||||
本 Repo 在全球 Github 的最新主版本
|
||||
[https://github.com/guohuadeng/app-odoo](https://github.com/guohuadeng/app-odoo)
|
||||
|
||||
本 Repo 在中国 Gitee 的每日同步镜像,便于中国用户访问
|
||||
[https://gitee.com/guohuadeng/app-odoo](https://gitee.com/guohuadeng/app-odoo)
|
||||
|
||||
快速下载请至 [Odoo官方应用市场](https://apps.odoo.com/apps/modules/16.0/app_odoo_customize)
|
||||
下载后留下好评和邮箱,我们会定期同步,并自动为该邮箱账户派送 应用商店红包
|
||||
|
||||
## Support by [欧度智能 odooAi.cn](https://www.odooai.cn)
|
||||
广州欧度智能科技有限公司
|
||||
Odoo中国官方伙伴,原广州尚鹏
|
||||
|
||||
1. Odoo项目100%客户成功交付
|
||||
2. Odoo官网下载第一,服务上千家企业
|
||||
3. Odoo官网销量第一的中国公司
|
||||
4. 钉钉、企业微信认证服务商
|
||||
5. 微软中国ChatGPT服务商,Ai服务中心
|
||||
6. 十年专注Odoo开源ERP开发实施培训
|
||||
7. Odoo中文[应用商店,海量免费及商业模块主题](https://www.odooapp.cn)
|
||||
|
||||
## Todo
|
||||
ztree, superbar
|
||||
1. Odoo微信相关将已开发的、第三方的免费上架
|
||||
2. Odoo企业微信相关将已开发的、第三方的免费上架
|
||||
3. Odoo钉钉相关将已开发的、第三方的免费上架
|
||||
4. 原 ztree, superbar 的升级,升级 zchar
|
||||
5. Odoo社区版主题上架
|
||||
6. Odoo 17 升级部份已完成,等待发布
|
||||
|
||||
# Odoo Apps 清单,已上架 [Odoo中文应用商店](https://www.odooapp.cn)
|
||||
|
||||
## app_account_invoice_product_multi_add
|
||||
|
||||
Account Invoice Product Multi Batch Add
|
||||
|
||||
财务单据中批量增加明细
|
||||
|
||||
## app_account_superbar
|
||||
|
||||
Browse journal by account chart... Use for parent children tree list kanban navigator.
|
||||
|
||||
ztree widget.Hierarchy Tree.Parent Children relation tree..
|
||||
|
||||
财务模块多层级树状导航应用
|
||||
|
||||
## app_account_superbar_chinese
|
||||
|
||||
Browse journal by account chart... Use for parent children tree list kanban navigator.
|
||||
|
||||
ztree widget.Hierarchy Tree.Parent Children relation tree.
|
||||
|
||||
财务模块多层级树状导航应用(中国专用)
|
||||
|
||||
## app_account_ztree
|
||||
|
||||
Use for parent children tree list select navigator. Multi Level Account Chart tree. ztree widget.
|
||||
|
||||
财务模块树状选择器
|
||||
|
||||
## app_base_chinese
|
||||
|
||||
Chinese enhance. Out of the box use in china.
|
||||
|
||||
Set all chinese default value.
|
||||
|
||||
Default country, timezone, currency, partner...
|
||||
|
||||
中国化增强-基础
|
||||
|
||||
1. 中文默认值,如国家、时区、货币等。处理模块 base, product.
|
||||
|
||||
2. 客户加简称,地址显示中文化,客户编码显示优先
|
||||
|
||||
3. 客户地址显示增加手机号与电话号码
|
||||
|
||||
4. 货币处理,增加排序显示
|
||||
|
||||
5. 修正品类的列表及m2o字段中不显示中文目录名的Bug
|
||||
|
||||
## app_contacts_superbar
|
||||
|
||||
Browse contacts by company. Use for parent children tree list kanban navigator.
|
||||
|
||||
ztree widget.Hierarchy Tree.Parent Children relation tree..
|
||||
|
||||
联系人模块多层级树状导航应用
|
||||
|
||||
## app_hr_superbar
|
||||
|
||||
Browse employees by departments tree. hr organization chart.
|
||||
|
||||
Easy to navigator and browse any data. Support list, kanban, pivot, graph view.
|
||||
|
||||
ztree widget. hr Hierarchy organization chart Tree.
|
||||
|
||||
人力资源模块多层级树状导航应用。按部门查看员工,超级方便的查询。
|
||||
|
||||
## app_hr_ztree
|
||||
|
||||
hr department employee tree.
|
||||
|
||||
人力资源模块树状选择器
|
||||
|
||||
## app_module_superbar
|
||||
|
||||
Browse Apps by category tree. Browse Module by category. Use for parent children tree list kanban navigator.
|
||||
|
||||
Easy to navigator and browse any data. Support list, kanban, pivot, graph view.
|
||||
|
||||
odoo应用多层级树状导航应用
|
||||
|
||||
## app_mrp_bom_product_multi_add
|
||||
|
||||
App MRP Bom Product Multi Batch Add
|
||||
|
||||
制造Bom批量增加产品.
|
||||
|
||||
## app_odoo_customize
|
||||
### Quick customize, debranding,reset data, debug. Language Switcher.
|
||||
Easy Delete data.reset account chart.
|
||||
odoo debrand, odoo debranding, customize my odoo.
|
||||
============
|
||||
White label odoo.
|
||||
Support Odoo 13,12, 11, 10, 9.
|
||||
|
||||
### Quick customize, debranding,reset data, debug. Language Switcher.
|
||||
|
||||
Ai as employee.1 click Tweak odoo. 48 Functions odoo enhancement. for Customize,UI,Boost Security,Development.
|
||||
Easy reset data, clear data, reset account chart, reset Demo data.
|
||||
For quick debug. Set brand,Language Switcher all in one.
|
||||
|
||||
For Odoo17. Please get from the follow github. Done for 85%.
|
||||
https://github.com/guohuadeng/app-odoo/tree/17.0
|
||||
White label odoo. UI and Development Enhance.
|
||||
Support odoo 16,15,14,13,12,11,10,9.
|
||||
You can config odoo, make it look like your own platform.
|
||||
============
|
||||
1. Deletes Odoo label in footer
|
||||
2. Replaces "Odoo" in Windows title
|
||||
3. Customize Documentation, Support, About links and title in usermenu
|
||||
@@ -80,17 +147,45 @@ App MRP Bom Product Multi Batch Add
|
||||
14. Quick delete test data in Apps: Sales/POS/Purchase/MRP/Inventory/Accounting/Project/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)
|
||||
17. Stop Odoo Auto Subscribe(Moved to app_odoo_boost)
|
||||
18. Show/Hide Author and Website in Apps Dashboard
|
||||
19. One Click to clear all data (Sometime pls click twice)
|
||||
20. Show quick upgrade in app dashboard, click to show module info not go to odoo.com
|
||||
21. Can clear and reset account chart. Be cautious
|
||||
22. Update online manual and developer document to odoo12
|
||||
23. Add reset or clear website blog data
|
||||
### 在符合odoo开源协议的前提下,去除odoo版权信息,自定义你的odoo
|
||||
可完全自行设置下列 odoo 选项,让 odoo 看上去像是你的软件产品
|
||||
支持Odoo 13,12, 11, 10, 9 版本,社区版企业版通用
|
||||
|
||||
24. Customize Odoo Native Module(eg. Enterprise) Url
|
||||
25. Add remove expense data
|
||||
26. Add multi uninstall modules
|
||||
27. Add odoo boost modules link.
|
||||
28. Easy Menu manager.
|
||||
29. Apps version compare. Add Install version in App list. Add Local updatable filter in app list.
|
||||
30. 1 key export app translate file like .po file.
|
||||
31. Show or hide odoo Referral in the top menu.
|
||||
32. Fix odoo bug of complete name bug of product category and stock location..
|
||||
33. Add Demo Ribbon Setting.
|
||||
34. Add Remove all quality data.
|
||||
35. Fixed for odoo 14.
|
||||
36. Add refresh translate for multi module.
|
||||
37. Easy noupdate manage for External Identifiers(xml_id)
|
||||
38. Add Draggable and sizeable Dialog enable.
|
||||
39. Only erp manager can see debug menu..
|
||||
40. Fix support for enterprise version.
|
||||
41. Fix odoo bug, when click Preferences menu not hide in mobile.
|
||||
42. Mobile Enhance. Add menu navbar setup for top or bottom. navigator footer support.
|
||||
43. Check to only Debug / Debug Assets for Odoo Admin. Deny debug from url for other user.
|
||||
44. Check to stop subscribe and follow. This to make odoo speed up.
|
||||
45. Add addons path info to module.
|
||||
46. Add Help documentation anywhere. easy get help for any odoo operation or action.
|
||||
47. Add ai robot app integration. Use Ai as your employee.
|
||||
|
||||
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.
|
||||
## 在符合odoo开源协议的前提下,自定义你的odoo系统
|
||||
可完全自行设置下列选项,将 odoo 整合进自有软件产品
|
||||
支持odoo 17,16,15,14,13,12, 11, 10, 9 版本,社区版企业版通用
|
||||
============
|
||||
1. 删除菜单导航页脚的 Odoo 标签
|
||||
2. 将弹出窗口中 "Odoo" 设置为自定义名称
|
||||
3. 自定义用户菜单中的 Documentation, Support, About 的链接
|
||||
@@ -114,90 +209,162 @@ App MRP Bom Product Multi Batch Add
|
||||
21. 清除并重置会计科目表
|
||||
22. 全新升级将odoo12用户及开发手册导航至国内网站,或者自己定义的网站
|
||||
23. 增加清除网站数据功能
|
||||
|
||||
使用方法:将解压后的 app_odoo_customize 放到 odoo的 addons目录下,激活开发者模式,应用-->更新应用列表,
|
||||
找到 "App odoo Customize"模块,安装即可。
|
||||
24. 自定义 odoo 原生模块跳转的url(比如企业版模块)
|
||||
25. 增加删除费用报销数据功能
|
||||
26. 增加批量卸载模块功能
|
||||
27. 增加odoo加速功能
|
||||
28. 快速管理顶级菜单
|
||||
29. App版本比较,快速查看可本地更新的模块
|
||||
30. 一键导出翻译文件 po
|
||||
31. 显示或去除 odoo 推荐
|
||||
32. 增加修复品类及区位名的操作
|
||||
33. 增加 Demo 的显示设置
|
||||
34. 增加清除质检数据
|
||||
35. 优化至odoo14适用
|
||||
36. 可为多个模块强制更新翻译
|
||||
37. noupdate字段的快速管理,主要针对 xml_id
|
||||
38. 对话框可拖拽,可缩放,自动大屏优化
|
||||
39. 只有系统管理员可以操作快速debug
|
||||
40. 增强对企业版的支持
|
||||
41. 修正odoo原生移动端菜单bug,点击个人设置时,原菜单不隐藏等
|
||||
42. 可设置导航栏在上方还是下方,分开桌面与移动端.
|
||||
43. 可设置只允许管理员进入开发者模式,不可在url中直接debut=1来调试
|
||||
44. 可配置停用自动用户订阅功能,这会提速odoo,减少资源消耗
|
||||
45. 为应用模块增加模块路径信息
|
||||
46. 增加快速帮助文档,可以在任意操作中获取相关的 odoo 帮助.
|
||||
|
||||
## app_product_superbar
|
||||
|
||||
Browse Product by category tree. Use for parent children tree list kanban navigator.
|
||||
|
||||
Easy to navigator and browse any data. Support list, kanban, pivot, graph view.
|
||||
|
||||
ztree widget.Hierarchy Tree.Parent Children relation tree..
|
||||
|
||||
产品管理多层级树状导航应用
|
||||
|
||||
## app_product_variant_color
|
||||
|
||||
Use for quick select color. can be use in product attribute and other color variant. color widget. color picker.
|
||||
|
||||
单品Sku颜色选择器
|
||||
|
||||
## app_product_weight_sale
|
||||
|
||||
Add Product sku weight in Sale Order, product weight, sale weight, sale order weight, total weight, kg kg(s) lb lb(s) support
|
||||
|
||||
销售订单重量管理
|
||||
|
||||
## app_product_ztree
|
||||
|
||||
Use for parent children tree list select navigator. Product category tree.
|
||||
|
||||
ztree widget.
|
||||
|
||||
产品相关多层级树状选择器,如类别
|
||||
|
||||
## app_purchase_product_multi_add
|
||||
|
||||
Purchase Order Product Multi Add.
|
||||
|
||||
1. One Click to add multi product to Purchase Order.
|
||||
|
||||
2. All the product can filter and group.
|
||||
|
||||
采购订单批量增加产品
|
||||
|
||||
1. 可以一键快速将多个产品加到采购订单中
|
||||
|
||||
2. 可对产品进行过滤、分组,然后批量加入
|
||||
|
||||
## app_purchase_superbar
|
||||
|
||||
Browse purchase order by partner. Use for parent children tree list kanban navigator. ztree widget.
|
||||
|
||||
采购多层级树状导航应用
|
||||
|
||||
## app_sale_product_multi_add
|
||||
|
||||
Sale Order Product Multi Add.
|
||||
|
||||
1. One Click to add multi product to Sale Order.
|
||||
|
||||
2. All the product can filter and group.
|
||||
|
||||
销售订单批量增加产品.
|
||||
|
||||
1. 可以一键快速将多个产品加到销售订单中
|
||||
|
||||
2. 可对产品进行过滤、分组,然后批量加入
|
||||
|
||||
## app_sale_superbar
|
||||
|
||||
Browse sale order by partner and sale channel. Use for parent children tree list kanban navigator.
|
||||
|
||||
ztree widget.Hierarchy Tree.Parent Children relation tree..
|
||||
|
||||
销售多层级树状导航应用
|
||||
|
||||
## app_stock_picking_product_multi_add
|
||||
|
||||
Stock Picking Order Product Multi Add.
|
||||
|
||||
1. One Click to add multi product to Stock Picking Order.
|
||||
|
||||
2. All the product can filter and group.
|
||||
|
||||
库存调拨单批量增加产品.
|
||||
|
||||
1. 可以一键快速将多个产品加到库存调拨单中
|
||||
|
||||
2. 可对产品进行过滤、分组,然后批量加入
|
||||
|
||||
## app_stock_picking_type_group
|
||||
|
||||
Stock picking group in list or kanban view.
|
||||
|
||||
库存调拨分组显示
|
||||
|
||||
## app_stock_putaway
|
||||
|
||||
stock putaway show.
|
||||
|
||||
单独的库存上架策略界面及菜单
|
||||
|
||||
## app_stock_superbar
|
||||
|
||||
Use for parent children tree list select navigator. stock location tree, filter by parent location. ztree widget.
|
||||
|
||||
库存多层级树状导航应用
|
||||
|
||||
## app_stock_ztree
|
||||
|
||||
Use for parent children tree list select navigator. stock location tree.ztree widget.
|
||||
|
||||
库存多层级树状选择器
|
||||
|
||||
## app_web_enterprise
|
||||
|
||||
odoo enterprise version UI enhance.
|
||||
|
||||
1. Add dropdown arrow to parent menu.
|
||||
|
||||
2. Replace the odoo logo to your company logo in main menu.
|
||||
|
||||
3. Alway show search in main menu.
|
||||
|
||||
欧度智能,odooai.cn 的odoo模块。企业版界面增强。
|
||||
|
||||
1. 多级菜单中出现箭头。
|
||||
|
||||
2. 替换主菜单界面的logo为你公司的logo。
|
||||
|
||||
3。 在主菜单界面让搜索可见。
|
||||
|
||||
## app_web_fullwidth
|
||||
|
||||
Form view Responsive full width (fullwidth). Ready for small, medium, large, extra large screen.Ready for enterprise and communicate version.
|
||||
|
||||
表单全屏显示。
|
||||
|
||||
## l10n_cn_standard_lastest
|
||||
@@ -205,31 +372,57 @@ Form view Responsive full width (fullwidth). Ready for small, medium, large, ext
|
||||
## l10n_cn_standard_latest
|
||||
|
||||
### Latest Chinese Accounting 2019
|
||||
|
||||
Multi level account chart. Chinese enhance. Focus on account chart.
|
||||
|
||||
Add account chart group data. Account group, Chinese tax.
|
||||
|
||||
Set chinese account report.
|
||||
|
||||
### 2019最新中国企业会计表.
|
||||
|
||||
最新中国化财务,主要针对标准会计科目表作了优化。
|
||||
|
||||
1. 2018最新会计科目表,处理营改增后会计科目调整。
|
||||
|
||||
2. 将菜单中设置为"财务"。
|
||||
|
||||
3. 补充分类及标签信息。
|
||||
|
||||
4. 更新税信息。
|
||||
|
||||
5. 增加树状结构,支持二级科目,可设置上级科目,配合 "app_web_superbar" 使用可轻易实现树状导航。
|
||||
|
||||
6. 使用金蝶的会计科目命名法对多级科目进行初始化。可自行调整为用友科目命名法
|
||||
|
||||
7. 注意,必须在没有业务数据,没有会计科目的初始环境。可以使用 "app_odoo_customize" 模块清除财务数据,重置会计科目。
|
||||
|
||||
|
||||
|
||||
如果是多语种环境需要自行更改翻译,主要体现在16%增值税处理。
|
||||
|
||||
欧度智能,odooai.cn
|
||||
|
||||
The Latest Chinese Account
|
||||
|
||||
Including the following data in the Accounting Standards for Business Enterprises
|
||||
|
||||
包含企业会计准则以下数据
|
||||
|
||||
* Chart of Accounts
|
||||
|
||||
* 科目表模板
|
||||
|
||||
* Account templates
|
||||
|
||||
* 科目模板
|
||||
|
||||
* Tax templates
|
||||
|
||||
* 税金模板
|
||||
|
||||
## web_fontawesome
|
||||
|
||||
Up to date Fontawesome resources. v5.3
|
||||
Fontawesome v5.3更新,更多更美观的图标
|
||||
|
||||
Fontawesome v5.3更新,更多更美观的图标
|
||||
|
Before Width: | Height: | Size: 450 KiB After Width: | Height: | Size: 546 KiB |
|
Before Width: | Height: | Size: 203 KiB After Width: | Height: | Size: 62 KiB |
BIN
app_odoo_customize/static/description/banner1.png
Normal file
|
After Width: | Height: | Size: 142 KiB |
BIN
app_odoo_customize/static/description/banner_ai.png
Normal file
|
After Width: | Height: | Size: 563 KiB |
@@ -7,22 +7,20 @@
|
||||
-->
|
||||
<html>
|
||||
<!-- Modules Title and brief -->
|
||||
<section class="container app">
|
||||
<div class="oe_row oe_spaced" style="max-width: 95%;">
|
||||
<div class="row">
|
||||
<h2 class="oe_slogan">odoo Tweak,Boost,Customize All in One. OEM,UI,Boost,Security,Data,Development Enhance</h2>
|
||||
<h4 class="mt8">
|
||||
You can follow this repo on github. To get the latest update of free odoo app.
|
||||
<p>https://github.com/guohuadeng/app-odoo</p>
|
||||
</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- begin title-->
|
||||
<section class="oe_container container o_cc o_cc2">
|
||||
<h1 class="text-center bg-warning text-white pt24 pb24">odoo Tweak,Ai Employee,Boost,Customize All in One. </h1>
|
||||
<h3 class="text-center">Customize,UI,Boost,Security,Data,Development Enhance</h3>
|
||||
<h4 class="text-center pt40 text-danger">For Odoo17. Please get from the follow github. Done for 85%.</h4>
|
||||
<p class="bg-primary"> https://github.com/guohuadeng/app-odoo/tree/17.0 </p>
|
||||
</section>
|
||||
|
||||
|
||||
<section class="container app">
|
||||
<div class="oe_row oe_spaced" style="max-width: 95%;">
|
||||
<div class="row">
|
||||
<h2 class="oe_slogan">This is a Long Term Support Apps.Update: v13.23.09.13</h2>
|
||||
<h2 class="oe_slogan">This is a Long Term Support Apps.Update: v16.5.23.09.30</h2>
|
||||
<div class="oe_demo" style=" margin: 30px auto 0; padding: 0 15px 0 0; border:none; width: 96%;">
|
||||
<ul class="list-group">
|
||||
<li class="list-group-item">1. Deletes Odoo label in footer</li>
|
||||
@@ -301,7 +299,7 @@
|
||||
<div class="row">
|
||||
<h2 class="oe_slogan">This is a Long Term Support Apps.</h2>
|
||||
<div class="oe_demo" style=" margin: 30px auto 0; padding: 0 15px 0 0; border:none; width: 96%;">
|
||||
<h3>Update: v13.23.09.13</h3>
|
||||
<h3>Update: v16.23.09.13</h3>
|
||||
<p>UI enhance. follow odoo16 setup UI.</p>
|
||||
<p>46. Add Help documentation anywhere. easy get help for any odoo operation or action.</p>
|
||||
<p>45. Add addons path info to module.</p>
|
||||
|
||||
414
app_odoo_customize/static/description/index_cn.html
Normal file
@@ -0,0 +1,414 @@
|
||||
<section class="oe_container app">
|
||||
<div class="oe_row oe_spaced" style="max-width: 95%;">
|
||||
<div class="row">
|
||||
<h2 class="oe_slogan">odoo全面增强,oem配置,界面增强,安全增强,数据增强45项功能</h2>
|
||||
<h4 class="mt8">
|
||||
If you are using odoo enterprise.<br>
|
||||
<a href="https://www.odoo.com/apps/modules/15.0/app_web_enterprise/" target="_blank">
|
||||
Get "app_web_enterprise" for more customize
|
||||
</a>
|
||||
</h4>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<a class="btn btn-block btn-success mt16 mb16" target="_blank" href="https://apps.odoo.com/apps/modules/15.0/app_app_web_enterprise/">
|
||||
<img src="app_web_enterprise_03.jpg" style="border:1px solid black"/>
|
||||
</a>
|
||||
<br/>
|
||||
</div>
|
||||
<h4 class="mt8">
|
||||
You can follow this repo on github. To get the latest update of free odoo app.
|
||||
<p>https://github.com/guohuadeng/app-odoo</p>
|
||||
</h4>
|
||||
<h4 class="mt8">
|
||||
Also you can
|
||||
<a href="https://www.odoo.com/apps/modules/browse?author=odooai.cn" target="_blank">
|
||||
get more powerful odoo apps from us.
|
||||
</a>. like [superbar widget]
|
||||
</h4>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<a href="https://www.odoo.com/apps/modules/browse?author=odooai.cn" target="_blank">
|
||||
<img oe_demo oe_screenshot img img-fluid src="https://apps.odoocdn.com/apps/assets/15.0/app_web_superbar/superbar.gif"/>
|
||||
</a>
|
||||
</div>
|
||||
<div class="oe_demo" style=" margin: 30px auto 0; padding: 0 15px 0 0; border:none; width: 96%;">
|
||||
<p>This moduld allows user to quickly customize and debranding Odoo. Quick debug, Language Switcher,
|
||||
Online Documentation Access,Quick Data Clear. </p>
|
||||
<p class="mb16">Support odoo 16,15,14,13, 12, 11, 10, 9. Including community and enterprise version. </p>
|
||||
</div>
|
||||
<div class="oe_demo" style=" margin: 30px auto 0; padding: 0 15px 0 0; border:none; width: 96%;">
|
||||
<p>If you want to change the login page. </p>
|
||||
<p class="mb16">Please modify the file \views\app_odoo_customize_views.xml </p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="oe_container app">
|
||||
<div class="oe_row oe_spaced" style="max-width: 95%;">
|
||||
<div class="row">
|
||||
<h2 class="oe_slogan">这是一个长期更新维护的odoo应用模块</h2>
|
||||
<div class="oe_demo" style=" margin: 30px auto 0; padding: 0 15px 0 0; border:none; width: 96%;">
|
||||
<h3>Update: v15.23.08.24</h3>
|
||||
<p>应用界面升级,整合进odoo通用设置</p>
|
||||
<p>46. 增加快速帮助文档,可以在任意操作中获取相关的 odoo 帮助.</p>
|
||||
<p>45. 为应用模块增加模块路径信息</p>
|
||||
<h3>Update: v15.23.08.15</h3>
|
||||
<p>44. 可配置停用自动用户订阅功能,这会提速odoo,减少资源消耗</p>
|
||||
<p>43. 可设置只允许管理员进入开发者模式,不可在url中直接debut=1来调试</p>
|
||||
<h3>Update: v15.23.07.25</h3>
|
||||
<p>42. 可设置导航栏在上方还是下方,分开桌面与移动端.</p>
|
||||
<h3>Update: v15.23.07.14</h3>
|
||||
<p>41. 修正odoo原生移动端菜单bug,点击个人设置时,原菜单不隐藏等</p>
|
||||
<h3>Update: v15.23.05.04</h3>
|
||||
<p>Fix bug in mobile view in popup menu.</p>
|
||||
<h3>Update: v15.23.02.17</h3>
|
||||
<p>Fix odoo Debug and Debug Assets.</p>
|
||||
<h3>Update: v15.23.02.06</h3>
|
||||
<p>Fix odoo ribbon.</p>
|
||||
<p>Fix odoo translate update.</p>
|
||||
<h3>Update: v15.22.10.21</h3>
|
||||
<p>Add odoo16 support.</p>
|
||||
<h3>Update: v15.21.10.21</h3>
|
||||
<p>odoo15 remove data optimization. Easy and fast remove big data.</p>
|
||||
<h3>Update: v15.22.03.15</h3>
|
||||
<p>Add odoo15 supported.</p>
|
||||
<h3>Update: v13.21.08.04</h3>
|
||||
<p>40. 增强对企业版的支持</p>
|
||||
<p>39. 只有系统管理员可以操作快速debug</p>
|
||||
<p>38. 对话框可拖拽,可缩放,自动大屏优化</p>
|
||||
<p>37. noupdate字段的快速管理,主要针对 xml_id.</p>
|
||||
<h3>Update: v14.21.03.31</h3>
|
||||
<p>Account date reset, and account chart reset support multi company reset.</p>
|
||||
<h3>Update: v14.21.03.03</h3>
|
||||
<p>Fixed odoo Title.</p>
|
||||
<h3>Update: v14.20.12.29</h3>
|
||||
<p>36. 可为多个模块强制更新翻译</p>
|
||||
<h3>Update: v14.20.08.29</h3>
|
||||
<p>35. 优化至odoo14适用</p>
|
||||
<p>34. Add Remove all quality data(for odoo Enterprise)</p>
|
||||
<p>33. Add Demo Ribbon Setting.</p>
|
||||
<p>32. Fix odoo bug of complete name bug of product category and stock location.</p>
|
||||
<h3>Update: v13.20.08.29</h3>
|
||||
<p>36. Add odoo 14 support.</p>
|
||||
<h3>Update: v13.20.04.12</h3>
|
||||
<p>31. Show or hide odoo Referral in the top menu.</p>
|
||||
<h3>Update: v13.20.03.23</h3>
|
||||
<p>30. 1 key export app translate file like .po file.</p>
|
||||
<h3>Update: v13.20.02.25</h3>
|
||||
<p>28. Easy Menu manager.</p>
|
||||
<p>29. Add Install version in App list. Add Local updatable filter in app list.</p>
|
||||
<h3>Update: v13.19.10.19</h3>
|
||||
<p>27. Add Odoo 13 support, all function add</p>
|
||||
<h3>Update: v12.19.04.30</h3>
|
||||
<p>26. Add multi uninstall modules</p>
|
||||
<h3>Update: v12.19.04.18</h3>
|
||||
<p>25. Add remove expense data</p>
|
||||
<h3>Update: v12.19.04.17</h3>
|
||||
<p>Add Customize Odoo Native Module(eg. Enterprise) Url</p>
|
||||
<h3>Update: v12.19.3.15</h3>
|
||||
<p>Add reset or clear website blog data</p>
|
||||
<h3>Update: v12.19.3.12</h3>
|
||||
<p>Optimize chinese translate and document.</p>
|
||||
<p>Fix bug: Data reset.</p>
|
||||
<h3>Update: v12.19.1.20</h3>
|
||||
<p>Fix bug: Save config error.</p>
|
||||
<h3>Update: v12.19.1.05</h3>
|
||||
<p>Fix bug: If you install Muk moudle, odooapp customize would pop error like "attachment_location". Sometime you need to uninstall this app and restart odoo, install again to take affect.</p>
|
||||
<h3>Update: v12.0.12.25</h3>
|
||||
<p>add 22. Update online manual and developer document to odoo12.</p>
|
||||
<h3>Update: v12.0.11.08</h3>
|
||||
<p>Add 21. Reset Account Chart.</p>
|
||||
<h3>Update: v12.0.9.30</h3>
|
||||
<p>Add 20. Show quick upgrade in app dashboard</p>
|
||||
<h3>Update: v12.0.9.25</h3>
|
||||
<p>Now ready for Odoo 13,12, please email to me. guohuadeng@hotmail.com</p>
|
||||
<h3>Update: v12.0.7.23</h3>
|
||||
<p>Fix Login bug when install website.</p>
|
||||
<p>Add 19. One Click to clear all data (Sometime pls click twice)</p>
|
||||
<p>Add 18. Show/Hide Author and Website in Apps Dashboard</p>
|
||||
<h2 class="text-primary">More Powerful addons:</h2>
|
||||
<p class="">
|
||||
<a class="btn btn-block btn-success mt16 mb16" href="http://www.odoo.com/apps/modules/browse?author=odooai.cn">odooai.cn Awesome Odoo
|
||||
Addons</a>
|
||||
</p>
|
||||
<br>
|
||||
<h3>支持odoo 16,15,14,13,12, 11, 10, 9 版本,社区版企业版通用</h3>
|
||||
<ul class="list-group">
|
||||
<li class='list-group-item'>1. 删除菜单导航页脚的 Odoo 标签</li>
|
||||
<li class='list-group-item'>2. 将弹出窗口中 "Odoo" 设置为自定义名称</li>
|
||||
<li class='list-group-item'>3. 自定义用户菜单中的 Documentation, Support, About 的链接</li>
|
||||
<li class='list-group-item'>4. 在用户菜单中增加快速切换开发模式</li>
|
||||
<li class='list-group-item'>5. 在用户菜单中增加快速切换多国语言</li>
|
||||
<li class='list-group-item'>6. 对语言菜单进行美化,设置国旗图标</li>
|
||||
<li class='list-group-item'>7. 在用户菜单中增加中/英文用户手册,可以不用翻墙加速了</li>
|
||||
<li class='list-group-item'>8. 在用户菜单中增加开发者手册,含python教程,jquery参考,Jinja2模板,PostgresSQL参考</li>
|
||||
<li class='list-group-item'>9. 在用户菜单中自定义"My odoo.com account"</li>
|
||||
<li class='list-group-item'>10. 单独设置面板,每个选项都可以自定义</li>
|
||||
<li class='list-group-item'>11. 提供236个国家的国旗文件(部份需要自行设置文件名)</li>
|
||||
<li class='list-group-item'>12. 多语言版本</li>
|
||||
<li class='list-group-item'>13. 自定义登陆界面中的 Powered by Odoo</li>
|
||||
<li class='list-group-item'>14. 快速删除测试数据,支持模块包括:销售/POS门店/采购/生产/库存/会计/项目/消息与工作流等.</li>
|
||||
<li class='list-group-item'>15. 将各类单据的序号重置,从1开始,包括:SO/PO/MO/Invoice 等</li>
|
||||
<li class='list-group-item'>16. 修复odoo启用英文后模块不显示中文的Bug</li>
|
||||
<li class='list-group-item'>17. 可停用odoo自动订阅功能,避免“同样对象关注2次”bug,同时提升性能</li>
|
||||
<li class='list-group-item'>18. 显示/隐藏应用的作者和网站-在应用安装面板中</li>
|
||||
<li class='list-group-item'>19. 一键清除所有数据(视当前数据情况,有时需点击2次)</li>
|
||||
<li class='list-group-item'>20. 在应用面板显示快速升级按键,点击时不会导航至 odoo.com</li>
|
||||
<li class='list-group-item'>21. 清除并重置会计科目表</li>
|
||||
<li class='list-group-item'>22. 全新升级将odoo12用户及开发手册导航至国内网站,或者自己定义的网站</li>
|
||||
<li class='list-group-item'>23. 增加清除网站数据功能</li>
|
||||
<li class='list-group-item'>24. 自定义 odoo 原生模块跳转的url(比如企业版模块)</li>
|
||||
<li class='list-group-item'>25. 增加删除费用报销数据功能</li>
|
||||
<li class='list-group-item'>26. 增加批量卸载模块功能</li>
|
||||
<li class='list-group-item'>27. 增加odoo加速功能</li>
|
||||
<li class='list-group-item'>28. 快速管理顶级菜单</li>
|
||||
<li class='list-group-item'>29. App版本比较,快速查看可本地更新的模块</li>
|
||||
<li class='list-group-item'>30. 一键导出翻译文件 po</li>
|
||||
<li class='list-group-item'>31. 显示或去除 odoo 推荐</li>
|
||||
<li class='list-group-item'>32. 增加修复品类及区位名的操作</li>
|
||||
<li class='list-group-item'>33. 增加 Demo 的显示设置</li>
|
||||
<li class='list-group-item'>34. 增加清除质检数据</li>
|
||||
<li class='list-group-item'>35. 优化至odoo14适用</li>
|
||||
<li class='list-group-item'>36. 可为多个模块强制更新翻译</li>
|
||||
<li class='list-group-item'>37. noupdate字段的快速管理,主要针对 xml_id</li>
|
||||
<li class='list-group-item'>38. 对话框可拖拽,可缩放,自动大屏优化</li>
|
||||
<li class='list-group-item'>39. 只有系统管理员可以操作快速debug</li>
|
||||
<li class='list-group-item'>40. 增强对企业版的支持</li>
|
||||
<li class='list-group-item'>41. 修正odoo原生移动端菜单bug,点击个人设置时,原菜单不隐藏等</li>
|
||||
<li class='list-group-item'>42. 可设置导航栏在上方还是下方,分开桌面与移动端.</li>
|
||||
<li class='list-group-item'>43. 可设置只允许管理员进入开发者模式,不可在url中直接debut=1来调试</li>
|
||||
<li class='list-group-item'>44. 可配置停用自动用户订阅功能,这会提速odoo,减少资源消耗</li>
|
||||
<li class='list-group-item'>45. 为应用模块增加模块路径信息</li>
|
||||
<li class='list-group-item'>46. 增加快速帮助文档,可以在任意操作中获取相关的 odoo 帮助.</li>
|
||||
|
||||
</ul>
|
||||
<p>此模块用于 OEM 你的 odoo,增加自己公司的 Logo 相关信息及版权相关信息。
|
||||
<br/>
|
||||
便于快速开发、快速培训、可速查找odoo帮助文档。也可以方便的进行odoo数据清理与重置。
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<section class="oe_container container">
|
||||
<div class="oe_row oe_spaced">
|
||||
<h2 class="bg-warning text-center pt8 pb8">odoo系统内快速帮助</h2>
|
||||
<h4 class="oe_slogan">增加快速帮助文档,可以在任意操作中获取相关的 odoo 帮助.</h4>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="sethelp1.png"/>
|
||||
</div>
|
||||
<h4 class="oe_slogan">自动设置文章Logo为公司Logo</h4>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="sethelp2.png"/>
|
||||
</div>
|
||||
<h4 class="oe_slogan">可手动设置模块帮助链接</h4>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="sethelp3.png"/>
|
||||
</div>
|
||||
<h4 class="oe_slogan">注意必须在开发者模式</h4>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="sethelp4.png"/>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="oe_container container">
|
||||
<div class="oe_row oe_spaced">
|
||||
<h2 class="bg-warning text-center pt8 pb8">Ai服务中心支持</h2>
|
||||
<h4 class="oe_slogan">你可以安装最新的 ChatGPT 或者 微软、谷歌等Ai.</h4>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="setai1.png"/>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="oe_row oe_spaced" style="max-width: 95%;">
|
||||
<div class="oe_demo"
|
||||
style="margin: 20px auto; padding: 0 15px 0 0; border:none; border-top:solid 1px #dedede; width: 96%;">
|
||||
<h2 class='oe_mt32'>Odoo 快速自定义,OEM改造,快速Debug、语言切换等全面增强</h2>
|
||||
</div>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="banner.gif" style="border:1px solid black"/>
|
||||
<br/>
|
||||
</div>
|
||||
<div class="oe_demo"
|
||||
style="margin: 20px auto; padding: 0 15px 0 0; border:none; border-top:solid 1px #dedede; width: 96%;">
|
||||
<h2 class='oe_mt32'>多语言支持,中文已处理</h2>
|
||||
</div>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="setcn1.png" style="border:1px solid black"/>
|
||||
<br/>
|
||||
<img src="setcn2.png" style="border:1px solid black"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="oe_row oe_spaced" style="max-width: 95%;">
|
||||
<div class="oe_demo"
|
||||
style=" argin: 20px auto; padding: 0 15px 0 0; border:none; border-top:solid 1px #dedede; width: 96%; ">
|
||||
<h2 class='oe_mt32'>如何使用: 转到 设置 -> odooAi -> 定制与增强</h2>
|
||||
</div>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="set0.png" style="border:1px solid black"/>
|
||||
<br/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<section class="oe_container container">
|
||||
<div class="oe_row oe_spaced">
|
||||
<h2 class="bg-warning text-center pt8 pb8">OEM White label your odoo</h2>
|
||||
<h4 class="oe_slogan">Replaces "Odoo" in Windows title, Deletes Odoo label in footer, Customize all odoo link to my link</h4>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="set1.jpg"/>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="oe_container container">
|
||||
<div class="oe_row oe_spaced">
|
||||
<h2 class="bg-warning text-center pt8 pb8">Mobile Enhance. Add menu navbar setup for top or bottom. navigator footer support.</h2>
|
||||
<h4 class="oe_slogan">Easy set navbar on bottom or top.</h4>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="setnav.png"/>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="oe_container container">
|
||||
<div class="oe_row oe_spaced">
|
||||
<h2 class="bg-warning text-center pt8 pb8">odoo SECURITY AND BOOST</h2>
|
||||
<h4 class="oe_slogan">Eonly Debug / Debug Assets for Odoo Admin. Deny debug from url for other user.stop subscribe and follow. This to make odoo speed up.</h4>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="setboost.png"/>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="oe_container container">
|
||||
<div class="oe_row oe_spaced">
|
||||
<h2 class="bg-warning text-center pt8 pb8">Add quick operation for odoo modules. </h2>
|
||||
<h4 class="oe_slogan">Refresh translate. Upgrade, Uninstall, help on topic</h4>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="setmodule1.png"/>
|
||||
</div>
|
||||
<h4 class="oe_slogan">Easy mass module operation</h4>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="setmodule2.png"/>
|
||||
</div>
|
||||
<h4 class="oe_slogan">Easy Export translate follow your language</h4>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="setmodule3.png"/>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="oe_container container">
|
||||
<div class="oe_row oe_spaced">
|
||||
<h2 class="bg-warning text-center pt8 pb8"> Add Draggable and sizeable Dialog enable.</h2>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="setdialog.gif"/>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="oe_row oe_spaced" style="max-width: 95%;">
|
||||
<div class="oe_demo"
|
||||
style="margin: 20px auto; padding: 0 15px 0 0; border:none; border-top:solid 1px #dedede; width: 96%;">
|
||||
<h2 class='oe_mt32'>Show/Hide Author and Website in Apps Dashboard</h2>
|
||||
</div>
|
||||
<p>Before</p>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="set18-1.jpg" style="border:1px solid black"/>
|
||||
<br/>
|
||||
</div>
|
||||
<p>After uncheck "Show Author in Apps Dashboard"</p>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="set18-2.jpg" style="border:1px solid black"/>
|
||||
<br/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="oe_row oe_spaced" style="max-width: 95%;">
|
||||
<div class="oe_demo"
|
||||
style="margin: 20px auto; padding: 0 15px 0 0; border:none; border-top:solid 1px #dedede; width: 96%;">
|
||||
<h2 class='oe_mt32'>Show quick upgrade in app dashboard, click to show module info not go to odoo.com</h2>
|
||||
</div>
|
||||
<p>No more redirect to odoo.com</p>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="set20.jpg" style="border:1px solid black"/>
|
||||
<br/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="oe_row oe_spaced" style="max-width: 95%;">
|
||||
<div class="oe_demo"
|
||||
style="margin: 20px auto; padding: 0 15px 0 0; border:none; border-top:solid 1px #dedede; width: 96%;">
|
||||
<h2 class='oe_mt32'>Setup more flags: just rename the flag pic to locale code of the country</h2>
|
||||
<p>You can find the pictures in "\app-odoo\app_odoo_customize\static\src\img\flags"</p>
|
||||
</div>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="set2.png" style="border:1px solid black"/>
|
||||
<br/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="oe_row oe_spaced" style="max-width: 95%;">
|
||||
<div class="oe_demo"
|
||||
style="margin: 20px auto; padding: 0 15px 0 0; border:none; border-top:solid 1px #dedede; width: 96%;">
|
||||
<h2 class='oe_mt32'>Customize Extra enterprise Module Url(eg. Enterprise).</h2>
|
||||
</div>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="set21.jpg" style="border:1px solid black"/>
|
||||
<br/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="oe_row oe_spaced" style="max-width: 95%;">
|
||||
<div class="oe_demo"
|
||||
style="margin: 20px auto; padding: 0 15px 0 0; border:none; border-top:solid 1px #dedede; width: 96%;">
|
||||
<h2 class='oe_mt32'>Quick Delete test Data.</h2>
|
||||
<p>You can quickly delete all the test data in Apps: Sales/POS/Purchase/MRP/Inventory/Accounting/Message/Workflow etc.</p>
|
||||
</div>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="set3.jpg" style="border:1px solid black"/>
|
||||
<br/>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="oe_container container">
|
||||
<div class="oe_row oe_spaced">
|
||||
<h2 class="bg-warning text-center pt8 pb8">Multi-language Support..</h2>
|
||||
<h4 class="oe_slogan"> </h4>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="cnreadme.png"/>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="container oe_dark">
|
||||
<div class="oe_row oe_spaced text-center">
|
||||
<div class="row">
|
||||
<h2 class="oe_slogan">Technical Help & Support</h2>
|
||||
</div>
|
||||
<div class="col-md-12 pad0">
|
||||
<div class="oe_mt16">
|
||||
<p><h4>
|
||||
For any type of technical help & support requests, Feel free to contact us</h4></p>
|
||||
<a style="background: #002e5a none repeat scroll 0% 0%; color: rgb(255, 255, 255);position: relative; overflow: hidden;"
|
||||
class="btn btn-warning btn-lg" rel="nofollow" href="mailto:guohuadeng@hotmail.com"><span
|
||||
style="height: 354px; width: 354px; top: -147.433px; left: -6.93335px;" class="o_ripple"></span>
|
||||
<i class="fa fa-envelope"></i> guohuadeng@hotmail.com</a>
|
||||
<p><h4>
|
||||
Via QQ: 300883 (App user would not get QQ or any other IM support. Only for odoo project customize.)</h4></p>
|
||||
<a style="background: #002e5a none repeat scroll 0% 0%; color: rgb(255, 255, 255);position: relative; overflow: hidden;"
|
||||
class="btn btn-warning btn-lg" rel="nofollow" href="mailto:300883@qq.com"><span
|
||||
style="height: 354px; width: 354px; top: -147.433px; left: -6.93335px;" class="o_ripple"></span>
|
||||
<i class="fa fa-envelope"></i> 300883@qq.com</a>
|
||||
</div>
|
||||
<div class="oe_mt16">
|
||||
<h4>
|
||||
Visit our website for more support.</h4>
|
||||
<h4>https://www.odooai.cn</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
BIN
app_odoo_customize/static/description/set11.png
Normal file
|
After Width: | Height: | Size: 80 KiB |
BIN
app_odoo_customize/static/description/set3.jpg
Normal file
|
After Width: | Height: | Size: 75 KiB |
@@ -0,0 +1,53 @@
|
||||
/** @odoo-module **/
|
||||
|
||||
import { Dropdown } from "@web/core/dropdown/dropdown";
|
||||
import { DropdownItem } from "@web/core/dropdown/dropdown_item";
|
||||
import { useService } from "@web/core/utils/hooks";
|
||||
import { registry } from "@web/core/registry";
|
||||
import { browser } from "@web/core/browser/browser";
|
||||
import { symmetricalDifference } from "@web/core/utils/arrays";
|
||||
|
||||
import { Component, useState } from "@odoo/owl";
|
||||
|
||||
export class SwitchLangMenu extends Component {
|
||||
setup() {
|
||||
this.LangService = useService("Lang");
|
||||
this.currentLang = this.LangService.currentLang;
|
||||
this.state = useState({ langToSet: [] });
|
||||
}
|
||||
|
||||
setLang(LangId) {
|
||||
this.state.langToSet = symmetricalDifference(this.state.langToSet, [
|
||||
LangId,
|
||||
]);
|
||||
browser.clearTimeout(this.toggleTimer);
|
||||
this.toggleTimer = browser.setTimeout(() => {
|
||||
this.LangService.set2Lang("toggle", ...this.state.langToSet);
|
||||
}, this.constructor.toggleDelay);
|
||||
}
|
||||
|
||||
logIntoLang(LangId) {
|
||||
browser.clearTimeout(this.toggleTimer);
|
||||
this.LangService.set2Lang("loginto", LangId);
|
||||
}
|
||||
|
||||
get selectedCompanies() {
|
||||
return symmetricalDifference(
|
||||
this.LangService.allowedLangIds,
|
||||
this.state.langToSet
|
||||
);
|
||||
}
|
||||
}
|
||||
SwitchLangMenu.template = "web.SwitchLangMenu";
|
||||
SwitchLangMenu.components = { Dropdown, DropdownItem };
|
||||
SwitchLangMenu.toggleDelay = 1000;
|
||||
|
||||
export const systrayItem = {
|
||||
Component: SwitchLangMenu,
|
||||
isDisplayed(env) {
|
||||
const { availableCompanies } = env.services.Lang;
|
||||
return Object.keys(availableCompanies).length > 1;
|
||||
},
|
||||
};
|
||||
|
||||
registry.category("systray").add("SwitchLangMenu", systrayItem, { sequence: 1 });
|
||||
@@ -0,0 +1,59 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates xml:space="preserve">
|
||||
|
||||
<t t-name="web.SwitchLangMenu" owl="1">
|
||||
<Dropdown class="'o_switch_Lang_menu d-none d-md-block'" position="'bottom-end'">
|
||||
<t t-set-slot="toggler">
|
||||
<i class="fa fa-building d-lg-none"/>
|
||||
<span class="oe_topbar_name d-none d-lg-block" t-esc="currentLang.name"/>
|
||||
</t>
|
||||
<t t-foreach="Object.values(LangService.availableCompanies).sort((c1, c2) => c1.sequence - c2.sequence)" t-as="Lang" t-key="Lang.id">
|
||||
<t t-call="web.SwitchLangItem">
|
||||
<t t-set="Lang" t-value="Lang" />
|
||||
</t>
|
||||
</t>
|
||||
</Dropdown>
|
||||
</t>
|
||||
|
||||
|
||||
<t t-name="web.SwitchLangItem" owl="1">
|
||||
<DropdownItem class="'p-0 bg-white'">
|
||||
<t t-set="isLangSelected" t-value="selectedCompanies.includes(Lang.id)"/>
|
||||
<t t-set="isCurrent" t-value="Lang.id === LangService.currentLang.id"/>
|
||||
<div class="d-flex" data-menu="Lang" t-att-data-Lang-id="Lang.id">
|
||||
<div
|
||||
role="menuitemcheckbox"
|
||||
t-att-aria-checked="isLangSelected ? 'true' : 'false'"
|
||||
t-att-aria-label="Lang.name"
|
||||
t-att-title="(isLangSelected ? 'Hide ' : 'Show ') + Lang.name + ' content.'"
|
||||
tabindex="0"
|
||||
class="border-end toggle_Lang"
|
||||
t-attf-class="{{isCurrent ? 'border-primary' : ''}}"
|
||||
t-on-click.stop="() => this.setLang(Lang.id)">
|
||||
|
||||
<span class="btn btn-light border-0 p-2">
|
||||
<i class="fa fa-fw py-2" t-att-class="isLangSelected ? 'fa-check-square text-primary' : 'fa-square-o'"/>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div
|
||||
role="button"
|
||||
t-att-aria-pressed="isCurrent ? 'true' : 'false'"
|
||||
t-att-aria-label="'Switch to ' + Lang.name "
|
||||
t-att-title="'Switch to ' + Lang.name "
|
||||
tabindex="0"
|
||||
class="d-flex flex-grow-1 align-items-center py-0 log_into ps-2"
|
||||
t-att-class="isCurrent ? 'alert-primary ms-1 me-2' : 'btn btn-light fw-normal border-0'"
|
||||
t-on-click="() => this.logIntoLang(Lang.id)">
|
||||
|
||||
<span
|
||||
class='Lang_label pe-3'
|
||||
t-att-class="isCurrent ? 'text-900 fw-bold' : 'ms-1'">
|
||||
<t t-esc="Lang.name"/>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</DropdownItem>
|
||||
</t>
|
||||
|
||||
</templates>
|
||||