mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
init app_advance_search
This commit is contained in:
7
app_product_advance_search_ztree/__init__.py
Normal file
7
app_product_advance_search_ztree/__init__.py
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||||
67
app_product_advance_search_ztree/__manifest__.py
Normal file
67
app_product_advance_search_ztree/__manifest__.py
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
##############################################################################
|
||||||
|
#
|
||||||
|
# odtree
|
||||||
|
# author:15251908@qq.com (openliu)
|
||||||
|
# license:'LGPL-3
|
||||||
|
#
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
# Created on 2018-09-25
|
||||||
|
# author: 广州尚鹏,http://www.sunpop.cn
|
||||||
|
# email: 300883@qq.com
|
||||||
|
# resource of Sunpop
|
||||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
|
# Odoo在线中文用户手册(长期更新)
|
||||||
|
# http://www.sunpop.cn/documentation/user/10.0/zh_CN/index.html
|
||||||
|
|
||||||
|
# Odoo10离线中文用户手册下载
|
||||||
|
# http://www.sunpop.cn/odoo10_user_manual_document_offline/
|
||||||
|
# Odoo10离线开发手册下载-含python教程,jquery参考,Jinja2模板,PostgresSQL参考(odoo开发必备)
|
||||||
|
# http://www.sunpop.cn/odoo10_developer_document_offline/
|
||||||
|
# description:
|
||||||
|
|
||||||
|
{
|
||||||
|
'name': 'Product Advance search with category parent tree, zTree',
|
||||||
|
'version': '11.0.9.29',
|
||||||
|
'author': 'Sunpop.cn',
|
||||||
|
'category': 'Sales',
|
||||||
|
'website': 'http://www.sunpop.cn',
|
||||||
|
'license': 'LGPL-3',
|
||||||
|
'sequence': 2,
|
||||||
|
'summary': """
|
||||||
|
Advance search with real parent tree Structure, ListView or Kanban View ,
|
||||||
|
eg: Product category tree ,Department tree
|
||||||
|
""",
|
||||||
|
'description': """
|
||||||
|
Advance search with real parent tree, ListView or KanbanView ,
|
||||||
|
eg: Product category tree ,Department tree
|
||||||
|
超级方便的产品查询,可以快速按产品目录过滤。
|
||||||
|
""",
|
||||||
|
'price': 98.00,
|
||||||
|
'currency': 'EUR',
|
||||||
|
'depends': [
|
||||||
|
'app_web_search_advance_ztree', 'sale_management',
|
||||||
|
],
|
||||||
|
'images': ['static/description/banner.png'],
|
||||||
|
'data': [
|
||||||
|
'views/product_views.xml',
|
||||||
|
],
|
||||||
|
'demo': [
|
||||||
|
],
|
||||||
|
'test': [
|
||||||
|
],
|
||||||
|
'css': [
|
||||||
|
],
|
||||||
|
'js': [
|
||||||
|
],
|
||||||
|
'images': [
|
||||||
|
],
|
||||||
|
'post_load': None,
|
||||||
|
'post_init_hook': None,
|
||||||
|
'installable': True,
|
||||||
|
'application': True,
|
||||||
|
'auto_install': False,
|
||||||
|
}
|
||||||
|
|
||||||
BIN
app_product_advance_search_ztree/static/description/demo.jpg
Normal file
BIN
app_product_advance_search_ztree/static/description/demo.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 207 KiB |
BIN
app_product_advance_search_ztree/static/description/icon.png
Normal file
BIN
app_product_advance_search_ztree/static/description/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.7 KiB |
@@ -0,0 +1,13 @@
|
|||||||
|
<section class="oe_container">
|
||||||
|
<div class="oe_row oe_spaced">
|
||||||
|
<h2 class="oe_slogan" style="color:#875A7B;">Product Category Tree</h2>
|
||||||
|
<div class="oe_span12">
|
||||||
|
<div class="oe_demo oe_picture oe_screenshot">
|
||||||
|
<img src="demo.jpg">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="oe_container oe_separator">
|
||||||
|
</section>
|
||||||
30
app_product_advance_search_ztree/views/product_views.xml
Normal file
30
app_product_advance_search_ztree/views/product_views.xml
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<odoo>
|
||||||
|
|
||||||
|
<record id="product_template_tree_view_withcateg" model="ir.ui.view">
|
||||||
|
<field name="name">product.template.product.tree</field>
|
||||||
|
<field name="model">product.template</field>
|
||||||
|
<field name="inherit_id" ref="product.product_template_tree_view" />
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<xpath expr="//tree" position="attributes">
|
||||||
|
<attribute name="ztree_field">categ_id</attribute>
|
||||||
|
<attribute name="ztree_model">product.category</attribute>
|
||||||
|
<attribute name="ztree_parent_key">parent_id</attribute>
|
||||||
|
<attribute name="ztree_position">right</attribute>
|
||||||
|
</xpath>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
<record id="product_template_kanban_view_withcateg" model="ir.ui.view">
|
||||||
|
<field name="name">Product.template.product.kanban</field>
|
||||||
|
<field name="model">product.template</field>
|
||||||
|
<field name="inherit_id" ref="product.product_template_kanban_view" />
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<xpath expr="//kanban" position="attributes">
|
||||||
|
<attribute name="ztree_field">categ_id</attribute>
|
||||||
|
<attribute name="ztree_model">product.category</attribute>
|
||||||
|
<attribute name="ztree_parent_key">parent_id</attribute>
|
||||||
|
</xpath>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
</odoo>
|
||||||
Reference in New Issue
Block a user