diff --git a/app_odoo_customize/models/__init__.py b/app_odoo_customize/models/__init__.py index 8a3ea262..501afcfa 100644 --- a/app_odoo_customize/models/__init__.py +++ b/app_odoo_customize/models/__init__.py @@ -2,3 +2,4 @@ import ir_ui_view import app_theme_config_settings +import base_language_install diff --git a/app_odoo_customize/models/base_language_install.py b/app_odoo_customize/models/base_language_install.py new file mode 100644 index 00000000..79549656 --- /dev/null +++ b/app_odoo_customize/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 odoo 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_customize/readme.md b/app_odoo_customize/readme.md index becbcca4..10985a42 100644 --- a/app_odoo_customize/readme.md +++ b/app_odoo_customize/readme.md @@ -17,7 +17,7 @@ You can config odoo, make it look like your own platform. 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 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. @@ -42,6 +42,7 @@ http://www.sunpop.cn 13. 自定义登陆界面中的 Powered by Odoo 14. 快速删除测试数据,支持模块包括:销售/POS门店/采购/生产/库存/会计/消息与工作流等. 15. 将各类单据的序号重置,从1开始,包括:SO/PO/MO/Invoice 等 +16. 修复odoo启用英文后模块显示的Bug 使用方法:将解压后的 app_odoo_customize 放到 odoo的 addons目录下,激活开发者模式,应用-->更新应用列表, 找到 "App odoo Customize"模块,安装即可。 diff --git a/app_odoo_customize/static/description/index.html b/app_odoo_customize/static/description/index.html index bce7fd7d..48444991 100644 --- a/app_odoo_customize/static/description/index.html +++ b/app_odoo_customize/static/description/index.html @@ -22,6 +22,8 @@
  • 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/Base Models.
  • 15.Reset All the Sequence to beginning of 1: SO/PO/MO/Invoice...
  • +
  • 16.Fix odoo reload module translation bug while enable english language +
  • This module can help to white label the Odoo. diff --git a/app_product_sequence/data/product_sequence.xml b/app_product_sequence/data/product_sequence.xml index 905a7b69..8c920c19 100644 --- a/app_product_sequence/data/product_sequence.xml +++ b/app_product_sequence/data/product_sequence.xml @@ -8,7 +8,7 @@ product.product P%(y)s%(month)s 5 - + True @@ -17,6 +17,7 @@ product.product D%(y)s%(month)s 5 + True @@ -25,6 +26,7 @@ product.product C%(y)s%(month)s 5 + True @@ -33,6 +35,7 @@ product.product S%(y)s%(month)s 5 + True diff --git a/app_product_sequence/security/security.xml b/app_product_sequence/security/security.xml index a9f6dc2e..6d51531b 100644 --- a/app_product_sequence/security/security.xml +++ b/app_product_sequence/security/security.xml @@ -3,7 +3,7 @@ Product Internal Type multi-company - + ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]