diff --git a/app_product_superbar/__init__.py b/app_product_superbar/__init__.py new file mode 100644 index 00000000..86764a0e --- /dev/null +++ b/app_product_superbar/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- + +from . import models +from .hooks import post_init_hook \ No newline at end of file diff --git a/app_product_superbar/__manifest__.py b/app_product_superbar/__manifest__.py new file mode 100644 index 00000000..7929a8d2 --- /dev/null +++ b/app_product_superbar/__manifest__.py @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- + +# Created on 2018-08-15 +# author: 欧度智能,https://www.odooai.cn +# email: 300883@qq.com +# resource of odooai +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). + +# Odoo在线中文用户手册(长期更新) +# https://www.odooai.cn/documentation/user/10.0/zh_CN/index.html + +# Odoo10离线中文用户手册下载 +# https://www.odooai.cn/odoo10_user_manual_document_offline/ +# Odoo10离线开发手册下载-含python教程,jquery参考,Jinja2模板,PostgresSQL参考(odoo开发必备) +# https://www.odooai.cn/odoo10_developer_document_offline/ +# description: + +{ + 'name': "App product browse by category navigator", + 'version': '18.0.24.11.11', + 'author': 'odooai.cn', + 'category': 'Extra tools', + 'website': 'https://www.odooai.cn', + 'live_test_url': 'https://demo.odooapp.cn', + 'license': 'LGPL-3', + 'sequence': 2, + 'summary': """ + 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. + Hierarchy Tree.Parent Children relation tree.. + """, + 'description': """ + Superbar, zTree widget. + Advance search with real parent children tree, ListView or KanbanView. parent tree, children tree, + Product category tree ,Department tree, stock location tree. + 超级方便的查询,树状视图 + """, + 'price': 0.00, + 'currency': 'EUR', + 'depends': [ + 'stock', + ], + 'images': ['static/description/banner.png'], + 'data': [ + 'views/product_template_views.xml', + 'views/product_category_views.xml', + ], + 'demo': [ + ], + 'test': [ + ], + 'post_load': None, + 'post_init_hook': 'post_init_hook', + 'installable': True, + 'application': True, + 'auto_install': False, +} diff --git a/app_product_superbar/hooks.py b/app_product_superbar/hooks.py new file mode 100644 index 00000000..10ec1e29 --- /dev/null +++ b/app_product_superbar/hooks.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- + +# Created on 2018-10-12 +# author: 欧度智能,https://www.odooai.cn +# email: 300883@qq.com +# resource of odooai +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +# Odoo在线中文用户手册(长期更新) +# https://www.odooai.cn/documentation/user/10.0/zh_CN/index.html + +# Odoo10离线中文用户手册下载 +# https://www.odooai.cn/odoo10_user_manual_document_offline/ +# Odoo10离线开发手册下载-含python教程,jquery参考,Jinja2模板,PostgresSQL参考(odoo开发必备) +# https://www.odooai.cn/odoo10_developer_document_offline/ +# description: + +def post_init_hook(env): + pass + # cr.execute("") diff --git a/app_product_superbar/i18n/zh_CN.po b/app_product_superbar/i18n/zh_CN.po new file mode 100644 index 00000000..f1e36e3e --- /dev/null +++ b/app_product_superbar/i18n/zh_CN.po @@ -0,0 +1,14 @@ +# Translation of Odoo Server. +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-01-08 14:28+0000\n" +"PO-Revision-Date: 2018-01-08 14:28+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" diff --git a/app_product_superbar/models/__init__.py b/app_product_superbar/models/__init__.py new file mode 100644 index 00000000..cfc06edc --- /dev/null +++ b/app_product_superbar/models/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- + +# from . import product_category + diff --git a/app_product_superbar/models/product_category.py b/app_product_superbar/models/product_category.py new file mode 100644 index 00000000..4ac3d047 --- /dev/null +++ b/app_product_superbar/models/product_category.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- + +# Created on 2017-11-28 +# author: 欧度智能,https://www.odooai.cn +# email: 300883@qq.com +# resource of odooai +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). + +# Odoo在线中文用户手册(长期更新) +# https://www.odooai.cn/documentation/user/10.0/zh_CN/index.html + +# Odoo10离线中文用户手册下载 +# https://www.odooai.cn/odoo10_user_manual_document_offline/ +# Odoo10离线开发手册下载-含python教程,jquery参考,Jinja2模板,PostgresSQL参考(odoo开发必备) +# https://www.odooai.cn/odoo10_developer_document_offline/ +# description: + +from odoo import api, fields, models, exceptions, _ + +class ProductCategory(models.Model): + _inherit = 'product.category' + + # 更新 complete_name 算法,当有context: show_short =1 时,只显示短名 + def name_get(self): + if self._context.get('show_short_category'): + new_res = [] + for category in self: + name = category.name + new_res.append((category.id, name)) + return new_res + else: + return super(ProductCategory, self).name_get() diff --git a/app_product_superbar/report/__init__.py b/app_product_superbar/report/__init__.py new file mode 100644 index 00000000..633f8661 --- /dev/null +++ b/app_product_superbar/report/__init__.py @@ -0,0 +1,2 @@ +# -*- coding: utf-8 -*- + diff --git a/app_product_superbar/static/description/banner.png b/app_product_superbar/static/description/banner.png new file mode 100644 index 00000000..e3491918 Binary files /dev/null and b/app_product_superbar/static/description/banner.png differ diff --git a/app_product_superbar/static/description/icon.png b/app_product_superbar/static/description/icon.png new file mode 100644 index 00000000..23ac0bd7 Binary files /dev/null and b/app_product_superbar/static/description/icon.png differ diff --git a/app_product_superbar/static/description/index.html b/app_product_superbar/static/description/index.html new file mode 100644 index 00000000..d90e4df1 --- /dev/null +++ b/app_product_superbar/static/description/index.html @@ -0,0 +1,505 @@ + + + +
+

Product Advance search, Product addon for Superbar

+

Free to use. Get extra paid Apps for more powerful.

+

Advance quick search for various field in all odoo app.Support list, kanban, pivot, graph, search more views.

+
+ + + +
+

+ - Get + app_web_super + for more Features - +

+
+
+
+
+
+
+ +
+ 1 +
+

Quick Advance Search and navigator for all app data.

+

30+ free odoo app search in box.

+
+
+ 2 +
+

Quick search in tree list header. 

+

Date range, Datetime, selection, number supported.

+
+
+
+ 3 +
+

Advance search sidebar for many2one, many2many field.

+

m2o search, m2m search for multi select.

+
+
+ 4 +
+

Advance siderbar for date range search, datetime search.

+

Extra for boolean search, selection search, number search.

+
+ + +
+
+
+
+ +
+ 5 +
+

Search sidebar for list, kanban.

+

Add more pivot, graph views than origin odoo.

+
+
+ 6 +
+

Support navigate in search more.

+

Quick filter and search for m2o or m2m field.

+
+
+ 7 +
+

Easy customize for any app. any module. 

+

Extra param for searchpanel. view_types, class, name_field, icon

+
+
+
+ 8 +
+

All app Advance search Out-of-Box.

+

Product, CRM, Sales, Purchase, MRP, Stock, Accounting, HR, Project, Etc.

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

- Demo Video -

+
+
+
+
+
+
+
+ +
+


+
+
+ Click above to Play. or go + Youtube Video of odoo Advance Search Superbar +
+
+

Demo Gif Animation if you can not get video

+ +
+
+ + + +
+
+

- Feature Guide -

+
+
+
+
+
+ +
+
+

All in One Search

+

Quick Advance Search and navigator for all app data.

+
+ +
+

Quick search in tree list header.

+
+ +
+

Search sidebar for M2O M2M, date range, boolean search, selection search, number search.

+
+ +
+

Filter any data like product in search more windows

+
+ +
+
+
+

Product Search

+

Use in product and Category.

+
+ +
+

Filter product or any data in search more windows

+
+ +
+
+
+

Sale Search with list header

+
+ +
+

Sale Search with sidebar

+
+ +
+
+
+

Purchase Search with sidebar and list header

+
+ +
+

Vender Price Search

+
+ +
+

Purchase report Search

+
+ +
+
+
+

Stock Inventory Search

+
+ +
+

Operation Type Search

+
+ +
+

Lot Serial Search

+
+ +
+
+
+

CRM Search

+
+ +
+

Leads Report Search

+
+ +
+
+
+

MRP Search

+
+ +
+

Work Order

+
+ +
+
+
+

POS point of sale Search

+
+ +
+

POS Report

+
+ +
+
+
+

HR employee Search

+
+ +
+
+
+

Account Search

+
+ +
+

Customer Invoice, Vendor Bill, Journal Entries Search

+
+ +
+

Journal Item Search

+
+ +
+
+
+

Project Search

+
+ +
+

Task Report Search

+
+ +
+
+
+

Partner contacts Search

+
+ +
+
+
+

Admin Search

+

Menu Quick Search

+
+ +
+

Action Search

+
+ +
+

Report Search

+
+ +
+

Views Search

+
+ +
+

Attachment Search

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

Get + + free 20+ Free related apps. + +

+

Visit to get our [app_web_superbar] Demo

+

https://demo.odooapp.cn

+
+
+
+ Free download: + +
+
+ + +
+

- How to setup and use -

+

This app need no extra module. The price already included

+
+
+
+

+ 1. Buy and Install app_web_superbar. +

+

2. Easy use of superbar

+
+

Show superbar in list view.

+
+ +
+

Show superbar in kanban view.

+
+ +
+

Show superbar in pivot view.

+
+ +
+

Show superbar in graph view.

+
+ +
+
+

3. If you want to customize, Use follow param to setup widget

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

Technical Help & Support

+
+
+
+

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

+ + odoo@china.com +

+ Via QQ: 300883 (App user would not get QQ or any other IM support. Only for odoo project customize.)

+ + 300883@qq.com +
+
+

Visit our website for more support.

+

https://www.odooai.cn

+
+
+
+
+ + diff --git a/app_product_superbar/views/product_attribute_value_views.xml b/app_product_superbar/views/product_attribute_value_views.xml new file mode 100644 index 00000000..c982c3c0 --- /dev/null +++ b/app_product_superbar/views/product_attribute_value_views.xml @@ -0,0 +1,43 @@ + + + + + product.attribute.value.tree + product.attribute.value + + + + + + + + + + + + + app.product.attribute.value.search + product.attribute.value + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app_product_superbar/views/product_category_views.xml b/app_product_superbar/views/product_category_views.xml new file mode 100644 index 00000000..c5ba173c --- /dev/null +++ b/app_product_superbar/views/product_category_views.xml @@ -0,0 +1,16 @@ + + + + app.product.category.search + product.category + + + + + + + + + + + \ No newline at end of file diff --git a/app_product_superbar/views/product_template_views.xml b/app_product_superbar/views/product_template_views.xml new file mode 100644 index 00000000..a9984f35 --- /dev/null +++ b/app_product_superbar/views/product_template_views.xml @@ -0,0 +1,19 @@ + + + + + app.product.template.search + product.template + + + + + + + + + + + + + \ No newline at end of file