init app_advance_search

This commit is contained in:
ivan deng
2018-09-25 03:44:50 +08:00
parent 61b5f0bf17
commit aaf6430993
6 changed files with 117 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
# -*- coding: utf-8 -*-
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View 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,
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

View File

@@ -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>

View 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>