ztree zchart mods 18
4
app_account_ztree/__init__.py
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from . import models
|
||||||
|
from .hooks import post_init_hook
|
||||||
56
app_account_ztree/__manifest__.py
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
# Created on 2018-08-15
|
||||||
|
# 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:
|
||||||
|
|
||||||
|
{
|
||||||
|
'name': "App Account Multi Level Chart, parent children tree",
|
||||||
|
'version': '18.0.24.12.09',
|
||||||
|
'author': 'odooai.cn',
|
||||||
|
'category': 'Extra tools',
|
||||||
|
'website': 'https://www.odooai.cn',
|
||||||
|
'live_test_url': 'https://demo.odooapp.cn',
|
||||||
|
'license': 'LGPL-3',
|
||||||
|
'sequence': 2,
|
||||||
|
'summary': """
|
||||||
|
Use for parent children tree list select navigator. Multi Level Account Chart tree.
|
||||||
|
ztree widget.
|
||||||
|
""",
|
||||||
|
'description': """
|
||||||
|
zTree widget.
|
||||||
|
Advance search with real parent children tree, ListView or KanbanView ,
|
||||||
|
eg: Account Chart tree, Product category tree,Department tree, stock location tree.
|
||||||
|
超级方便的查询,树状视图。
|
||||||
|
""",
|
||||||
|
'price': 0.00,
|
||||||
|
'currency': 'EUR',
|
||||||
|
'depends': [
|
||||||
|
'account',
|
||||||
|
'l10n_cn_standard_latest',
|
||||||
|
],
|
||||||
|
'images': ['static/description/banner.gif'],
|
||||||
|
'data': [
|
||||||
|
'views/account_account_views.xml',
|
||||||
|
],
|
||||||
|
'demo': [
|
||||||
|
],
|
||||||
|
'test': [
|
||||||
|
],
|
||||||
|
'post_load': None,
|
||||||
|
'post_init_hook': 'post_init_hook',
|
||||||
|
'installable': True,
|
||||||
|
'application': True,
|
||||||
|
'auto_install': False,
|
||||||
|
}
|
||||||
20
app_account_ztree/hooks.py
Normal file
@@ -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("")
|
||||||
14
app_account_ztree/i18n/zh_CN.po
Normal file
@@ -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"
|
||||||
1
app_account_ztree/models/__init__.py
Normal file
@@ -0,0 +1 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
1
app_account_ztree/report/__init__.py
Normal file
@@ -0,0 +1 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
0
app_account_ztree/static/description/banner.gif
Normal file
BIN
app_account_ztree/static/description/demo1.jpg
Normal file
|
After Width: | Height: | Size: 48 KiB |
BIN
app_account_ztree/static/description/demo11.jpg
Normal file
|
After Width: | Height: | Size: 100 KiB |
BIN
app_account_ztree/static/description/demo12.jpg
Normal file
|
After Width: | Height: | Size: 98 KiB |
BIN
app_account_ztree/static/description/demo2.jpg
Normal file
|
After Width: | Height: | Size: 42 KiB |
BIN
app_account_ztree/static/description/demo3.jpg
Normal file
|
After Width: | Height: | Size: 33 KiB |
BIN
app_account_ztree/static/description/demo4.jpg
Normal file
|
After Width: | Height: | Size: 60 KiB |
BIN
app_account_ztree/static/description/demo5.jpg
Normal file
|
After Width: | Height: | Size: 62 KiB |
BIN
app_account_ztree/static/description/icon.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
181
app_account_ztree/static/description/index.html
Normal file
@@ -0,0 +1,181 @@
|
|||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced" style="max-width: 95%;">
|
||||||
|
<h2 class="oe_slogan" style="color:#875A7B;">App ztree widget, for parent children tree list. Demo for hr department employee</h2>
|
||||||
|
<h3 class="oe_slogan">Very useful for parent child relationship, like product category, stock location, hr department</h3>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced">
|
||||||
|
<div class="row">
|
||||||
|
<div class="alert alert-info" style="padding:8px;font-weight: 300; font-size: 20px;">
|
||||||
|
<i class="fa fa-hand-o-right"></i><b> Key features: </b>
|
||||||
|
<ul class="list-unstyled">
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-check-square-o text-primary"></i>
|
||||||
|
Easy to make custom parent children tree.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-check-square-o text-primary"></i>
|
||||||
|
Free to Use in product category.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-check-square-o text-primary"></i>
|
||||||
|
Free to Use in stock location.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-check-square-o text-primary"></i>
|
||||||
|
Free to Use in hr department, employee.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-check-square-o text-primary"></i>
|
||||||
|
It's a widget, you can use it in anywhere in odoo.
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="alert alert-info" style="padding:8px;font-weight: 300; font-size: 20px;">
|
||||||
|
<i class="fa fa-hand-o-right"></i>
|
||||||
|
<b>
|
||||||
|
<a href="http://www.odoo.com/apps/modules/18.0/app_web_superbar/" target="_blank" class="text-danger">
|
||||||
|
Extend features. superbar advance search navigator
|
||||||
|
</a>
|
||||||
|
</b>
|
||||||
|
<ul class="list-unstyled">
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-check-square-o text-primary"></i>
|
||||||
|
Easy to navigate product, employee in tree or kanban view.
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="alert alert-info" style="padding:8px;font-weight: 300; font-size: 20px;">
|
||||||
|
<i class="fa fa-hand-o-right"></i><b>Get relate Module </b>
|
||||||
|
<ul class="list-unstyled">
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-link text-primary"></i>
|
||||||
|
<a href="http://www.odoo.com/apps/modules/18.0/app_web_widget_ztree/" target="_blank" class="text-danger">zTree widget (must need to use in following demo).</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-link text-primary"></i>
|
||||||
|
<a href="http://www.odoo.com/apps/modules/18.0/app_product_ztree/" target="_blank">Product and category.</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-link text-primary"></i>
|
||||||
|
<a href="http://www.odoo.com/apps/modules/18.0/app_stock_ztree/" target="_blank">Stock and Location.</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-link text-primary"></i>
|
||||||
|
<a href="http://www.odoo.com/apps/modules/18.0/app_hr_ztree/" target="_blank">hr department and employee.</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced">
|
||||||
|
<h4 class="oe_slogan">Use in hr department.</h4>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="demo4.jpg">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced">
|
||||||
|
<h4 class="oe_slogan">Use in hr employee.</h4>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="demo5.jpg">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced">
|
||||||
|
<h4 class="oe_slogan">Use in product.</h4>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="demo2.jpg">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced">
|
||||||
|
<h4 class="oe_slogan">Free to Use in product category.</h4>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="demo1.jpg">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced">
|
||||||
|
<h4 class="oe_slogan">Free to Use in stock location.</h4>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="demo3.jpg">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced">
|
||||||
|
<h2> </h2>
|
||||||
|
<h2 class="bg-warning text-center pt8 pb8 mt16 mb16">(!Need extra module and pay, release soon)Easy to navigator.</h2>
|
||||||
|
<h4 class="oe_slogan">Product, employee in kanban view</h4>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="demo11.jpg">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced">
|
||||||
|
<h4 class="oe_slogan">(!Need extra module and pay, release soon)List view</h4>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="demo12.jpg">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced">
|
||||||
|
<h4 class="oe_slogan">Easy to setup just use widget='widget_select'. like this</h4>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="setup1.jpg">
|
||||||
|
</div>
|
||||||
|
<h2><br/> Use follow param to setup widget:<br/></h2>
|
||||||
|
<h4>ztree_parent_key: --the key field of parent children relation.</h4>
|
||||||
|
<h4>ztree_expend_level: --how many level to expend the tree for initialize. Default is 2</h4>
|
||||||
|
<h4>limit: --how many record to show ztree. Default is 16</h4>
|
||||||
|
<h4>order: --the field to order by</h4>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section class="container oe_dark">
|
||||||
|
<div class="oe_row oe_spaced text-center">
|
||||||
|
<div class="row">
|
||||||
|
<h2 class="oe_slogan">Technical Help & Support</h2>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-12 pad0">
|
||||||
|
<div class="oe_mt16">
|
||||||
|
<p><h4>
|
||||||
|
For any type of technical help & support requests, Feel free to contact us</h4></p>
|
||||||
|
<a style="background: #002e5a none repeat scroll 0% 0%; color: rgb(255, 255, 255);position: relative; overflow: hidden;"
|
||||||
|
class="btn btn-warning btn-lg" rel="nofollow" href="mailto:odoo@china.com"><span
|
||||||
|
style="height: 354px; width: 354px; top: -147.433px; left: -6.93335px;" class="o_ripple"></span>
|
||||||
|
<i class="fa fa-envelope"></i> odoo@china.com</a>
|
||||||
|
<p><h4>
|
||||||
|
Via QQ: 300883 (App user would not get QQ or any other IM support. Only for odoo project customize.)</h4></p>
|
||||||
|
<a style="background: #002e5a none repeat scroll 0% 0%; color: rgb(255, 255, 255);position: relative; overflow: hidden;"
|
||||||
|
class="btn btn-warning btn-lg" rel="nofollow" href="mailto:300883@qq.com"><span
|
||||||
|
style="height: 354px; width: 354px; top: -147.433px; left: -6.93335px;" class="o_ripple"></span>
|
||||||
|
<i class="fa fa-envelope"></i> 300883@qq.com</a>
|
||||||
|
</div>
|
||||||
|
<div class="oe_mt16">
|
||||||
|
<h4>
|
||||||
|
Visit our website for more support.</h4>
|
||||||
|
<h4>https://www.odooai.cn</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
BIN
app_account_ztree/static/description/setup1.jpg
Normal file
|
After Width: | Height: | Size: 47 KiB |
BIN
app_account_ztree/static/img/icon_sunpop.png
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
app_account_ztree/static/img/logo_sunpop.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
15
app_account_ztree/views/account_account_views.xml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<odoo>
|
||||||
|
<data>
|
||||||
|
<!-- hr -->
|
||||||
|
<record id="app_view_account_form" model="ir.ui.view">
|
||||||
|
<field name="name">app.account.account.form</field>
|
||||||
|
<field name="model">account.account</field>
|
||||||
|
<field name="inherit_id" ref="account.view_account_form"/>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<xpath expr="//field[@name='parent_id']" position="attributes">
|
||||||
|
<attribute name="widget">ztree_select</attribute>
|
||||||
|
</xpath>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
</data>
|
||||||
|
</odoo>
|
||||||
3
app_base_company_zchart/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from . import models
|
||||||
85
app_base_company_zchart/__manifest__.py
Normal file
@@ -0,0 +1,85 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
# Created on 2023-10-06
|
||||||
|
# author: 欧度智能,https://www.odooai.cn
|
||||||
|
# email: 300883@qq.com
|
||||||
|
# Copyright (C) 2009~2024 odooAi.cn
|
||||||
|
|
||||||
|
# Odoo16在线用户手册(长期更新)
|
||||||
|
# https://www.odooai.cn/documentation/16.0/zh_CN/index.html
|
||||||
|
|
||||||
|
# Odoo16在线开发者手册(长期更新)
|
||||||
|
# https://www.odooai.cn/documentation/16.0/zh_CN/developer.html
|
||||||
|
|
||||||
|
# 行业应用说明,应该是带 Industry 的就会放入
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
# Copyright (C) 2009-TODAY odooAi.cn Ltd. https://www.odooai.cn
|
||||||
|
# Author: Ivan Deng,300883@qq.com
|
||||||
|
# You can modify it under the terms of the GNU LESSER
|
||||||
|
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
|
||||||
|
# See <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
# It is forbidden to publish, distribute, sublicense, or sell copies
|
||||||
|
# of the Software or modified copies of the Software.
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
{
|
||||||
|
'name': 'Group Company Multi Level Chart Hierarchy, 集团公司多层级结构图zChart',
|
||||||
|
'version': '18.0.24.12.09',
|
||||||
|
'author': 'odooai.cn',
|
||||||
|
'category': 'Extra tools',
|
||||||
|
'website': 'https://www.odooai.cn',
|
||||||
|
'live_test_url': 'https://demo.odooapp.cn',
|
||||||
|
'license': 'LGPL-3',
|
||||||
|
'sequence': 2,
|
||||||
|
'price': 0.00,
|
||||||
|
'currency': 'EUR',
|
||||||
|
'images': ['static/description/banner.png'],
|
||||||
|
'summary': '''
|
||||||
|
Group Company Chart Hierarchy with zchart Widget. Hierarchy Chart, Hierarchy Tree for multi level Parent Children relation tree.
|
||||||
|
Free for Multi company Hierarchy chart category Hierarchy chart, stock Hierarchy chart. account chart. user multi level chart.
|
||||||
|
''',
|
||||||
|
'description': '''
|
||||||
|
Need extra paid apps https://www.odoo.com/apps/modules/16.0/app_web_widget_ztree/
|
||||||
|
This module extend to show a Hierarchy chart
|
||||||
|
1. app of odooapp.cn
|
||||||
|
2.
|
||||||
|
3.
|
||||||
|
4.
|
||||||
|
5.
|
||||||
|
6.
|
||||||
|
11. Multi-language Support. Multi-Company Support.
|
||||||
|
12. Support Odoo 18,17,16,15,14,13,12, Enterprise and Community and odoo.sh Edition.
|
||||||
|
13. Full Open Source.
|
||||||
|
========== 中文说明
|
||||||
|
1.
|
||||||
|
2.
|
||||||
|
3.
|
||||||
|
4.
|
||||||
|
11. 多语言支持,多公司支持
|
||||||
|
12. Odoo 18,17,16,15,14,13,12, 企业版,社区版,在线SaaS.sh版,等全版本支持
|
||||||
|
13. 代码完全开源
|
||||||
|
''',
|
||||||
|
'depends': [
|
||||||
|
'app_common',
|
||||||
|
# 'website',
|
||||||
|
],
|
||||||
|
'data': [
|
||||||
|
'security/res_group.xml',
|
||||||
|
'views/res_company_views.xml',
|
||||||
|
],
|
||||||
|
'assets': {
|
||||||
|
'web.assets_frontend': [
|
||||||
|
# 'app_/static/src/scss/style.scss',
|
||||||
|
],
|
||||||
|
'web.assets_backend': [
|
||||||
|
# 'app_/static/src/js/*.js',
|
||||||
|
],
|
||||||
|
},
|
||||||
|
'demo': [
|
||||||
|
],
|
||||||
|
'installable': True,
|
||||||
|
'application': True,
|
||||||
|
'auto_install': False,
|
||||||
|
}
|
||||||
1
app_base_company_zchart/controllers/__init__.py
Normal file
@@ -0,0 +1 @@
|
|||||||
|
# -*- coding: utf-8 -*
|
||||||
26
app_base_company_zchart/i18n/zh_CN.po
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
# Translation of Odoo Server.
|
||||||
|
# This file contains the translation of the following modules:
|
||||||
|
# * app_base_company_zchart
|
||||||
|
#
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: Odoo Server 16.0-20231112\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2024-05-06 09:45+0000\n"
|
||||||
|
"PO-Revision-Date: 2024-05-06 09:45+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"
|
||||||
|
|
||||||
|
#. module: app_base_company_zchart
|
||||||
|
#: model:ir.model,name:app_base_company_zchart.model_res_company
|
||||||
|
msgid "Companies"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: app_base_company_zchart
|
||||||
|
#: model_terms:ir.ui.view,arch_db:app_base_company_zchart.app_view_company_form
|
||||||
|
msgid "Group Company Chart"
|
||||||
|
msgstr "集团公司架构"
|
||||||
3
app_base_company_zchart/models/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from . import res_company
|
||||||
18
app_base_company_zchart/models/res_company.py
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from odoo import api, fields, models, tools, _
|
||||||
|
|
||||||
|
|
||||||
|
class Company(models.Model):
|
||||||
|
_inherit = "res.company"
|
||||||
|
|
||||||
|
_parent_store = True
|
||||||
|
parent_path = fields.Char(index=True)
|
||||||
|
|
||||||
|
# 注意,res.partner 有 parent_id 和 child_ids
|
||||||
|
# all_child_ids = fields.One2many('res.company', string='All Child Companies', compute=False)
|
||||||
|
#
|
||||||
|
# @api.depends('parent_id', 'child_ids')
|
||||||
|
# def _compute_all_child_ids(self):
|
||||||
|
# pass
|
||||||
|
#
|
||||||
13
app_base_company_zchart/security/res_group.xml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<odoo>
|
||||||
|
<data noupdate="0">
|
||||||
|
<!--系统设置默认值,每次更新模块时要更新-->
|
||||||
|
<!--设置 多公司 【启用】-->
|
||||||
|
<record id="base.group_user" model="res.groups">
|
||||||
|
<field name="implied_ids"
|
||||||
|
eval="[
|
||||||
|
(3, ref('base.group_multi_company')),
|
||||||
|
]"/>
|
||||||
|
</record>
|
||||||
|
</data>
|
||||||
|
</odoo>
|
||||||
BIN
app_base_company_zchart/static/description/banner.gif
Normal file
|
After Width: | Height: | Size: 73 KiB |
BIN
app_base_company_zchart/static/description/banner.png
Normal file
|
After Width: | Height: | Size: 89 KiB |
BIN
app_base_company_zchart/static/description/banner1.png
Normal file
|
After Width: | Height: | Size: 200 KiB |
BIN
app_base_company_zchart/static/description/demo1.jpg
Normal file
|
After Width: | Height: | Size: 109 KiB |
BIN
app_base_company_zchart/static/description/icon.png
Normal file
|
After Width: | Height: | Size: 44 KiB |
BIN
app_base_company_zchart/static/description/icon1.png
Normal file
|
After Width: | Height: | Size: 42 KiB |
429
app_base_company_zchart/static/description/index.html
Normal file
@@ -0,0 +1,429 @@
|
|||||||
|
<!--
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
##############################################################################
|
||||||
|
# Copyright (C) 2009~2024 odooAi.cn
|
||||||
|
##############################################################################
|
||||||
|
-->
|
||||||
|
<html>
|
||||||
|
<!-- begin title-->
|
||||||
|
<section class="oe_container container o_cc o_cc2">
|
||||||
|
<h2 class="text-center bg-warning text-white pt24 pb24">Odoo Module Template. App sample with widget. </h2>
|
||||||
|
<h3 class="text-center">Odoo开发规范模板,Widget清单与使用样例</h3>
|
||||||
|
<h4 class="text-center">Sample Description of app. video and brief and detail demo snap and text</h4>
|
||||||
|
</section>
|
||||||
|
<!-- end title-->
|
||||||
|
|
||||||
|
<!-- begin video-->
|
||||||
|
<section class="s_text_block o_colored_level pt16 pb16">
|
||||||
|
<div class="container s_allow_columns">
|
||||||
|
<p class="text-center bg-info text-white pt16 pb16">Just Clone this sample to your name to quick create your odoo addons</p>
|
||||||
|
<h2 class="text-center bg-info text-white pt16 pb16">- Sample Local Video. Change to your video -</h2>
|
||||||
|
</div>
|
||||||
|
<!-- local video-->
|
||||||
|
<div class="container">
|
||||||
|
<div class="row s_nb_column_fixed">
|
||||||
|
<div class="o_colored_level col-lg-12">
|
||||||
|
<video controls="controls" loop="1" preload="auto" muted autoplay src="odoo17.mp4" class="o_video" style="width: 100%; height: 100%;">
|
||||||
|
<source type="video/mp4" src="odoo17.mp4"/>
|
||||||
|
<a href="">
|
||||||
|
Download the demo video.
|
||||||
|
</a>
|
||||||
|
</video>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="oe_container container s_text_block pt24 pb24 o_colored_level" data-snippet="s_text_block" data-name="文本">
|
||||||
|
<!-- remote video-->
|
||||||
|
<div class="s_allow_columns container">
|
||||||
|
<div class="container s_allow_columns">
|
||||||
|
<h2 class="text-center bg-info text-white pt16 pb16">- Sample Video on youtube remote. Change to your video -</h2>
|
||||||
|
</div>
|
||||||
|
<div data-oe-expression="//www.youtube.com/embed/whnmkTWsQkQ?rel=0&autoplay=0" class="media_iframe_video">
|
||||||
|
<div class="css_editable_mode_display"></div>
|
||||||
|
<div class="media_iframe_video_size"></div>
|
||||||
|
<iframe src="//www.youtube.com/embed/whnmkTWsQkQ?rel=0&autoplay=1" frameborder="0" allowfullscreen="allowfullscreen"></iframe>
|
||||||
|
</div>
|
||||||
|
<p class="o_default_snippet_text"><br></p>
|
||||||
|
</div>
|
||||||
|
<div class="oe_row text-center">
|
||||||
|
<span>Click above Play. or go </span>
|
||||||
|
<a href="https://youtu.be/whnmkTWsQkQ" target="_blank" role="button" class="btn btn-link btn-lg">Youtube Video of odoo Advance Search Superbar</a>
|
||||||
|
</div>
|
||||||
|
<div class="oe_row text-center">
|
||||||
|
<p class="o_default_snippet_text">Demo Gif Animation if you can not get video</p>
|
||||||
|
<img class="oe_demo oe_screenshot img img-fluid" src="banner.gif">
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<!-- end video-->
|
||||||
|
|
||||||
|
<!-- begin grid features-->
|
||||||
|
<section class="oe_container container s_text_block o_colored_level pt16 pb16">
|
||||||
|
<h2 class="text-center bg-info text-white pt16 pb16">- Features -</h2>
|
||||||
|
</section>
|
||||||
|
<section class="s_features_grid pt24 pb24 o_colored_level" data-snippet="s_features_grid" data-name="Features Grid">
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-6 s_col_no_bgcolor pb24">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12 pt16 pb16 o_colored_level" data-name="Box" data-tilt-feature="">
|
||||||
|
<i class="fa bg-primary text-white s_features_grid_icon rounded fa-2x">1</i>
|
||||||
|
<div class="s_features_grid_content">
|
||||||
|
<h4 class="pt16">
|
||||||
|
A full Sample module app of odoo addons.
|
||||||
|
</h4>
|
||||||
|
<p>All the code, views, data ,banner, icon and description sample follow the odoo rule.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-12 pt16 pb16 o_colored_level" data-name="Box">
|
||||||
|
<i class="fa fa-2x rounded bg-primary text-white s_features_grid_icon">2</i>
|
||||||
|
<div class="s_features_grid_content">
|
||||||
|
<h4 class="pt16">
|
||||||
|
Sample manifest file.
|
||||||
|
</h4>
|
||||||
|
<p>Including structure and name and description etc, all field sample. Security xml and csv file for role group access rule. Follow most odoo rule follow </p>
|
||||||
|
<p>https://www.odooai.cn/documentation/16.0/contributing/development/coding_guidelines.html</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-12 pt16 pb16 o_colored_level" data-name="Box" data-tilt-feature="">
|
||||||
|
<i class="fa bg-primary text-white s_features_grid_icon rounded fa-2x">3</i>
|
||||||
|
<div class="s_features_grid_content">
|
||||||
|
<h4 class="pt16">
|
||||||
|
Sample .py models file
|
||||||
|
</h4>
|
||||||
|
<p>for new model and inherit model<br></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-12 pt16 pb16 o_colored_level" data-name="Box" data-tilt-feature="">
|
||||||
|
<i class="fa bg-primary text-white s_features_grid_icon rounded fa-2x">4</i>
|
||||||
|
<div class="s_features_grid_content">
|
||||||
|
<h4 class="pt16">
|
||||||
|
Sample .xml views file for models
|
||||||
|
</h4>
|
||||||
|
<p>Sample xml views file for models, with list, kanban, form, search<br></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-12 pt16 pb16 o_colored_level" data-name="Box" data-tilt-feature="">
|
||||||
|
<i class="fa bg-primary text-white s_features_grid_icon rounded fa-2x">5</i>
|
||||||
|
<div class="s_features_grid_content">
|
||||||
|
<h4 class="pt16">
|
||||||
|
Sample controllers file
|
||||||
|
</h4>
|
||||||
|
<p> for website data publish and api developer. including how inherit odoo portal home<br></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-6 s_col_no_bgcolor pb24">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12 pt16 pb16 o_colored_level" data-name="Box" data-tilt-feature="">
|
||||||
|
<i class="fa bg-primary text-white s_features_grid_icon rounded fa-2x">6</i>
|
||||||
|
<div class="s_features_grid_content">
|
||||||
|
<h4 class="pt16">
|
||||||
|
Sample report design file
|
||||||
|
</h4>
|
||||||
|
<p> .py file with how sql define. .xml file for graph and pivot</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-12 pt16 pb16 o_colored_level" data-name="Box" data-tilt-feature="">
|
||||||
|
<i class="fa fa-2x rounded bg-primary text-white s_features_grid_icon">7</i>
|
||||||
|
<div class="s_features_grid_content">
|
||||||
|
<h4 class="pt16">
|
||||||
|
Sample action and menu file
|
||||||
|
</h4>
|
||||||
|
<p>Root menu and menu group and action menu</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-12 pt16 pb16 o_colored_level" data-name="Box" data-tilt-feature="">
|
||||||
|
<i class="fa fa-2x rounded bg-primary text-white s_features_grid_icon">8</i>
|
||||||
|
<div class="s_features_grid_content">
|
||||||
|
<h4 class="pt16">
|
||||||
|
Ui misc sample
|
||||||
|
</h4>
|
||||||
|
<p>Alert like info and special field setup.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-12 pt16 pb16 o_colored_level" data-name="Box" data-tilt-feature="">
|
||||||
|
<i class="fa fa-2x rounded bg-primary text-white s_features_grid_icon">9</i>
|
||||||
|
<div class="s_features_grid_content">
|
||||||
|
<h4 class="pt16">
|
||||||
|
Odoo Widget sample
|
||||||
|
</h4>
|
||||||
|
<p>170+ widget list document and Frequently Used Sample.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-12 pt16 pb16 o_colored_level" data-name="Box" data-tilt-feature="">
|
||||||
|
<i class="fa fa-2x rounded bg-primary text-white s_features_grid_icon">10</i>
|
||||||
|
<div class="s_features_grid_content">
|
||||||
|
<h4 class="pt16">
|
||||||
|
Quick access odoo developer Tutorials online.
|
||||||
|
</h4>
|
||||||
|
<p>Document online for chinese and english. Fast visit in China.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-12 pt16 pb16 o_colored_level" data-name="Box" data-tilt-feature="">
|
||||||
|
<i class="fa fa-2x rounded bg-primary text-white s_features_grid_icon">11</i>
|
||||||
|
<div class="s_features_grid_content">
|
||||||
|
<h4 class="pt16">
|
||||||
|
Full Open Source.Multi-language Support. Multi-Company Support
|
||||||
|
</h4>
|
||||||
|
<p>Support Odoo 17,16,15,14,13,12, Enterprise and Community and odoo.sh Edition.</p>
|
||||||
|
<p>代码完全开源,多语言支持,多公司支持。Odoo 17,16,15,14,13,12, 企业版,社区版,在线SaaS.sh版,等全版本支持</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<!-- end grid features-->
|
||||||
|
|
||||||
|
<!-- begin snapshot-->
|
||||||
|
<!-- quick demo-->
|
||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced">
|
||||||
|
<h2 class="bg-warning text-center pt8 pb8 mt16 mb16">So Easy to navigator and search any data.</h2>
|
||||||
|
<h4 class="oe_slogan"> </h4>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src=".jpg"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- end quick demo-->
|
||||||
|
|
||||||
|
<section class="s_text_block o_colored_level pt16 pb16">
|
||||||
|
<div class="container s_allow_columns">
|
||||||
|
<h2 class="text-center bg-info text-white pt16 pb16">- Feature Guide -</h2>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section class="s_table_of_content pt24 pb24 o_cc o_cc1 o_colored_level" data-snippet="s_table_of_content" data-name="Table of Content">
|
||||||
|
<div class="container">
|
||||||
|
<div class="row s_nb_column_fixed">
|
||||||
|
<div class="col-lg-2 col-md-3 s_table_of_content_navbar_wrap s_table_of_content_navbar_sticky s_table_of_content_vertical_navbar d-print-none d-none d-lg-block o_not_editable o_cc o_cc1 o_colored_level"
|
||||||
|
data-name="Navbar">
|
||||||
|
<div class="s_table_of_content_navbar list-group o_no_link_popover" style="top: 82px; max-height: calc(100vh - 102px);">
|
||||||
|
<a href="#toc_01" class="table_of_content_link list-group-item list-group-item-action py-2 border-0 rounded-0 active">
|
||||||
|
A full Sample app
|
||||||
|
</a>
|
||||||
|
<a href="#toc_02" class="table_of_content_link list-group-item list-group-item-action py-2 border-0 rounded-0">
|
||||||
|
Sample manifest
|
||||||
|
</a>
|
||||||
|
<a href="#toc_03" class="table_of_content_link list-group-item list-group-item-action py-2 border-0 rounded-0">
|
||||||
|
Sample .py
|
||||||
|
</a>
|
||||||
|
<a href="#toc_04" class="table_of_content_link list-group-item list-group-item-action py-2 border-0 rounded-0">
|
||||||
|
Sample .xml
|
||||||
|
</a>
|
||||||
|
<a href="#toc_05" class="table_of_content_link list-group-item list-group-item-action py-2 border-0 rounded-0">
|
||||||
|
Sample controllers
|
||||||
|
</a>
|
||||||
|
<a href="#toc_06" class="table_of_content_link list-group-item list-group-item-action py-2 border-0 rounded-0">
|
||||||
|
Sample report
|
||||||
|
</a>
|
||||||
|
<a href="#toc_07" class="table_of_content_link list-group-item list-group-item-action py-2 border-0 rounded-0">
|
||||||
|
Sample action and menu
|
||||||
|
</a>
|
||||||
|
<a href="#toc_08" class="table_of_content_link list-group-item list-group-item-action py-2 border-0 rounded-0">
|
||||||
|
Ui misc sample
|
||||||
|
</a>
|
||||||
|
<a href="#toc_09" class="table_of_content_link list-group-item list-group-item-action py-2 border-0 rounded-0">
|
||||||
|
Odoo Widget sample
|
||||||
|
</a>
|
||||||
|
<a href="#toc_10" class="table_of_content_link list-group-item list-group-item-action py-2 border-0 rounded-0">
|
||||||
|
Quick developer Tutorials
|
||||||
|
</a>
|
||||||
|
<a href="#toc_11" class="table_of_content_link list-group-item list-group-item-action py-2 border-0 rounded-0">
|
||||||
|
Multi-language,Multi-Company
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-10 col-md9 s_table_of_content_main oe_structure oe_empty o_colored_level" data-name="Content">
|
||||||
|
<section class="pb16 o_colored_level" style="background-image: none;">
|
||||||
|
<h3 data-anchor="true" id="toc_01">
|
||||||
|
A full Sample module app of odoo addons.
|
||||||
|
</h3>
|
||||||
|
<h4 class="oe_slogan">All the code, views, data ,banner, icon and description sample follow the odoo rule.</h4>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="demo1.jpg">
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section class="pb16 o_colored_level" style="background-image: none;">
|
||||||
|
<h3 data-anchor="true" id="toc_02">
|
||||||
|
Sample manifest file.
|
||||||
|
</h3>
|
||||||
|
<h4 class="oe_slogan">Including structure and name and description etc, all field sample. </h4>
|
||||||
|
<p>Security xml and csv file for role group access rule.
|
||||||
|
Sample icon, banner, index.html, install/uninstall hooks.
|
||||||
|
Follow most odoo rule follow</p>
|
||||||
|
<p>https://www.odooai.cn/documentation/16.0/contributing/development/coding_guidelines.html</p>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="demo2.jpg">
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section class="pb16 o_colored_level" style="background-image: none;">
|
||||||
|
<h3 data-anchor="true" id="toc_03">
|
||||||
|
Sample .py models file, for new model and inherit model
|
||||||
|
</h3>
|
||||||
|
<p>Please comment the inherit .py file of product_template.py in produce odoo.</p>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="demo3.jpg">
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section class="pb16 o_colored_level" style="background-image: none;">
|
||||||
|
<h3 data-anchor="true" id="toc_04">
|
||||||
|
Sample .xml views file for models, with list, kanban, form, search
|
||||||
|
</h3>
|
||||||
|
<p>List</p>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="demo_list.jpg">
|
||||||
|
</div>
|
||||||
|
<p>Kanban</p>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="demo_kanban.jpg">
|
||||||
|
</div>
|
||||||
|
<p>Form</p>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="demo_form.jpg">
|
||||||
|
</div>
|
||||||
|
<p>Search</p>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="demo_search.jpg">
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section class="pb16 o_colored_level" style="background-image: none;">
|
||||||
|
<h3 data-anchor="true" id="toc_05">
|
||||||
|
Sample controllers file for website data publish and api developer
|
||||||
|
</h3>
|
||||||
|
<p>including how inherit odoo portal home.</p>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="demo_controler.jpg">
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section class="pb16 o_colored_level" style="background-image: none;">
|
||||||
|
<h3 data-anchor="true" id="toc_06">
|
||||||
|
Sample report design file.
|
||||||
|
</h3>
|
||||||
|
<p> .py file with how sql define.</p>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="demo_report.jpg">
|
||||||
|
</div>
|
||||||
|
<p> .xml file for graph and pivot.</p>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="demo_graph.jpg">
|
||||||
|
</div>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="demo_pivot.jpg">
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section class="pb16 o_colored_level" style="background-image: none;">
|
||||||
|
<h3 data-anchor="true" id="toc_07">
|
||||||
|
Sample action and menu file.
|
||||||
|
</h3>
|
||||||
|
<p>Root menu and menu group and action menu.</p>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="demo_menu.jpg">
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section class="pb16 o_colored_level" style="background-image: none;">
|
||||||
|
<h3 data-anchor="true" id="toc_08">
|
||||||
|
Ui misc sample. Alert like info and special field setup.
|
||||||
|
</h3>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="demo_ui.jpg">
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section class="pb16 o_colored_level" style="background-image: none;">
|
||||||
|
<h3 data-anchor="true" id="toc_09">
|
||||||
|
Odoo Widget sample.
|
||||||
|
</h3>
|
||||||
|
<p>170+ widget list document</p>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="demo_widget_list.jpg">
|
||||||
|
</div>
|
||||||
|
<p> Frequently Used Sample.</p>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="demo_widget_use.jpg">
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section class="pb16 o_colored_level" style="background-image: none;">
|
||||||
|
<h3 data-anchor="true" id="toc_10">
|
||||||
|
Quick access odoo developer Tutorials online.
|
||||||
|
</h3>
|
||||||
|
<p>Click alert info to visit. Document online for chinese and english. Fast visit in China.</p>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="demo10.jpg">
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<!-- end snapshot-->
|
||||||
|
|
||||||
|
<!-- begin free-->
|
||||||
|
<!-- end free-->
|
||||||
|
|
||||||
|
<!-- begin howto-->
|
||||||
|
<section class="oe_container container s_text_block o_colored_level pt16 pb16">
|
||||||
|
<h2 class="text-center bg-info text-white pt16 pb16">- How to setup and use -</h2>
|
||||||
|
<h3>This app need no extra module. The price already included</h3>
|
||||||
|
</section>
|
||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced">
|
||||||
|
<h4 class="pt16">
|
||||||
|
1. Buy and Install
|
||||||
|
</h4>
|
||||||
|
<h4 class="pt16">
|
||||||
|
2. Input the extra information
|
||||||
|
</h4>
|
||||||
|
<h4 class="pt16">
|
||||||
|
3. Enjoy and easy use
|
||||||
|
</h4>
|
||||||
|
<div class="row">
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="demo_use.jpg">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<h4 class="pt16">4. More information in our FAQ</h4>
|
||||||
|
<div class="row">
|
||||||
|
https://www.odooai.cn/faq
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<!-- end howto-->
|
||||||
|
|
||||||
|
<!-- begin upsell-->
|
||||||
|
<!-- end upsell-->
|
||||||
|
|
||||||
|
<!-- begin support-->
|
||||||
|
<section class="container oe_dark">
|
||||||
|
<div class="oe_row oe_spaced text-center">
|
||||||
|
<div class="row">
|
||||||
|
<h2 class="oe_slogan">Technical Help & Support</h2>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-12 pad0">
|
||||||
|
<div class="oe_mt16">
|
||||||
|
<p><h4 class="pt16">
|
||||||
|
For any type of technical help & support requests, Feel free to contact us</h4></p>
|
||||||
|
<a style="background: #002e5a none repeat scroll 0% 0%; color: rgb(255, 255, 255);position: relative; overflow: hidden;"
|
||||||
|
class="btn btn-warning btn-lg" rel="nofollow" href="mailto:odoo@china.com"><span
|
||||||
|
style="height: 354px; width: 354px; top: -147.433px; left: -6.93335px;" class="o_ripple"></span>
|
||||||
|
<i class="fa fa-envelope"></i> odoo@china.com</a>
|
||||||
|
<p><h4 class="pt16">
|
||||||
|
Via QQ: 300883 (App user would not get QQ or any other IM support. Only for odoo project customize.)</h4></p>
|
||||||
|
<a style="background: #002e5a none repeat scroll 0% 0%; color: rgb(255, 255, 255);position: relative; overflow: hidden;"
|
||||||
|
class="btn btn-warning btn-lg" rel="nofollow" href="mailto:300883@qq.com"><span
|
||||||
|
style="height: 354px; width: 354px; top: -147.433px; left: -6.93335px;" class="o_ripple"></span>
|
||||||
|
<i class="fa fa-envelope"></i> 300883@qq.com</a>
|
||||||
|
</div>
|
||||||
|
<div class="oe_mt16">
|
||||||
|
<h4 class="pt16">Visit our website for more support.</h4>
|
||||||
|
<h4 class="pt16">https://www.odooai.cn</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<!-- end support-->
|
||||||
|
</html>
|
||||||
BIN
app_base_company_zchart/static/description/qr.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
app_base_company_zchart/static/img/icon_odooai.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
app_base_company_zchart/static/img/icon_odooapp.png
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
app_base_company_zchart/static/img/logo_odooai.png
Normal file
|
After Width: | Height: | Size: 9.6 KiB |
0
app_base_company_zchart/static/src/js/odooai.cn
Normal file
0
app_base_company_zchart/static/src/scss/odooai.cn
Normal file
18
app_base_company_zchart/static/src/scss/style.scss
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
// scss sample, 样例navbar在下方的特殊处理
|
||||||
|
.o_web_client {
|
||||||
|
//userMenu
|
||||||
|
.o_burger_menu {
|
||||||
|
width: 80%;
|
||||||
|
.o_burger_menu_topbar {
|
||||||
|
height: var(--o-navbar-height);
|
||||||
|
}
|
||||||
|
&.flex-column {
|
||||||
|
flex-direction: column-reverse!important;
|
||||||
|
}
|
||||||
|
.oi:before, .fa:before, .dropdown-toggle {
|
||||||
|
font-size: 2em;
|
||||||
|
line-height: var(--o-navbar-height);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
0
app_base_company_zchart/static/src/xml/odooai.cn
Normal file
46
app_base_company_zchart/views/res_company_views.xml
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<odoo>
|
||||||
|
<data>
|
||||||
|
<record id="app_view_company_tree" model="ir.ui.view">
|
||||||
|
<field name="name">app.res.company.tree</field>
|
||||||
|
<field name="model">res.company</field>
|
||||||
|
<field name="inherit_id" ref="base.view_company_tree"/>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<xpath expr="//list" position="inside">
|
||||||
|
<field name="parent_id" optional="show"/>
|
||||||
|
</xpath>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
<record id="app_view_company_form" model="ir.ui.view">
|
||||||
|
<field name="name">app.res.company.form</field>
|
||||||
|
<field name="model">res.company</field>
|
||||||
|
<field name="inherit_id" ref="base.view_company_form"/>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<xpath expr="//field[@name='logo']" position="before">
|
||||||
|
<div id="o_node_container">
|
||||||
|
<div id="o_node_main">
|
||||||
|
<span id="add_image"/>
|
||||||
|
<span id="add_title"/>
|
||||||
|
<span id="add_notebook"/>
|
||||||
|
</div>
|
||||||
|
<div id="o_node_right">
|
||||||
|
<h4 class="o_chart_hierarchy_title mb16 mt0">Group Company Chart</h4>
|
||||||
|
<field name="child_ids" widget="ztree_chart" nolabel="1"/>
|
||||||
|
<field name="id" invisible="1"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</xpath>
|
||||||
|
<xpath expr="//span[@id='add_image']" position="after">
|
||||||
|
<xpath expr="//field[@name='logo']" position="move"/>
|
||||||
|
</xpath>
|
||||||
|
<xpath expr="//span[@id='add_title']" position="after">
|
||||||
|
<xpath expr="//div[hasclass('oe_title')]" position="move"/>
|
||||||
|
</xpath>
|
||||||
|
<xpath expr="//span[@id='add_notebook']" position="after">
|
||||||
|
<xpath expr="//notebook" position="move"/>
|
||||||
|
</xpath>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
</data>
|
||||||
|
</odoo>
|
||||||
4
app_hr_ztree/__init__.py
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from . import models
|
||||||
|
from .hooks import post_init_hook
|
||||||
67
app_hr_ztree/__manifest__.py
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
# Created on 2023-10-23
|
||||||
|
# author: 欧度智能,https://www.odooai.cn
|
||||||
|
# email: 300883@qq.com
|
||||||
|
# resource of odooai
|
||||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
|
# Odoo16在线用户手册(长期更新)
|
||||||
|
# https://www.odooai.cn/documentation/16.0/zh_CN/index.html
|
||||||
|
|
||||||
|
# Odoo16在线开发者手册(长期更新)
|
||||||
|
# https://www.odooai.cn/documentation/16.0/zh_CN/developer.html
|
||||||
|
|
||||||
|
# Odoo13在线用户手册(长期更新)
|
||||||
|
# https://www.odooai.cn/documentation/user/13.0/zh_CN/index.html
|
||||||
|
|
||||||
|
# Odoo13在线开发者手册(长期更新)
|
||||||
|
# https://www.odooai.cn/documentation/13.0/index.html
|
||||||
|
|
||||||
|
# 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 HR department ztree, parent children tree",
|
||||||
|
'version': '18.0.24.12.09',
|
||||||
|
'author': 'odooai.cn',
|
||||||
|
'category': 'Extra tools',
|
||||||
|
'website': 'https://www.odooai.cn',
|
||||||
|
'live_test_url': 'https://demo.odooapp.cn',
|
||||||
|
'license': 'LGPL-3',
|
||||||
|
'sequence': 2,
|
||||||
|
'summary': """
|
||||||
|
Use for parent children tree list select navigator. hr department employee tree.
|
||||||
|
ztree widget.
|
||||||
|
""",
|
||||||
|
'description': """
|
||||||
|
zTree widget.
|
||||||
|
Advance search with real parent children tree, ListView or KanbanView ,
|
||||||
|
eg: Product category tree ,Department tree, stock location tree.
|
||||||
|
超级方便的查询,树状视图。
|
||||||
|
""",
|
||||||
|
'price': 0.00,
|
||||||
|
'currency': 'EUR',
|
||||||
|
'depends': [
|
||||||
|
'hr',
|
||||||
|
],
|
||||||
|
'images': ['static/description/banner.gif'],
|
||||||
|
'data': [
|
||||||
|
'views/hr_views.xml',
|
||||||
|
],
|
||||||
|
'demo': [
|
||||||
|
],
|
||||||
|
'test': [
|
||||||
|
],
|
||||||
|
'post_load': None,
|
||||||
|
'post_init_hook': 'post_init_hook',
|
||||||
|
'installable': True,
|
||||||
|
'application': True,
|
||||||
|
'auto_install': False,
|
||||||
|
}
|
||||||
32
app_hr_ztree/hooks.py
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
# Created on 2018-10-12
|
||||||
|
# author: 欧度智能,https://www.odooai.cn
|
||||||
|
# email: 300883@qq.com
|
||||||
|
# resource of odooai
|
||||||
|
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
|
||||||
|
|
||||||
|
# Odoo16在线用户手册(长期更新)
|
||||||
|
# https://www.odooai.cn/documentation/16.0/zh_CN/index.html
|
||||||
|
|
||||||
|
# Odoo16在线开发者手册(长期更新)
|
||||||
|
# https://www.odooai.cn/documentation/16.0/zh_CN/developer.html
|
||||||
|
|
||||||
|
# Odoo13在线用户手册(长期更新)
|
||||||
|
# https://www.odooai.cn/documentation/user/13.0/zh_CN/index.html
|
||||||
|
|
||||||
|
# Odoo13在线开发者手册(长期更新)
|
||||||
|
# https://www.odooai.cn/documentation/13.0/index.html
|
||||||
|
|
||||||
|
# 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("")
|
||||||
14
app_hr_ztree/i18n/zh_CN.po
Normal file
@@ -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"
|
||||||
1
app_hr_ztree/models/__init__.py
Normal file
@@ -0,0 +1 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
1
app_hr_ztree/report/__init__.py
Normal file
@@ -0,0 +1 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
BIN
app_hr_ztree/static/description/banner.gif
Normal file
|
After Width: | Height: | Size: 3.0 MiB |
BIN
app_hr_ztree/static/description/demo1.jpg
Normal file
|
After Width: | Height: | Size: 48 KiB |
BIN
app_hr_ztree/static/description/demo11.jpg
Normal file
|
After Width: | Height: | Size: 100 KiB |
BIN
app_hr_ztree/static/description/demo12.jpg
Normal file
|
After Width: | Height: | Size: 98 KiB |
BIN
app_hr_ztree/static/description/demo2.jpg
Normal file
|
After Width: | Height: | Size: 42 KiB |
BIN
app_hr_ztree/static/description/demo3.jpg
Normal file
|
After Width: | Height: | Size: 33 KiB |
BIN
app_hr_ztree/static/description/demo4.jpg
Normal file
|
After Width: | Height: | Size: 60 KiB |
BIN
app_hr_ztree/static/description/demo5.jpg
Normal file
|
After Width: | Height: | Size: 62 KiB |
BIN
app_hr_ztree/static/description/icon.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
181
app_hr_ztree/static/description/index.html
Normal file
@@ -0,0 +1,181 @@
|
|||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced" style="max-width: 95%;">
|
||||||
|
<h2 class="oe_slogan" style="color:#875A7B;">App ztree widget, for parent children tree list. Demo for hr department employee</h2>
|
||||||
|
<h3 class="oe_slogan">Very useful for parent child relationship, like product category, stock location, hr department</h3>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced">
|
||||||
|
<div class="oe_span12">
|
||||||
|
<div class="alert alert-info" style="padding:8px;font-weight: 300; font-size: 20px;">
|
||||||
|
<i class="fa fa-hand-o-right"></i><b> Key features: </b>
|
||||||
|
<ul class="list-unstyled">
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-check-square-o text-primary"></i>
|
||||||
|
Easy to make custom parent children tree.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-check-square-o text-primary"></i>
|
||||||
|
Free to Use in product category.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-check-square-o text-primary"></i>
|
||||||
|
Free to Use in stock location.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-check-square-o text-primary"></i>
|
||||||
|
Free to Use in hr department, employee.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-check-square-o text-primary"></i>
|
||||||
|
It's a widget, you can use it in anywhere in odoo.
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="alert alert-info" style="padding:8px;font-weight: 300; font-size: 20px;">
|
||||||
|
<i class="fa fa-hand-o-right"></i>
|
||||||
|
<b>
|
||||||
|
<a href="http://www.odoo.com/apps/modules/18.0/app_web_superbar/" target="_blank" class="text-danger">
|
||||||
|
Extend features. superbar advance search navigator
|
||||||
|
</a>
|
||||||
|
</b>
|
||||||
|
<ul class="list-unstyled">
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-check-square-o text-primary"></i>
|
||||||
|
Easy to navigate product, employee in tree or kanban view.
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="alert alert-info" style="padding:8px;font-weight: 300; font-size: 20px;">
|
||||||
|
<i class="fa fa-hand-o-right"></i><b>Get relate Module </b>
|
||||||
|
<ul class="list-unstyled">
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-link text-primary"></i>
|
||||||
|
<a href="http://www.odoo.com/apps/modules/18.0/app_web_widget_ztree/" target="_blank" class="text-danger">zTree widget (must need to use in following demo).</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-link text-primary"></i>
|
||||||
|
<a href="http://www.odoo.com/apps/modules/18.0/app_product_ztree/" target="_blank">Product and category.</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-link text-primary"></i>
|
||||||
|
<a href="http://www.odoo.com/apps/modules/18.0/app_stock_ztree/" target="_blank">Stock and Location.</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-link text-primary"></i>
|
||||||
|
<a href="http://www.odoo.com/apps/modules/18.0/app_hr_ztree/" target="_blank">hr department and employee.</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced">
|
||||||
|
<h4 class="oe_slogan">Use in hr department.</h4>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="demo4.jpg">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced">
|
||||||
|
<h4 class="oe_slogan">Use in hr employee.</h4>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="demo5.jpg">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced">
|
||||||
|
<h4 class="oe_slogan">Use in product.</h4>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="demo2.jpg">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced">
|
||||||
|
<h4 class="oe_slogan">Free to Use in product category.</h4>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="demo1.jpg">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced">
|
||||||
|
<h4 class="oe_slogan">Free to Use in stock location.</h4>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="demo3.jpg">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced">
|
||||||
|
<h2> </h2>
|
||||||
|
<h2 class="text-danger text-center">(!Need extra module and pay, release soon)Easy to navigator.</h2>
|
||||||
|
<h4 class="oe_slogan">Product, employee in kanban view</h4>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="demo11.jpg">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced">
|
||||||
|
<h4 class="oe_slogan">(!Need extra module and pay, release soon)List view</h4>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="demo12.jpg">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced">
|
||||||
|
<h4 class="oe_slogan">Easy to setup just use widget='widget_select'. like this</h4>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="setup1.jpg">
|
||||||
|
</div>
|
||||||
|
<h2><br/> Use follow param to setup widget:<br/></h2>
|
||||||
|
<h4>ztree_parent_key: --the key field of parent children relation.</h4>
|
||||||
|
<h4>ztree_expend_level: --how many level to expend the tree for initialize. Default is 2</h4>
|
||||||
|
<h4>limit: --how many record to show ztree. Default is 16</h4>
|
||||||
|
<h4>order: --the field to order by</h4>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section class="oe_container oe_dark">
|
||||||
|
<div class="oe_row oe_spaced text-center">
|
||||||
|
<div class="oe_span12">
|
||||||
|
<h2 class="oe_slogan">Technical Help & Support</h2>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-12 pad0">
|
||||||
|
<div class="oe_mt16">
|
||||||
|
<p><h4>
|
||||||
|
For any type of technical help & support requests, Feel free to contact us</h4></p>
|
||||||
|
<a style="background: #002e5a none repeat scroll 0% 0%; color: rgb(255, 255, 255);position: relative; overflow: hidden;"
|
||||||
|
class="btn btn-warning btn-lg" rel="nofollow" href="mailto:odoo@china.com"><span
|
||||||
|
style="height: 354px; width: 354px; top: -147.433px; left: -6.93335px;" class="o_ripple"></span>
|
||||||
|
<i class="fa fa-envelope"></i> odoo@china.com</a>
|
||||||
|
<p><h4>
|
||||||
|
Via QQ: 300883 (App user would not get QQ or any other IM support. Only for odoo project customize.)</h4></p>
|
||||||
|
<a style="background: #002e5a none repeat scroll 0% 0%; color: rgb(255, 255, 255);position: relative; overflow: hidden;"
|
||||||
|
class="btn btn-warning btn-lg" rel="nofollow" href="mailto:300883@qq.com"><span
|
||||||
|
style="height: 354px; width: 354px; top: -147.433px; left: -6.93335px;" class="o_ripple"></span>
|
||||||
|
<i class="fa fa-envelope"></i> 300883@qq.com</a>
|
||||||
|
</div>
|
||||||
|
<div class="oe_mt16">
|
||||||
|
<h4>
|
||||||
|
Visit our website for more support.</h4>
|
||||||
|
<h4>https://www.odooai.cn</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
BIN
app_hr_ztree/static/description/setup1.jpg
Normal file
|
After Width: | Height: | Size: 47 KiB |
BIN
app_hr_ztree/static/img/icon_sunpop.png
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
app_hr_ztree/static/img/logo_sunpop.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
29
app_hr_ztree/views/hr_views.xml
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
<odoo>
|
||||||
|
<data>
|
||||||
|
<!-- hr -->
|
||||||
|
<record id="app_view_department_form" model="ir.ui.view">
|
||||||
|
<field name="name">app.hr.department.form</field>
|
||||||
|
<field name="model">hr.department</field>
|
||||||
|
<field name="inherit_id" ref="hr.view_department_form"/>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<xpath expr="//field[@name='parent_id']" position="attributes">
|
||||||
|
<!-- Add your fields or attributes here -->
|
||||||
|
<attribute name="widget">ztree_select</attribute>
|
||||||
|
<attribute name="options">{'ztree_parent_key': 'parent_id','ztree_expend_level': '1', 'ztree_name_field': 'name'}</attribute>
|
||||||
|
</xpath>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
<record id="app_view_employee_form" model="ir.ui.view">
|
||||||
|
<field name="name">app.hr.employee.form</field>
|
||||||
|
<field name="model">hr.employee</field>
|
||||||
|
<field name="inherit_id" ref="hr.view_employee_form"/>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<xpath expr="//field[@name='department_id']" position="attributes">
|
||||||
|
<!-- Add your fields or attributes here -->
|
||||||
|
<attribute name="widget">ztree_select</attribute>
|
||||||
|
<attribute name="options">{'ztree_parent_key': 'parent_id','ztree_expend_level': '1', 'ztree_name_field': 'name'}</attribute>
|
||||||
|
</xpath>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
</data>
|
||||||
|
</odoo>
|
||||||
4
app_product_ztree/__init__.py
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from . import models
|
||||||
|
from .hooks import post_init_hook
|
||||||
55
app_product_ztree/__manifest__.py
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
# Created on 2018-08-15
|
||||||
|
# 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:
|
||||||
|
|
||||||
|
{
|
||||||
|
'name': "App Product category ztree, parent children tree",
|
||||||
|
'version': '18.0.24.12.09',
|
||||||
|
'author': 'odooai.cn',
|
||||||
|
'category': 'Extra tools',
|
||||||
|
'website': 'https://www.odooai.cn',
|
||||||
|
'live_test_url': 'https://demo.odooapp.cn',
|
||||||
|
'license': 'LGPL-3',
|
||||||
|
'sequence': 2,
|
||||||
|
'summary': """
|
||||||
|
Use for parent children tree list select navigator. Product category tree.
|
||||||
|
ztree widget.
|
||||||
|
""",
|
||||||
|
'description': """
|
||||||
|
zTree widget.
|
||||||
|
Advance search with real parent children tree, ListView or KanbanView ,
|
||||||
|
eg: Product category tree ,Department tree, stock location tree.
|
||||||
|
超级方便的查询,树状视图。
|
||||||
|
""",
|
||||||
|
'price': 0.00,
|
||||||
|
'currency': 'EUR',
|
||||||
|
'depends': [
|
||||||
|
'product',
|
||||||
|
],
|
||||||
|
'images': ['static/description/banner.gif'],
|
||||||
|
'data': [
|
||||||
|
'views/product_views.xml',
|
||||||
|
],
|
||||||
|
'demo': [
|
||||||
|
],
|
||||||
|
'test': [
|
||||||
|
],
|
||||||
|
'post_load': None,
|
||||||
|
# 'post_init_hook': 'post_init_hook',
|
||||||
|
'installable': True,
|
||||||
|
'application': True,
|
||||||
|
'auto_install': False,
|
||||||
|
}
|
||||||
20
app_product_ztree/hooks.py
Normal file
@@ -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("")
|
||||||
14
app_product_ztree/i18n/zh_CN.po
Normal file
@@ -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"
|
||||||
1
app_product_ztree/models/__init__.py
Normal file
@@ -0,0 +1 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
32
app_product_ztree/models/product_category.py
Normal file
@@ -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_category =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()
|
||||||
2
app_product_ztree/report/__init__.py
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
BIN
app_product_ztree/static/description/banner.gif
Normal file
|
After Width: | Height: | Size: 3.0 MiB |
BIN
app_product_ztree/static/description/demo1.jpg
Normal file
|
After Width: | Height: | Size: 48 KiB |
BIN
app_product_ztree/static/description/demo11.jpg
Normal file
|
After Width: | Height: | Size: 100 KiB |
BIN
app_product_ztree/static/description/demo12.jpg
Normal file
|
After Width: | Height: | Size: 98 KiB |
BIN
app_product_ztree/static/description/demo2.jpg
Normal file
|
After Width: | Height: | Size: 42 KiB |
BIN
app_product_ztree/static/description/demo3.jpg
Normal file
|
After Width: | Height: | Size: 33 KiB |
BIN
app_product_ztree/static/description/demo4.jpg
Normal file
|
After Width: | Height: | Size: 60 KiB |
BIN
app_product_ztree/static/description/demo5.jpg
Normal file
|
After Width: | Height: | Size: 62 KiB |
BIN
app_product_ztree/static/description/icon.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
182
app_product_ztree/static/description/index.html
Normal file
@@ -0,0 +1,182 @@
|
|||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced" style="max-width: 95%;">
|
||||||
|
<h2 class="oe_slogan" style="color:#875A7B;">App ztree widget, for parent children tree list. Demo for product category</h2>
|
||||||
|
<h3 class="oe_slogan">Very useful for parent child relationship, like product category, stock location, hr department</h3>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced">
|
||||||
|
<div class="row">
|
||||||
|
<div class="alert alert-info" style="padding:8px;font-weight: 300; font-size: 20px;">
|
||||||
|
<i class="fa fa-hand-o-right"></i><b> Key features: </b>
|
||||||
|
<ul class="list-unstyled">
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-check-square-o text-primary"></i>
|
||||||
|
Easy to make custom parent children tree.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-check-square-o text-primary"></i>
|
||||||
|
Free to Use in product category.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-check-square-o text-primary"></i>
|
||||||
|
Free to Use in stock location.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-check-square-o text-primary"></i>
|
||||||
|
Free to Use in hr department, employee.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-check-square-o text-primary"></i>
|
||||||
|
It's a widget, you can use it in anywhere in odoo.
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="alert alert-info" style="padding:8px;font-weight: 300; font-size: 20px;">
|
||||||
|
<i class="fa fa-hand-o-right"></i>
|
||||||
|
<b>
|
||||||
|
<a href="http://www.odoo.com/apps/modules/18.0/app_web_superbar/" target="_blank" class="text-danger">
|
||||||
|
Extend features. superbar advance search navigator
|
||||||
|
</a>
|
||||||
|
</b>
|
||||||
|
<ul class="list-unstyled">
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-check-square-o text-primary"></i>
|
||||||
|
Easy to navigate product, employee in tree or kanban view.
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="alert alert-info" style="padding:8px;font-weight: 300; font-size: 20px;">
|
||||||
|
<i class="fa fa-hand-o-right"></i><b>Get relate Demo </b>
|
||||||
|
<ul class="list-unstyled">
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-link text-primary"></i>
|
||||||
|
<a href="http://www.odoo.com/apps/modules/18.0/app_web_widget_ztree/" target="_blank" class="text-danger">zTree widget (must need to use in following demo).</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-link text-primary"></i>
|
||||||
|
<a href="http://www.odoo.com/apps/modules/18.0/app_product_ztree/" target="_blank">Product and category.</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-link text-primary"></i>
|
||||||
|
<a href="http://www.odoo.com/apps/modules/18.0/app_stock_ztree/" target="_blank">Stock and Location.</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-link text-primary"></i>
|
||||||
|
<a href="http://www.odoo.com/apps/modules/18.0/app_hr_ztree/" target="_blank">hr department and employee.</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced">
|
||||||
|
<h4 class="oe_slogan">Use in product.</h4>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="demo2.jpg">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced">
|
||||||
|
<h4 class="oe_slogan">Free to Use in product category.</h4>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="demo1.jpg">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced">
|
||||||
|
<h4 class="oe_slogan">Free to Use in stock location.</h4>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="demo3.jpg">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced">
|
||||||
|
<h4 class="oe_slogan">Use in hr department.</h4>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="demo4.jpg">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced">
|
||||||
|
<h4 class="oe_slogan">Use in hr employee.</h4>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="demo5.jpg">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced">
|
||||||
|
<h2> </h2>
|
||||||
|
<h2 class="bg-warning text-center pt8 pb8 mt16 mb16">(!Need extra module and pay, release soon)Easy to navigator.</h2>
|
||||||
|
<h4 class="oe_slogan">Product, employee in kanban view</h4>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="demo11.jpg">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced">
|
||||||
|
<h4 class="oe_slogan">(!Need extra module and pay, release soon)List view</h4>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="demo12.jpg">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced">
|
||||||
|
<h4 class="oe_slogan">Easy to setup just use widget='widget_select'. like this</h4>
|
||||||
|
<div class="oe_demo oe_screenshot img img-fluid">
|
||||||
|
<img src="setup1.jpg">
|
||||||
|
</div>
|
||||||
|
<h2><br/> Use follow param to setup widget:<br/></h2>
|
||||||
|
<h4>ztree_parent_key: --the key field of parent children relation.</h4>
|
||||||
|
<h4>ztree_expend_level: --how many level to expend the tree for initialize. Default is 2</h4>
|
||||||
|
<h4>limit: --how many record to show ztree. Default is 16</h4>
|
||||||
|
<h4>order: --the field to order by</h4>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section class="container oe_dark">
|
||||||
|
<div class="oe_row oe_spaced text-center">
|
||||||
|
<div class="row">
|
||||||
|
<h2 class="oe_slogan">Technical Help & Support</h2>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-12 pad0">
|
||||||
|
<div class="oe_mt16">
|
||||||
|
<p><h4>
|
||||||
|
For any type of technical help & support requests, Feel free to contact us</h4></p>
|
||||||
|
<a style="background: #002e5a none repeat scroll 0% 0%; color: rgb(255, 255, 255);position: relative; overflow: hidden;"
|
||||||
|
class="btn btn-warning btn-lg" rel="nofollow" href="mailto:odoo@china.com"><span
|
||||||
|
style="height: 354px; width: 354px; top: -147.433px; left: -6.93335px;" class="o_ripple"></span>
|
||||||
|
<i class="fa fa-envelope"></i> odoo@china.com</a>
|
||||||
|
<p><h4>
|
||||||
|
Via QQ: 300883 (App user would not get QQ or any other IM support. Only for odoo project customize.)</h4></p>
|
||||||
|
<a style="background: #002e5a none repeat scroll 0% 0%; color: rgb(255, 255, 255);position: relative; overflow: hidden;"
|
||||||
|
class="btn btn-warning btn-lg" rel="nofollow" href="mailto:300883@qq.com"><span
|
||||||
|
style="height: 354px; width: 354px; top: -147.433px; left: -6.93335px;" class="o_ripple"></span>
|
||||||
|
<i class="fa fa-envelope"></i> 300883@qq.com</a>
|
||||||
|
</div>
|
||||||
|
<div class="oe_mt16">
|
||||||
|
<h4>
|
||||||
|
Visit our website for more support.</h4>
|
||||||
|
<h4>https://www.odooai.cn</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
BIN
app_product_ztree/static/description/setup1.jpg
Normal file
|
After Width: | Height: | Size: 47 KiB |
BIN
app_product_ztree/static/img/icon_sunpop.png
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
app_product_ztree/static/img/logo_sunpop.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
54
app_product_ztree/views/product_views.xml
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
<odoo>
|
||||||
|
<data>
|
||||||
|
<!-- Product template -->
|
||||||
|
<record id="app_product_template_tree_view" model="ir.ui.view">
|
||||||
|
<field name="name">app.product.template.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="//field[@name='categ_id']" position="attributes">
|
||||||
|
<!-- Add your fields or attributes here -->
|
||||||
|
<attribute name="widget">ztree_select</attribute>
|
||||||
|
<attribute name="options">{'ztree_parent_key': 'parent_id','ztree_expend_level': '2', 'ztree_name_field': 'name', 'order': 'name' }</attribute>
|
||||||
|
</xpath>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
<record id="app_product_template_form_view" model="ir.ui.view">
|
||||||
|
<field name="name">app.product.template.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='categ_id']" position="attributes">
|
||||||
|
<!-- Add your fields or attributes here -->
|
||||||
|
<attribute name="widget">ztree_select</attribute>
|
||||||
|
<attribute name="options">{'ztree_parent_key': 'parent_id','ztree_expend_level': '2', 'ztree_name_field': 'name', 'order': 'name' }</attribute>
|
||||||
|
</xpath>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
<!-- Product product -->
|
||||||
|
<record id="app_product_product_tree_view" model="ir.ui.view">
|
||||||
|
<field name="name">app.product.product.tree</field>
|
||||||
|
<field name="model">product.product</field>
|
||||||
|
<field name="inherit_id" ref="product.product_product_tree_view"/>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<xpath expr="//field[@name='categ_id']" position="attributes">
|
||||||
|
<!-- Add your fields or attributes here -->
|
||||||
|
<attribute name="widget">ztree_select</attribute>
|
||||||
|
<attribute name="options">{'ztree_parent_key': 'parent_id','ztree_expend_level': '2', 'ztree_name_field': 'name', 'order': 'name' }</attribute>
|
||||||
|
</xpath>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
<record id="app_product_category_form_view" model="ir.ui.view">
|
||||||
|
<field name="name">app.product.category.form</field>
|
||||||
|
<field name="model">product.category</field>
|
||||||
|
<field name="inherit_id" ref="product.product_category_form_view"/>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<xpath expr="//field[@name='parent_id']" position="attributes">
|
||||||
|
<!-- Add your fields or attributes here -->
|
||||||
|
<attribute name="widget">ztree_select</attribute>
|
||||||
|
<attribute name="options">{'ztree_parent_key': 'parent_id','ztree_expend_level': '2', 'order': 'name' }</attribute>
|
||||||
|
</xpath>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
</data>
|
||||||
|
</odoo>
|
||||||
4
app_stock_ztree/__init__.py
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from . import models
|
||||||
|
from .hooks import post_init_hook
|
||||||
66
app_stock_ztree/__manifest__.py
Normal file
@@ -0,0 +1,66 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
# Created on 2018-08-15
|
||||||
|
# author: 欧度智能,https://www.odooai.cn
|
||||||
|
# email: 300883@qq.com
|
||||||
|
# resource of odooai
|
||||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
|
# Odoo16在线用户手册(长期更新)
|
||||||
|
# https://www.odooai.cn/documentation/16.0/zh_CN/index.html
|
||||||
|
|
||||||
|
# Odoo16在线开发者手册(长期更新)
|
||||||
|
# https://www.odooai.cn/documentation/16.0/zh_CN/developer.html
|
||||||
|
|
||||||
|
# Odoo13在线用户手册(长期更新)
|
||||||
|
# https://www.odooai.cn/documentation/user/13.0/zh_CN/index.html
|
||||||
|
|
||||||
|
# Odoo13在线开发者手册(长期更新)
|
||||||
|
# https://www.odooai.cn/documentation/13.0/index.html
|
||||||
|
|
||||||
|
# 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 Stock location ztree, parent children tree",
|
||||||
|
'version': '18.0.24.12.09',
|
||||||
|
'author': 'odooai.cn',
|
||||||
|
'category': 'Extra tools',
|
||||||
|
'website': 'https://www.odooai.cn',
|
||||||
|
'license': 'LGPL-3',
|
||||||
|
'sequence': 2,
|
||||||
|
'summary': """
|
||||||
|
Use for parent children tree list select navigator. stock location tree.
|
||||||
|
ztree widget.
|
||||||
|
""",
|
||||||
|
'description': """
|
||||||
|
zTree widget.
|
||||||
|
Advance search with real parent children tree, ListView or KanbanView ,
|
||||||
|
eg: Product category tree ,Department tree, stock location tree.
|
||||||
|
超级方便的查询,树状视图。
|
||||||
|
""",
|
||||||
|
'price': 0.00,
|
||||||
|
'currency': 'EUR',
|
||||||
|
'depends': [
|
||||||
|
'stock',
|
||||||
|
],
|
||||||
|
'images': ['static/description/banner.gif'],
|
||||||
|
'data': [
|
||||||
|
'views/stock_views.xml',
|
||||||
|
],
|
||||||
|
'demo': [
|
||||||
|
],
|
||||||
|
'test': [
|
||||||
|
],
|
||||||
|
'post_load': None,
|
||||||
|
'post_init_hook': 'post_init_hook',
|
||||||
|
'installable': True,
|
||||||
|
'application': True,
|
||||||
|
'auto_install': False,
|
||||||
|
}
|
||||||
32
app_stock_ztree/hooks.py
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
# -*- 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).
|
||||||
|
|
||||||
|
# Odoo16在线用户手册(长期更新)
|
||||||
|
# https://www.odooai.cn/documentation/16.0/zh_CN/index.html
|
||||||
|
|
||||||
|
# Odoo16在线开发者手册(长期更新)
|
||||||
|
# https://www.odooai.cn/documentation/16.0/zh_CN/developer.html
|
||||||
|
|
||||||
|
# Odoo13在线用户手册(长期更新)
|
||||||
|
# https://www.odooai.cn/documentation/user/13.0/zh_CN/index.html
|
||||||
|
|
||||||
|
# Odoo13在线开发者手册(长期更新)
|
||||||
|
# https://www.odooai.cn/documentation/13.0/index.html
|
||||||
|
|
||||||
|
# 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("")
|
||||||
14
app_stock_ztree/i18n/zh_CN.po
Normal file
@@ -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"
|
||||||
1
app_stock_ztree/models/__init__.py
Normal file
@@ -0,0 +1 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
1
app_stock_ztree/report/__init__.py
Normal file
@@ -0,0 +1 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
BIN
app_stock_ztree/static/description/banner.gif
Normal file
|
After Width: | Height: | Size: 3.0 MiB |
BIN
app_stock_ztree/static/description/demo1.jpg
Normal file
|
After Width: | Height: | Size: 48 KiB |
BIN
app_stock_ztree/static/description/demo11.jpg
Normal file
|
After Width: | Height: | Size: 100 KiB |
BIN
app_stock_ztree/static/description/demo12.jpg
Normal file
|
After Width: | Height: | Size: 98 KiB |
BIN
app_stock_ztree/static/description/demo2.jpg
Normal file
|
After Width: | Height: | Size: 42 KiB |
BIN
app_stock_ztree/static/description/demo3.jpg
Normal file
|
After Width: | Height: | Size: 33 KiB |
BIN
app_stock_ztree/static/description/demo4.jpg
Normal file
|
After Width: | Height: | Size: 60 KiB |
BIN
app_stock_ztree/static/description/demo5.jpg
Normal file
|
After Width: | Height: | Size: 62 KiB |
BIN
app_stock_ztree/static/description/icon.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
183
app_stock_ztree/static/description/index.html
Normal file
@@ -0,0 +1,183 @@
|
|||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced" style="max-width: 95%;">
|
||||||
|
<h2 class="oe_slogan" style="color:#875A7B;">App ztree widget, for parent children tree list. Demo for stock location.</h2>
|
||||||
|
<h3 class="oe_slogan">Very useful for parent child relationship, like product category, stock location, hr department</h3>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced">
|
||||||
|
<div class="row">
|
||||||
|
<div class="alert alert-info" style="padding:8px;font-weight: 300; font-size: 20px;">
|
||||||
|
<i class="fa fa-hand-o-right"></i><b> Key features: </b>
|
||||||
|
<ul class="list-unstyled">
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-check-square-o text-primary"></i>
|
||||||
|
Easy to make custom parent children tree.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-check-square-o text-primary"></i>
|
||||||
|
Free to Use in product category.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-check-square-o text-primary"></i>
|
||||||
|
Free to Use in stock location.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-check-square-o text-primary"></i>
|
||||||
|
Free to Use in hr department, employee.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-check-square-o text-primary"></i>
|
||||||
|
It's a widget, you can use it in anywhere in odoo.
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="alert alert-info" style="padding:8px;font-weight: 300; font-size: 20px;">
|
||||||
|
<i class="fa fa-hand-o-right"></i>
|
||||||
|
<b>
|
||||||
|
<a href="http://www.odoo.com/apps/modules/18.0/app_web_superbar/" target="_blank" class="text-danger">
|
||||||
|
Extend features. superbar advance search navigator
|
||||||
|
</a>
|
||||||
|
</b>
|
||||||
|
<ul class="list-unstyled">
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-check-square-o text-primary"></i>
|
||||||
|
Easy to navigate product, employee in tree or kanban view.
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="alert alert-info" style="padding:8px;font-weight: 300; font-size: 20px;">
|
||||||
|
<i class="fa fa-hand-o-right"></i><b>Get relate Demo </b>
|
||||||
|
<ul class="list-unstyled">
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-link text-primary"></i>
|
||||||
|
<a href="http://www.odoo.com/apps/modules/18.0/app_web_widget_ztree/" target="_blank" class="text-danger">zTree widget (must need to use in following demo).</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-link text-primary"></i>
|
||||||
|
<a href="http://www.odoo.com/apps/modules/18.0/app_product_ztree/" target="_blank">Product and category.</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-link text-primary"></i>
|
||||||
|
<a href="http://www.odoo.com/apps/modules/18.0/app_stock_ztree/" target="_blank">Stock and Location.</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<i class="fa fa-link text-primary"></i>
|
||||||
|
<a href="http://www.odoo.com/apps/modules/18.0/app_hr_ztree/" target="_blank">hr department and employee.</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced">
|
||||||
|
<h4 class="oe_slogan">Free to Use in stock location.</h4>
|
||||||
|
<div class="oe_demo oe_screenshot">
|
||||||
|
<img src="demo3.jpg">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced">
|
||||||
|
<h4 class="oe_slogan">Use in product.</h4>
|
||||||
|
<div class="oe_demo oe_screenshot">
|
||||||
|
<img src="demo2.jpg">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced">
|
||||||
|
<h4 class="oe_slogan">Free to Use in product category.</h4>
|
||||||
|
<div class="oe_demo oe_screenshot">
|
||||||
|
<img src="demo1.jpg">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced">
|
||||||
|
<h4 class="oe_slogan">Use in hr department.</h4>
|
||||||
|
<div class="oe_demo oe_screenshot">
|
||||||
|
<img src="demo4.jpg">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced">
|
||||||
|
<h4 class="oe_slogan">Use in hr employee.</h4>
|
||||||
|
<div class="oe_demo oe_screenshot">
|
||||||
|
<img src="demo5.jpg">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced">
|
||||||
|
<h2> </h2>
|
||||||
|
<h2 class="bg-warning text-center pt8 pb8 mt16 mb16">(!Need extra module and pay, release soon)Easy to navigator.</h2>
|
||||||
|
<h4 class="oe_slogan">Product, employee in kanban view</h4>
|
||||||
|
<div class="oe_demo oe_screenshot">
|
||||||
|
<img src="demo11.jpg">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced">
|
||||||
|
<h4 class="oe_slogan">(!Need extra module and pay, release soon)List view</h4>
|
||||||
|
<div class="oe_demo oe_screenshot">
|
||||||
|
<img src="demo12.jpg">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="oe_container container">
|
||||||
|
<div class="oe_row oe_spaced">
|
||||||
|
<h4 class="oe_slogan">Easy to setup just use widget='widget_select'. like this</h4>
|
||||||
|
<div class="oe_demo oe_screenshot">
|
||||||
|
<img src="setup1.jpg">
|
||||||
|
</div>
|
||||||
|
<h2><br/> Use follow param to setup widget:<br/></h2>
|
||||||
|
<h4>ztree_parent_key: --the key field of parent children relation.</h4>
|
||||||
|
<h4>ztree_expend_level: --how many level to expend the tree for initialize. Default is 2</h4>
|
||||||
|
<h4>limit: --how many record to show ztree. Default is 16</h4>
|
||||||
|
<h4>order: --the field to order by</h4>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section class="oe_container oe_dark">
|
||||||
|
<div class="oe_row oe_spaced text-center">
|
||||||
|
<div class="row">
|
||||||
|
<h2 class="oe_slogan">Technical Help & Support</h2>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-12 pad0">
|
||||||
|
<div class="oe_mt16">
|
||||||
|
<p><h4>
|
||||||
|
For any type of technical help & support requests, Feel free to contact us</h4></p>
|
||||||
|
<a style="background: #002e5a none repeat scroll 0% 0%; color: rgb(255, 255, 255);position: relative; overflow: hidden;"
|
||||||
|
class="btn btn-warning btn-lg" rel="nofollow" href="mailto:odoo@china.com"><span
|
||||||
|
style="height: 354px; width: 354px; top: -147.433px; left: -6.93335px;" class="o_ripple"></span>
|
||||||
|
<i class="fa fa-envelope"></i> odoo@china.com</a>
|
||||||
|
<p><h4>
|
||||||
|
Via QQ: 300883 (App user would not get QQ or any other IM support. Only for odoo project customize.)</h4></p>
|
||||||
|
<a style="background: #002e5a none repeat scroll 0% 0%; color: rgb(255, 255, 255);position: relative; overflow: hidden;"
|
||||||
|
class="btn btn-warning btn-lg" rel="nofollow" href="mailto:300883@qq.com"><span
|
||||||
|
style="height: 354px; width: 354px; top: -147.433px; left: -6.93335px;" class="o_ripple"></span>
|
||||||
|
<i class="fa fa-envelope"></i> 300883@qq.com</a>
|
||||||
|
</div>
|
||||||
|
<div class="oe_mt16">
|
||||||
|
<h4>
|
||||||
|
Visit our website for more support.</h4>
|
||||||
|
<h4>https://www.odooai.cn</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||