This commit is contained in:
ivan deng
2018-10-09 18:22:19 +08:00
parent a1432367eb
commit d897f41ac1
9 changed files with 0 additions and 133 deletions

View File

@@ -1,2 +0,0 @@
# -*- coding: utf-8 -*-
from . import models

View File

@@ -1,68 +0,0 @@
# -*- 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',
'views/temp.xml',
],
'demo': [
],
'test': [
],
'css': [
],
'js': [
],
'images': [
],
'post_load': None,
'post_init_hook': None,
'installable': True,
'application': True,
'auto_install': False,
}

View File

@@ -1,2 +0,0 @@
from . import product

View File

@@ -1,13 +0,0 @@
# Author: Damien Crier
# Copyright 2017 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class ProductTemplate(models.Model):
_inherit = 'product.template'
colorpicker = fields.Char(
string="Color Picker",
)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 207 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

View File

@@ -1,13 +0,0 @@
<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

@@ -1,20 +0,0 @@
<?xml version="1.0"?>
<odoo>
<record id="product_template_search_view_ztree" model="ir.ui.view">
<field name="name">product.template.search.ztree</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_search_view" />
<field name="arch" type="xml">
<xpath expr="//search" position="attributes">
<attribute name="string">hello1</attribute>
<attribute name="ztree_search">1</attribute>
<attribute name="ztree_field">categ_id</attribute>
<attribute name="ztree_model">product.category</attribute>
<attribute name="ztree_domain"></attribute>
<attribute name="ztree_parent_key">parent_id</attribute>
<attribute name="ztree_position">right</attribute>
<attribute name="ztitle_search">title s</attribute>
</xpath>
</field>
</record>
</odoo>

View File

@@ -1,15 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="product_template_subcontracted_service_view_form" model="ir.ui.view">
<field name="name">product_template_subcontracted_service_view_form</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_form_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='type']" position="after">
<field name="colorpicker" widget="colorpicker" attr1="test"/>
</xpath>
</field>
</record>
</odoo>