release user chart

This commit is contained in:
ivan deng
2019-04-14 20:18:46 +08:00
parent d513faa051
commit 29cfc5f417
41 changed files with 575 additions and 53 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

View File

@@ -16,19 +16,23 @@
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
Use in product category.
Free to Use in product category.
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
Use in stock location.
Free to Use in stock location.
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
Use in hr department, employee.
Free to Use in hr department, employee.
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
Use in Account chart.
Free to Use in Account chart.
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
Free to Use in User Alliance Distribution Multi level.
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
@@ -67,6 +71,10 @@
<i class="fa fa-link text-primary"></i>
<a href="http://www.odoo.com/apps/modules/12.0/app_account_account_chart/" target="_blank">Account chart hierarchy(chinese only)</a>
</li>
<li>
<i class="fa fa-link text-primary"></i>
<a href="http://www.odoo.com/apps/modules/12.0/app_users_chart_hierarchy/" target="_blank">User Alliance Distribution Multi level</a>
</li>
</ul>
</div>
</div>
@@ -110,7 +118,6 @@
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<h1>&nbsp;</h1>
@@ -121,6 +128,16 @@
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<h1>&nbsp;</h1>
<h1 class="text-danger text-center">User Alliance Distribution Multi level</h1>
<div class="oe_demo oe_screenshot">
<img src="demo9.jpg">
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<h4 class="oe_slogan">Easy to setup just use widget='web_chart_hierarchy'. like this</h4>

View File

@@ -88,7 +88,7 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<h4 class="oe_slogan">Use in product category.</h4>
<h4 class="oe_slogan">Free to Use in product category.</h4>
<div class="oe_demo oe_screenshot">
<img src="product1.jpg">
</div>

View File

@@ -88,7 +88,7 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<h4 class="oe_slogan">Use in product category.</h4>
<h4 class="oe_slogan">Free to Use in product category.</h4>
<div class="oe_demo oe_screenshot">
<img src="product1.jpg">
</div>

View File

@@ -17,15 +17,15 @@
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
Use in product category.
Free to Use in product category.
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
Use in stock location.
Free to Use in stock location.
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
Use in hr department, employee.
Free to Use in hr department, employee.
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
@@ -96,7 +96,7 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<h4 class="oe_slogan">Use in product category.</h4>
<h4 class="oe_slogan">Free to Use in product category.</h4>
<div class="oe_demo oe_picture oe_screenshot">
<img src="demo1.jpg">
</div>
@@ -105,7 +105,7 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<h4 class="oe_slogan">Use in stock location.</h4>
<h4 class="oe_slogan">Free to Use in stock location.</h4>
<div class="oe_demo oe_picture oe_screenshot">
<img src="demo3.jpg">
</div>

View File

@@ -88,7 +88,7 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<h4 class="oe_slogan">Use in product category.</h4>
<h4 class="oe_slogan">Free to Use in product category.</h4>
<div class="oe_demo oe_screenshot">
<img src="product1.jpg">
</div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

View File

@@ -16,19 +16,23 @@
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
Use in product category.
Free to Use in product category.
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
Use in stock location.
Free to Use in stock location.
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
Use in hr department, employee.
Free to Use in hr department, employee.
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
Use in Account chart.
Free to Use in Account chart.
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
Free to Use in User Alliance Distribution Multi level.
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
@@ -67,6 +71,10 @@
<i class="fa fa-link text-primary"></i>
<a href="http://www.odoo.com/apps/modules/12.0/app_account_account_chart/" target="_blank">Account chart hierarchy(chinese only)</a>
</li>
<li>
<i class="fa fa-link text-primary"></i>
<a href="http://www.odoo.com/apps/modules/12.0/app_users_chart_hierarchy/" target="_blank">User Alliance Distribution Multi level</a>
</li>
</ul>
</div>
</div>
@@ -110,7 +118,6 @@
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<h1>&nbsp;</h1>
@@ -121,6 +128,16 @@
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<h1>&nbsp;</h1>
<h1 class="text-danger text-center">User Alliance Distribution Multi level</h1>
<div class="oe_demo oe_screenshot">
<img src="demo9.jpg">
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<h4 class="oe_slogan">Easy to setup just use widget='web_chart_hierarchy'. like this</h4>

View File

@@ -125,7 +125,7 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<h4 class="oe_slogan">Use in product category.</h4>
<h4 class="oe_slogan">Free to Use in product category.</h4>
<div class="oe_demo oe_screenshot">
<img src="product1.jpg">
</div>

View File

@@ -17,15 +17,15 @@
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
Use in product category.
Free to Use in product category.
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
Use in stock location.
Free to Use in stock location.
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
Use in hr department, employee.
Free to Use in hr department, employee.
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
@@ -96,7 +96,7 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<h4 class="oe_slogan">Use in product category.</h4>
<h4 class="oe_slogan">Free to Use in product category.</h4>
<div class="oe_demo oe_picture oe_screenshot">
<img src="demo1.jpg">
</div>
@@ -105,7 +105,7 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<h4 class="oe_slogan">Use in stock location.</h4>
<h4 class="oe_slogan">Free to Use in stock location.</h4>
<div class="oe_demo oe_picture oe_screenshot">
<img src="demo3.jpg">
</div>

View File

@@ -135,7 +135,7 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<h4 class="oe_slogan">Use in product category.</h4>
<h4 class="oe_slogan">Free to Use in product category.</h4>
<div class="oe_demo oe_screenshot">
<img src="product1.jpg">
</div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

View File

@@ -16,19 +16,23 @@
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
Use in product category.
Free to Use in product category.
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
Use in stock location.
Free to Use in stock location.
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
Use in hr department, employee.
Free to Use in hr department, employee.
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
Use in Account chart.
Free to Use in Account chart.
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
Free to Use in User Alliance Distribution Multi level.
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
@@ -67,6 +71,10 @@
<i class="fa fa-link text-primary"></i>
<a href="http://www.odoo.com/apps/modules/12.0/app_account_account_chart/" target="_blank">Account chart hierarchy(chinese only)</a>
</li>
<li>
<i class="fa fa-link text-primary"></i>
<a href="http://www.odoo.com/apps/modules/12.0/app_users_chart_hierarchy/" target="_blank">User Alliance Distribution Multi level</a>
</li>
</ul>
</div>
</div>
@@ -110,7 +118,6 @@
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<h1>&nbsp;</h1>
@@ -121,6 +128,16 @@
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<h1>&nbsp;</h1>
<h1 class="text-danger text-center">User Alliance Distribution Multi level</h1>
<div class="oe_demo oe_screenshot">
<img src="demo9.jpg">
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<h4 class="oe_slogan">Easy to setup just use widget='web_chart_hierarchy'. like this</h4>

View File

@@ -132,7 +132,7 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<h4 class="oe_slogan">Use in product category.</h4>
<h4 class="oe_slogan">Free to Use in product category.</h4>
<div class="oe_demo oe_screenshot">
<img src="product1.jpg">
</div>

View File

@@ -17,15 +17,15 @@
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
Use in product category.
Free to Use in product category.
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
Use in stock location.
Free to Use in stock location.
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
Use in hr department, employee.
Free to Use in hr department, employee.
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
@@ -78,7 +78,7 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<h4 class="oe_slogan">Use in product category.</h4>
<h4 class="oe_slogan">Free to Use in product category.</h4>
<div class="oe_demo oe_picture oe_screenshot">
<img src="demo1.jpg">
</div>
@@ -87,7 +87,7 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<h4 class="oe_slogan">Use in stock location.</h4>
<h4 class="oe_slogan">Free to Use in stock location.</h4>
<div class="oe_demo oe_picture oe_screenshot">
<img src="demo3.jpg">
</div>

View File

@@ -88,7 +88,7 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<h4 class="oe_slogan">Use in product category.</h4>
<h4 class="oe_slogan">Free to Use in product category.</h4>
<div class="oe_demo oe_screenshot">
<img src="product1.jpg">
</div>

View File

@@ -88,7 +88,7 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<h4 class="oe_slogan">Use in product category.</h4>
<h4 class="oe_slogan">Free to Use in product category.</h4>
<div class="oe_demo oe_screenshot">
<img src="product1.jpg">
</div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

View File

@@ -16,19 +16,23 @@
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
Use in product category.
Free to Use in product category.
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
Use in stock location.
Free to Use in stock location.
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
Use in hr department, employee.
Free to Use in hr department, employee.
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
Use in Account chart.
Free to Use in Account chart.
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
Free to Use in User Alliance Distribution Multi level.
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
@@ -67,6 +71,10 @@
<i class="fa fa-link text-primary"></i>
<a href="http://www.odoo.com/apps/modules/12.0/app_account_account_chart/" target="_blank">Account chart hierarchy(chinese only)</a>
</li>
<li>
<i class="fa fa-link text-primary"></i>
<a href="http://www.odoo.com/apps/modules/12.0/app_users_chart_hierarchy/" target="_blank">User Alliance Distribution Multi level</a>
</li>
</ul>
</div>
</div>
@@ -110,7 +118,6 @@
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<h1>&nbsp;</h1>
@@ -121,6 +128,16 @@
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<h1>&nbsp;</h1>
<h1 class="text-danger text-center">User Alliance Distribution Multi level</h1>
<div class="oe_demo oe_screenshot">
<img src="demo9.jpg">
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<h4 class="oe_slogan">Easy to setup just use widget='web_chart_hierarchy'. like this</h4>

View File

@@ -17,15 +17,15 @@
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
Use in product category.
Free to Use in product category.
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
Use in stock location.
Free to Use in stock location.
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
Use in hr department, employee.
Free to Use in hr department, employee.
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
@@ -69,7 +69,7 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<h4 class="oe_slogan">Use in stock location.</h4>
<h4 class="oe_slogan">Free to Use in stock location.</h4>
<div class="oe_demo oe_picture oe_screenshot">
<img src="demo3.jpg">
</div>
@@ -87,7 +87,7 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<h4 class="oe_slogan">Use in product category.</h4>
<h4 class="oe_slogan">Free to Use in product category.</h4>
<div class="oe_demo oe_picture oe_screenshot">
<img src="demo1.jpg">
</div>

View File

@@ -17,15 +17,15 @@
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
Use in product category.
Free to Use in product category.
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
Use in stock location.
Free to Use in stock location.
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
Use in hr department, employee.
Free to Use in hr department, employee.
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
@@ -69,7 +69,7 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<h4 class="oe_slogan">Use in stock location.</h4>
<h4 class="oe_slogan">Free to Use in stock location.</h4>
<div class="oe_demo oe_picture oe_screenshot">
<img src="demo3.jpg">
</div>
@@ -87,7 +87,7 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<h4 class="oe_slogan">Use in product category.</h4>
<h4 class="oe_slogan">Free to Use in product category.</h4>
<div class="oe_demo oe_picture oe_screenshot">
<img src="demo1.jpg">
</div>

View File

@@ -0,0 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import models

View File

@@ -0,0 +1,70 @@
# -*- coding: utf-8 -*-
# Created on 2019-01-04
# author: 广州尚鹏https://www.sunpop.cn
# email: 300883@qq.com
# resource of Sunpop
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
# Odoo12在线用户手册长期更新
# https://www.sunpop.cn/documentation/user/12.0/en/index.html
# Odoo12在线开发者手册长期更新
# https://www.sunpop.cn/documentation/12.0/index.html
# Odoo10在线中文用户手册长期更新
# https://www.sunpop.cn/documentation/user/10.0/zh_CN/index.html
# Odoo10离线中文用户手册下载
# https://www.sunpop.cn/odoo10_user_manual_document_offline/
# Odoo10离线开发手册下载-含python教程jquery参考Jinja2模板PostgresSQL参考odoo开发必备
# https://www.sunpop.cn/odoo10_developer_document_offline/
{
'name': 'User Alliance Distribution Chart Hierarchy, 多层级用户',
'version': '12.19.04.14',
'author': 'Sunpop.cn',
'category': 'Stock',
'website': 'https://www.sunpop.cn',
'license': 'LGPL-3',
'sequence': 2,
'summary': """
Chart Hierarchy Widget. Hierarchy Chart, Hierarchy Tree for multi level Parent Children relation tree.
Free for category Hierarchy chart, stock Hierarchy chart. account chart. user multi level chart.
""",
'description': """
This module extend to show a Hierarchy chart.
(N+1, N+2, direct subordinates)
image: image_field,
desc: descript_field,
direct_sub: children_field, must be one2many,
child_all_count: child_all_count field, count of direct and indirect children.
""",
'price': 0.00,
'currency': 'EUR',
'depends': [
'base',
],
'images': ['static/description/banner.gif'],
'data': [
'views/res_users_views.xml',
],
'demo': [
],
'test': [
],
'css': [
],
'qweb': [
'static/src/xml/*.xml',
],
'js': [
],
'post_load': None,
'post_init_hook': None,
'installable': True,
'application': True,
'auto_install': False,
}

View File

@@ -0,0 +1,2 @@
# -*- coding: utf-8 -*

View File

@@ -0,0 +1,112 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * app_users_chart_hierarchy
#
# Translators:
# Martin Trigaux, 2018
# 珠海-杜哥 <liangjia@qq.com>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server saas~11.5\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-09-18 09:49+0000\n"
"PO-Revision-Date: 2018-09-18 09:49+0000\n"
"Last-Translator: 珠海-杜哥 <liangjia@qq.com>, 2018\n"
"Language-Team: Chinese (China) (https://www.transifex.com/odoo/teams/41243/zh_CN/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: zh_CN\n"
"Plural-Forms: nplurals=1; plural=0;\n"
#. module: app_users_chart_hierarchy
#. openerp-web
#: code:addons/app_users_chart_hierarchy/static/src/js/app_users_chart_hierarchy.js:137
#, python-format
msgid "Direct Subordinates of %s"
msgstr "%s的直接下属"
#. module: app_users_chart_hierarchy
#. openerp-web
#: code:addons/app_users_chart_hierarchy/static/src/xml/app_users_chart_hierarchy.xml:126
#, python-format
msgid "Direct subordinates"
msgstr "直接下属"
#. module: app_users_chart_hierarchy
#: model:ir.model,name:app_users_chart_hierarchy.model_product.category
msgid "node"
msgstr "员工"
#. module: app_users_chart_hierarchy
#. openerp-web
#: code:addons/app_users_chart_hierarchy/static/src/xml/app_users_chart_hierarchy.xml:89
#, python-format
msgid "In order to get an organigram, set a parent and save the record."
msgstr "为了获取组织图,请设置一个上司然后保存"
#. module: app_users_chart_hierarchy
#. openerp-web
#: code:addons/app_users_chart_hierarchy/static/src/js/app_users_chart_hierarchy.js:147
#, python-format
msgid "Indirect Subordinates of %s"
msgstr "%s的非直接下属"
#. module: app_users_chart_hierarchy
#: model:ir.model.fields,field_description:app_users_chart_hierarchy.field_product.category__child_all_count
msgid "Indirect Surbordinates Count"
msgstr "非直接下属数量"
#. module: app_users_chart_hierarchy
#. openerp-web
#: code:addons/app_users_chart_hierarchy/static/src/xml/app_users_chart_hierarchy.xml:136
#, python-format
msgid "Indirect subordinates"
msgstr "非直接下属"
#. module: app_users_chart_hierarchy
#. openerp-web
#: code:addons/app_users_chart_hierarchy/static/src/xml/app_users_chart_hierarchy.xml:66
#, python-format
msgid "More parents"
msgstr "更多管理员"
#. module: app_users_chart_hierarchy
#. openerp-web
#: code:addons/app_users_chart_hierarchy/static/src/xml/app_users_chart_hierarchy.xml:87
#, python-format
msgid "No hierarchy position."
msgstr "没有层级位置"
#. module: app_users_chart_hierarchy
#: model_terms:ir.ui.view,arch_db:app_users_chart_hierarchy.product.category_view_form_inherit_chart_hierarchy
msgid "Organization Chart"
msgstr "组织图表"
#. module: app_users_chart_hierarchy
#. openerp-web
#: code:addons/app_users_chart_hierarchy/static/src/xml/app_users_chart_hierarchy.xml:155
#, python-format
msgid "Redirect"
msgstr "重定向"
#. module: app_users_chart_hierarchy
#. openerp-web
#: code:addons/app_users_chart_hierarchy/static/src/js/app_users_chart_hierarchy.js:140
#, python-format
msgid "Subordinates of %s"
msgstr "%s的下属"
#. module: app_users_chart_hierarchy
#. openerp-web
#: code:addons/app_users_chart_hierarchy/static/src/xml/app_users_chart_hierarchy.xml:88
#, python-format
msgid "This employee has no parent or subordinate."
msgstr "该员工没有上司或下属"
#. module: app_users_chart_hierarchy
#. openerp-web
#: code:addons/app_users_chart_hierarchy/static/src/xml/app_users_chart_hierarchy.xml:144
#, python-format
msgid "Total"
msgstr "合计"

View File

@@ -0,0 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import res_users

View File

@@ -0,0 +1,26 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, fields, models, tools, _
class Users(models.Model):
_inherit = "res.users"
# 注意res.partner 有 parent_id 和 child_ids
_parent_name = "user_parent_id"
_parent_store = True
parent_path = fields.Char(index=True)
user_parent_id = fields.Many2one('res.users', string='Parent User', index=True)
user_child_ids = fields.One2many('res.users', 'user_parent_id', string='Sub Users', domain=[('active', '=', True)])
user_child_all_count = fields.Integer(
'Indirect Surbordinates Count',
compute='_compute_user_child_all_count', store=False)
@api.depends('user_child_ids.user_child_all_count')
def _compute_user_child_all_count(self):
for rec in self:
rec.user_child_all_count = len(rec.user_child_ids) + sum(child.user_child_all_count for child in rec.user_child_ids)

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

View File

@@ -0,0 +1,190 @@
<section class="oe_container">
<div class="oe_row oe_spaced" style="max-width: 95%;">
<h2 class="oe_slogan" style="color:#875A7B;">User Alliance distribution Chart Hierarchy for Multi Level</h2>
<h3 class="oe_slogan">Very useful for show parent child relationship, like product category, stock location, hr department</h3>
</div>
</section>
<section class="oe_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 show parent children Chart Hierarchy.
</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>
Free to Use in Account chart.
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
Free to Use in User Alliance Distribution Multi level.
</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>
<h3 class="oe_slogan">Buy
<a href="https://www.odoo.com/apps/modules/12.0/app_web_chart_hierarchy/">
this 1 chart hierarchy
</a>
in odoo Store. Get free 4 related free apps.
</a>
</h3>
<div class="oe_span12">
<img class="oe_demo oe_screenshot" src="banner.gif">
</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/12.0/app_product_category_chart/" target="_blank">Product category chart hierarchy</a>
</li>
<li>
<i class="fa fa-link text-primary"></i>
<a href="http://www.odoo.com/apps/modules/12.0/app_stock_location_chart/" target="_blank">Stock Location chart hierarchy</a>
</li>
<li>
<i class="fa fa-link text-primary"></i>
<a href="http://www.odoo.com/apps/modules/12.0/app_hr_department_chart/" target="_blank">hr department employee chart hierarchy</a>
</li>
<li>
<i class="fa fa-link text-primary"></i>
<a href="http://www.odoo.com/apps/modules/12.0/app_account_account_chart/" target="_blank">Account chart hierarchy(chinese only)</a>
</li>
<li>
<i class="fa fa-link text-primary"></i>
<a href="http://www.odoo.com/apps/modules/12.0/app_users_chart_hierarchy/" target="_blank">User Alliance Distribution Multi level</a>
</li>
</ul>
</div>
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<h1>&nbsp;</h1>
<h1 class="text-danger text-center">Product category Chart Hierarchy</h1>
<div class="oe_demo oe_screenshot">
<img src="demo1.jpg">
</div>
<h4 class="oe_slogan">Show sub category and quick access category</h4>
<div class="oe_demo oe_screenshot">
<img src="demo2.jpg">
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<h1>&nbsp;</h1>
<h1 class="text-danger text-center">Stock Location Chart Hierarchy</h1>
<div class="oe_demo oe_screenshot">
<img src="demo4.jpg">
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<h1>&nbsp;</h1>
<h1 class="text-danger text-center">HR Department Chart Hierarchy</h1>
<div class="oe_demo oe_screenshot">
<img src="demo5.jpg">
</div>
<h1 class="text-danger text-center">HR Emploee Chart Hierarchy (this is include in odoo)</h1>
<div class="oe_demo oe_screenshot">
<img src="demo6.jpg">
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<h1>&nbsp;</h1>
<h1 class="text-danger text-center">Account Chart Hierarchy</h1>
<div class="oe_demo oe_screenshot">
<img src="demo7.jpg">
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<h1>&nbsp;</h1>
<h1 class="text-danger text-center">User Alliance Distribution Multi level</h1>
<div class="oe_demo oe_screenshot">
<img src="demo9.jpg">
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<h4 class="oe_slogan">Easy to setup just use widget='web_chart_hierarchy'. like this</h4>
<div class="oe_demo oe_screenshot">
<img src="setup1.jpg">
</div>
<h4 class="oe_slogan">Also need to change view for better ui</h4>
<div class="oe_demo oe_screenshot">
<img src="setup2.jpg">
</div>
<h1><br/> Use follow param to setup widget:<br/></h1>
<h4>image: --the field of image.</h4>
<h4>desc: --the field of subtitle.</h4>
<h4>direct_sub: --the field of sub node.</h4>
<h4>child_all_count: --the field of node count.</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:guohuadeng@hotmail.com"><span
style="height: 354px; width: 354px; top: -147.433px; left: -6.93335px;" class="o_ripple"></span>
<i class="fa fa-envelope"></i> guohuadeng@hotmail.com</a>
<p><h4>
Via QQ: 300883</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">
<p><h4>
Visit our website for more support.</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="https://www.sunpop.cn" target="_blank"><span
style="height: 354px; width: 354px; top: -147.433px; left: -6.93335px;" class="o_ripple"></span>
<i class="fa fa-web"></i>https://www.sunpop.cn</a>
</div>
</div>
</div>
</section>

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

View File

@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="app_view_users_form" model="ir.ui.view">
<field name="name">app.res.users.form</field>
<field name="model">res.users</field>
<field name="inherit_id" ref="base.view_users_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='parent_id']" position="after">
<field name="user_parent_id"/>
</xpath>
<xpath expr="//div[@name='button_box']" position="after">
<div id="o_node_container">
<div id="o_node_main">
<span id="add_image"/>
<span id="add_title"/>
</div>
<div id="o_node_right">
<h4 class="o_chart_hierarchy_title mb16 mt0">Hierarchy Chart</h4>
<field name="user_child_ids" widget="web_chart_hierarchy"
string="Please get widget from https://apps.odoo.com/apps/modules/12.0/app_web_chart_hierarchy/"
form_view_ref ='base.view_users_form'
options="{
'image': 'image_small',
'desc': 'login',
'direct_sub': 'user_child_ids',
'child_all_count':'user_child_all_count'}"/>
</div>
</div>
</xpath>
</field>
</record>
<record id="app_view_users_form2" model="ir.ui.view">
<field name="name">app.res.users.form2</field>
<field name="model">res.users</field>
<field name="inherit_id" ref="app_view_users_form"/>
<field name="arch" type="xml">
<xpath expr="//span[@id='add_image']" position="after">
<xpath expr="//field[@name='image']" position="move"/>
</xpath>
<xpath expr="//span[@id='add_title']" position="after">
<xpath expr="//div[@class='oe_title']" position="move"/>
</xpath>
</field>
</record>
</odoo>