diff --git a/app_odoo_customize/models/app_theme_config_settings.py b/app_odoo_customize/models/app_theme_config_settings.py
index 20be6575..2e6fc85d 100644
--- a/app_odoo_customize/models/app_theme_config_settings.py
+++ b/app_odoo_customize/models/app_theme_config_settings.py
@@ -35,7 +35,7 @@ class AppThemeConfigSettings(models.TransientModel):
@api.model
def get_default_all(self, fields):
ir_config = self.env['ir.config_parameter']
- app_system_name = ir_config.get_param('app.window_title', default='odooApp')
+ 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
@@ -283,7 +283,6 @@ class AppThemeConfigSettings(models.TransientModel):
['stock.move', ],
['stock.pack.operation', ],
['stock.picking', ],
- ['stock.picking.wave', ],
['stock.scrap', ],
['stock.inventory.line', ],
['stock.inventory', ],
@@ -303,9 +302,9 @@ class AppThemeConfigSettings(models.TransientModel):
'|', ('code', '=', 'stock.lot.tracking'),
'|', ('code', '=', 'stock.orderpoint'),
'|', ('code', '=', 'stock.picking'),
- '|', ('code', '=', 'picking.wave'),
'|', ('code', '=', 'stock.quant.package'),
'|', ('code', '=', 'stock.scrap'),
+ '|', ('code', '=', 'stock.picking'),
'|', ('prefix', '=', 'WH/IN/'),
'|', ('prefix', '=', 'WH/INT/'),
'|', ('prefix', '=', 'WH/OUT/'),
@@ -325,7 +324,6 @@ class AppThemeConfigSettings(models.TransientModel):
"or code ='stock.quant.package'" \
"or code ='stock.scrap'" \
"or code ='stock.picking'" \
- "or code ='picking.wave'" \
"or prefix ='WH/IN/'" \
"or prefix ='WH/INT/'" \
"or prefix ='WH/OUT/'" \
diff --git a/app_odoo_customize/models/mail_follower.py b/app_odoo_customize/models/mail_follower.py
deleted file mode 100644
index 5d6d200f..00000000
--- a/app_odoo_customize/models/mail_follower.py
+++ /dev/null
@@ -1,3 +0,0 @@
-# -*- coding: utf-8 -*-
-# Copyright 2017 Jarvis (www.odoomod.com)
-# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
diff --git a/app_odoo_customize/static/description/index.html b/app_odoo_customize/static/description/index.html
index 12f6f717..5eaba873 100644
--- a/app_odoo_customize/static/description/index.html
+++ b/app_odoo_customize/static/description/index.html
@@ -5,6 +5,9 @@
This moduld allows user to quickly customize and debranding Odoo. Quick debug, Language Switcher,
Online Documentation Access,Quick Data Clear.
+
- 1. Deletes Odoo label in footer
diff --git a/app_ui_enhance/__openerp__.py b/app_ui_enhance/__openerp__.py
index 8374f76f..630fe234 100644
--- a/app_ui_enhance/__openerp__.py
+++ b/app_ui_enhance/__openerp__.py
@@ -15,14 +15,19 @@
# http://www.sunpop.cn/odoo10_developer_document_offline/
# description:
{
- 'name': 'App Web UI Enhance',
+ 'name': 'App Web UI Enhance(Search by date or number range,List background color,Barcode Setting.)',
'version': '10.0.1.0',
'author': 'Sunpop.cn',
'category': 'web',
'website': 'http://www.sunpop.cn',
'license': 'AGPL-3',
'sequence': 2,
- 'summary': 'UI Enhance for Odoo. 1.Search by date or number range in List view and Pivot view. 2.Instructions for Activating List background color property',
+ 'summary': """
+ UI Enhance for Odoo.
+ 1.Search by date or number range in List view and Pivot view.
+ 2.Instructions for Activating List background color property.
+ 3.Reset the barcode format.
+ """,
'description': """
1.Search by date or number range in List view and Pivot view
@@ -49,7 +54,7 @@ eg.
--------------------------------------------------
""",
- 'depends': ['web','app_odoo_customize'],
+ 'depends': ['web', 'app_odoo_customize'],
'data': [
'views/app_ui_config_settings_view.xml',
'views/template_view.xml',
@@ -61,7 +66,7 @@ eg.
],
"price": 68.00,
"currency": "EUR",
-
+
'images': ['static/description/list_pivot.png'],
'installable': True,
diff --git a/app_ui_enhance/data/ir_config_parameter.xml b/app_ui_enhance/data/ir_config_parameter.xml
index a35b94b8..7d8f326d 100644
--- a/app_ui_enhance/data/ir_config_parameter.xml
+++ b/app_ui_enhance/data/ir_config_parameter.xml
@@ -9,5 +9,9 @@
app_ui_show_search_number
False
+
+ app_ui_force_barcode
+ Code128
+
\ No newline at end of file
diff --git a/app_ui_enhance/i18n/zh_CN.po b/app_ui_enhance/i18n/zh_CN.po
index 6e1d5e96..97c49a14 100644
--- a/app_ui_enhance/i18n/zh_CN.po
+++ b/app_ui_enhance/i18n/zh_CN.po
@@ -6,10 +6,10 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0+e-20171107\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-11-16 09:24+0000\n"
-"PO-Revision-Date: 2017-11-16 09:24+0000\n"
-"Last-Translator: <300883@qq.com>"
-"Language-Team: Sunpop.cn"
+"POT-Creation-Date: 2018-01-15 13:31+0000\n"
+"PO-Revision-Date: 2018-01-15 13:31+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"
@@ -38,6 +38,21 @@ msgstr "应用"
msgid "Cancel"
msgstr "取消"
+#. module: app_ui_enhance
+#: selection:app.ui.config.settings,app_ui_force_barcode:0
+msgid "Codabar"
+msgstr "Codabar"
+
+#. module: app_ui_enhance
+#: selection:app.ui.config.settings,app_ui_force_barcode:0
+msgid "Code11"
+msgstr "Code11"
+
+#. module: app_ui_enhance
+#: selection:app.ui.config.settings,app_ui_force_barcode:0
+msgid "Code128"
+msgstr "Code128"
+
#. module: app_ui_enhance
#: model:ir.model.fields,field_description:app_ui_enhance.field_app_ui_config_settings_create_uid
msgid "Created by"
@@ -53,6 +68,16 @@ msgstr "创建时间"
msgid "Display Name"
msgstr "显示名称"
+#. module: app_ui_enhance
+#: selection:app.ui.config.settings,app_ui_force_barcode:0
+msgid "EAN13"
+msgstr "EAN13"
+
+#. module: app_ui_enhance
+#: selection:app.ui.config.settings,app_ui_force_barcode:0
+msgid "EAN8"
+msgstr "EAN8"
+
#. module: app_ui_enhance
#. openerp-web
#: code:addons/app_ui_enhance/static/src/xml/pivot_view.xml:22
@@ -60,6 +85,26 @@ msgstr "显示名称"
msgid "End date"
msgstr "结束日期"
+#. module: app_ui_enhance
+#: selection:app.ui.config.settings,app_ui_force_barcode:0
+msgid "Extended39"
+msgstr "Extended39"
+
+#. module: app_ui_enhance
+#: selection:app.ui.config.settings,app_ui_force_barcode:0
+msgid "Extended93"
+msgstr "Extended93"
+
+#. module: app_ui_enhance
+#: selection:app.ui.config.settings,app_ui_force_barcode:0
+msgid "FIM"
+msgstr "FIM"
+
+#. module: app_ui_enhance
+#: model:ir.model.fields,field_description:app_ui_enhance.field_app_ui_config_settings_app_ui_force_barcode
+msgid "Force all Odoo Barcode to:"
+msgstr "强制设置所有Odoo条码格式:"
+
#. module: app_ui_enhance
#. openerp-web
#: code:addons/app_ui_enhance/static/src/xml/pivot_view.xml:43
@@ -67,6 +112,11 @@ msgstr "结束日期"
msgid "From"
msgstr "从"
+#. module: app_ui_enhance
+#: selection:app.ui.config.settings,app_ui_force_barcode:0
+msgid "I2of5"
+msgstr "I2of5"
+
#. module: app_ui_enhance
#: model:ir.model.fields,field_description:app_ui_enhance.field_app_ui_config_settings_id
msgid "ID"
@@ -92,6 +142,21 @@ msgstr "最后更新人"
msgid "Last Updated on"
msgstr "最后更新时间"
+#. module: app_ui_enhance
+#: selection:app.ui.config.settings,app_ui_force_barcode:0
+msgid "MSI"
+msgstr "MSI"
+
+#. module: app_ui_enhance
+#: selection:app.ui.config.settings,app_ui_force_barcode:0
+msgid "Odoo Default"
+msgstr "Odoo 默认"
+
+#. module: app_ui_enhance
+#: selection:app.ui.config.settings,app_ui_force_barcode:0
+msgid "POSTNET"
+msgstr "POSTNET"
+
#. module: app_ui_enhance
#. openerp-web
#: code:addons/app_ui_enhance/static/src/xml/pivot_view.xml:18
@@ -102,6 +167,21 @@ msgstr "最后更新时间"
msgid "Press Enter to search"
msgstr "直接按回车即可搜索"
+#. module: app_ui_enhance
+#: selection:app.ui.config.settings,app_ui_force_barcode:0
+msgid "QR"
+msgstr "QR"
+
+#. module: app_ui_enhance
+#: model:ir.model,name:app_ui_enhance.model_report
+msgid "Report"
+msgstr "报表"
+
+#. module: app_ui_enhance
+#: model:ir.ui.view,arch_db:app_ui_enhance.view_app_ui_config_settings
+msgid "Report Setting"
+msgstr "Report Setting"
+
#. module: app_ui_enhance
#: model:ir.ui.view,arch_db:app_ui_enhance.view_app_ui_config_settings
msgid "Search Enhance"
@@ -113,6 +193,11 @@ msgstr "搜索增加"
msgid "Set 'True' to show, Set 'False' to hide"
msgstr "设为 'True' 则显示,设为 'False' 则隐藏"
+#. module: app_ui_enhance
+#: model:ir.model.fields,help:app_ui_enhance.field_app_ui_config_settings_app_ui_force_barcode
+msgid "Set Odoo Default to use the barcode odoo define in report(EAN13)."
+msgstr "设置为'Odoo默认'即使用代码中设置的条码编码(EAN13)"
+
#. module: app_ui_enhance
#: model:ir.model.fields,field_description:app_ui_enhance.field_app_ui_config_settings_app_ui_show_search_date
msgid "Show date range search in tree/pivot view"
@@ -123,6 +208,16 @@ msgstr "显示日期搜索,在tree/pivot视图生效"
msgid "Show number range search tree/pivot view"
msgstr "显示数值搜索,在tree/pivot视图生效"
+#. module: app_ui_enhance
+#: selection:app.ui.config.settings,app_ui_force_barcode:0
+msgid "Standard39"
+msgstr "Standard39"
+
+#. module: app_ui_enhance
+#: selection:app.ui.config.settings,app_ui_force_barcode:0
+msgid "Standard93"
+msgstr "Standard93"
+
#. module: app_ui_enhance
#. openerp-web
#: code:addons/app_ui_enhance/static/src/xml/pivot_view.xml:18
@@ -143,6 +238,16 @@ msgstr "至"
msgid "UI Enhance"
msgstr "界面增强"
+#. module: app_ui_enhance
+#: selection:app.ui.config.settings,app_ui_force_barcode:0
+msgid "UPCA"
+msgstr "UPCA"
+
+#. module: app_ui_enhance
+#: selection:app.ui.config.settings,app_ui_force_barcode:0
+msgid "USPS_4State"
+msgstr "USPS_4State"
+
#. module: app_ui_enhance
#: model:ir.ui.view,arch_db:app_ui_enhance.view_app_ui_config_settings
msgid "odoo UI Enhance"
diff --git a/app_ui_enhance/models/__init__.py b/app_ui_enhance/models/__init__.py
index 233f369e..748f84fd 100644
--- a/app_ui_enhance/models/__init__.py
+++ b/app_ui_enhance/models/__init__.py
@@ -1,2 +1,3 @@
# -*- coding: utf-8 -*-
import app_ui_config_settings
+import report
diff --git a/app_ui_enhance/models/app_ui_config_settings.py b/app_ui_enhance/models/app_ui_config_settings.py
index ffc8ff8a..204fad7e 100644
--- a/app_ui_enhance/models/app_ui_config_settings.py
+++ b/app_ui_enhance/models/app_ui_config_settings.py
@@ -30,15 +30,50 @@ class AppUiConfigSettings(models.TransientModel):
app_ui_show_search_date = fields.Boolean('Show date range search in tree/pivot view', help=u"Set 'True' to show, Set 'False' to hide")
app_ui_show_search_number = fields.Boolean('Show number range search tree/pivot view', help=u"Set 'True' to show, Set 'False' to hide")
+ """Contoller able to render barcode images thanks to reportlab.
+ Samples:
+
+
+
+ :param type: Accepted types: 'Codabar', 'Code11', 'Code128', 'EAN13', 'EAN8', 'Extended39',
+ 'Extended93', 'FIM', 'I2of5', 'MSI', 'POSTNET', 'QR', 'Standard39', 'Standard93',
+ 'UPCA', 'USPS_4State'
+ :param humanreadable: Accepted values: 0 (default) or 1. 1 will insert the readable value
+ at the bottom of the output image
+ """
+
+ app_ui_force_barcode = fields.Selection([
+ ('Default', 'Odoo Default'),
+ ('Code128', 'Code128'),
+ ('Standard39', 'Standard39'),
+ ('EAN13', 'EAN13'),
+ ('QR', 'QR'),
+ ('Codabar', 'Codabar'),
+ ('Code11', 'Code11'),
+ ('Extended39', 'Extended39'),
+ ('EAN8', 'EAN8'),
+ ('Extended93', 'Extended93'),
+ ('FIM', 'FIM'),
+ ('I2of5', 'I2of5'),
+ ('MSI', 'MSI'),
+ ('POSTNET', 'POSTNET'),
+ ('Standard93', 'Standard93'),
+ ('UPCA', 'UPCA'),
+ ('USPS_4State', 'USPS_4State'),
+ ], string='Force all Odoo Barcode to:', help=u"Set Odoo Default to use the barcode odoo define in report(EAN13).")
+
@api.model
def get_default_all(self, fields):
ir_config = self.env['ir.config_parameter']
app_ui_show_search_date = True if ir_config.get_param('app_ui_show_search_date') == "True" else False
app_ui_show_search_number = True if ir_config.get_param('app_ui_show_search_number') == "True" else False
+ app_ui_force_barcode = ir_config.get_param('app_ui_force_barcode')
return dict(
app_ui_show_search_date=app_ui_show_search_date,
- app_ui_show_search_number=app_ui_show_search_number
+ app_ui_show_search_number=app_ui_show_search_number,
+ app_ui_force_barcode=app_ui_force_barcode
)
@api.multi
@@ -47,4 +82,5 @@ class AppUiConfigSettings(models.TransientModel):
ir_config = self.env['ir.config_parameter']
ir_config.set_param("app_ui_show_search_date", self.app_ui_show_search_date or "False")
ir_config.set_param("app_ui_show_search_number", self.app_ui_show_search_number or "False")
+ ir_config.set_param("app_ui_force_barcode", self.app_ui_force_barcode or "Default")
return True
diff --git a/app_ui_enhance/models/report.py b/app_ui_enhance/models/report.py
new file mode 100644
index 00000000..ee4b1f13
--- /dev/null
+++ b/app_ui_enhance/models/report.py
@@ -0,0 +1,29 @@
+# -*- coding: utf-8 -*-
+
+from odoo import api, models, fields, _
+from odoo.addons import decimal_precision as dp
+from odoo.exceptions import UserError, ValidationError
+
+class Report(models.Model):
+ _inherit = 'report'
+
+ """Contoller able to render barcode images thanks to reportlab.
+ Samples:
+
+
+
+ :param type: Accepted types: 'Codabar', 'Code11', 'Code128', 'EAN13', 'EAN8', 'Extended39',
+ 'Extended93', 'FIM', 'I2of5', 'MSI', 'POSTNET', 'QR', 'Standard39', 'Standard93',
+ 'UPCA', 'USPS_4State'
+ :param humanreadable: Accepted values: 0 (default) or 1. 1 will insert the readable value
+ at the bottom of the output image
+ """
+
+ def barcode(self, barcode_type, value, width=600, height=100, humanreadable=0):
+ ir_config = self.env['ir.config_parameter']
+ app_ui_force_barcode = ir_config.get_param('app_ui_force_barcode', default='Default')
+ if app_ui_force_barcode or app_ui_force_barcode == 'Default':
+ return super(Report, self).barcode(barcode_type, value, width, height, humanreadable)
+ else:
+ return super(Report, self).barcode(app_ui_force_barcode, value, width, height, humanreadable)
diff --git a/app_ui_enhance/static/description/index.html b/app_ui_enhance/static/description/index.html
index a78a471d..b5f35b0a 100644
--- a/app_ui_enhance/static/description/index.html
+++ b/app_ui_enhance/static/description/index.html
@@ -12,6 +12,11 @@
- 3.Auto get user timezone, global Timezone supported.
- 4.Easy admin to enable/disable the search.
+
+
+ - 5.Instructions for Activating List background color property.
+ - 6.Reset the barcode format.
+
@@ -49,7 +54,7 @@
There are 2 way to setup
1.Go to Menu: Settings->odooApp->UI Enhance
- Setup whate you need
+ Setup what you need
diff --git a/app_ui_enhance/static/description/setup1.jpg b/app_ui_enhance/static/description/setup1.jpg
index 7841f91a..c2f5c09f 100644
Binary files a/app_ui_enhance/static/description/setup1.jpg and b/app_ui_enhance/static/description/setup1.jpg differ
diff --git a/app_ui_enhance/static/description/setup1.png b/app_ui_enhance/static/description/setup1.png
index 978a3a21..e44465d4 100644
Binary files a/app_ui_enhance/static/description/setup1.png and b/app_ui_enhance/static/description/setup1.png differ
diff --git a/app_ui_enhance/static/src/css/app_ui_enhance.css b/app_ui_enhance/static/src/css/app_ui_enhance.css
index 673b57ff..a2203192 100644
--- a/app_ui_enhance/static/src/css/app_ui_enhance.css
+++ b/app_ui_enhance/static/src/css/app_ui_enhance.css
@@ -8,4 +8,36 @@
left: 6px;
top: 3px;
content: "";
+}
+/*
+强制表格滚动,企业版中生效
+*/
+
+.force_scroll .table-responsive {
+ white-space: nowrap !important;
+ overflow: hidden !important;
+ overflow-x: auto !important;
+}
+.force_scroll ::-webkit-scrollbar {
+ height: 16px!important;
+}
+/* 滚动条的滑轨背景颜色 */
+.force_scroll ::-webkit-scrollbar-track {
+ background-color: lightgrey!important;;
+ -webkit-border-radius: 2em !important;;
+ -moz-border-radius: 2em !important;;
+ border-radius: 2em !important;;
+}
+
+/* 滑块颜色 */
+.force_scroll ::-webkit-scrollbar-thumb {
+ background-color: #666666 !important;;
+ -webkit-border-radius: 2em !important;;
+ -moz-border-radius: 2em !important;;
+ border-radius: 2em !important;;
+}
+
+/* 横向滚动条和纵向滚动条相交处尖角的颜色 */
+.force_scroll ::-webkit-scrollbar-corner {
+ background-color: black;
}
\ No newline at end of file
diff --git a/app_ui_enhance/views/app_ui_config_settings_view.xml b/app_ui_enhance/views/app_ui_config_settings_view.xml
index 7e22492f..17ae2750 100644
--- a/app_ui_enhance/views/app_ui_config_settings_view.xml
+++ b/app_ui_enhance/views/app_ui_config_settings_view.xml
@@ -25,6 +25,9 @@
+
+
+
diff --git a/app_ui_enhance/views/template_view.xml b/app_ui_enhance/views/template_view.xml
index a97a3db4..096cf983 100644
--- a/app_ui_enhance/views/template_view.xml
+++ b/app_ui_enhance/views/template_view.xml
@@ -1,7 +1,7 @@
-
+