update misc
3
app_hr_department_zchart/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from . import models
|
||||
66
app_hr_department_zchart/__manifest__.py
Normal file
@@ -0,0 +1,66 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Created on 2019-01-04
|
||||
# author: 欧度智能,https://www.odooai.cn
|
||||
# email: 300883@qq.com
|
||||
# resource of odooai
|
||||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
|
||||
|
||||
# Odoo12在线用户手册(长期更新)
|
||||
# https://www.odooai.cn/documentation/user/12.0/en/index.html
|
||||
|
||||
# Odoo12在线开发者手册(长期更新)
|
||||
# https://www.odooai.cn/documentation/12.0/index.html
|
||||
|
||||
# Odoo10在线中文用户手册(长期更新)
|
||||
# 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/
|
||||
|
||||
|
||||
{
|
||||
'name': 'Hr Department zChart Hierarchy, 员工部门多层级结构图',
|
||||
'version': '16.24.12.12',
|
||||
'author': 'odooai.cn',
|
||||
'category': 'Human Resources',
|
||||
'website': 'https://www.odooai.cn',
|
||||
'license': 'LGPL-3',
|
||||
'sequence': 2,
|
||||
'summary': """
|
||||
zChart Hierarchy Widget. Hierarchy Chart, Hierarchy Tree for multi level Parent Children relation tree.
|
||||
Free for category Hierarchy chart, stock Hierarchy chart. account chart.
|
||||
""",
|
||||
'description': """
|
||||
Need extra paid apps app_web_widget_ztree
|
||||
This module extend to show a Hierarchy chart.
|
||||
""",
|
||||
'price': 0.00,
|
||||
'currency': 'EUR',
|
||||
'depends': [
|
||||
'hr_org_chart',
|
||||
],
|
||||
'images': ['static/description/banner.png'],
|
||||
'data': [
|
||||
'views/hr_department_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,
|
||||
}
|
||||
|
||||
2
app_hr_department_zchart/controllers/__init__.py
Normal file
@@ -0,0 +1,2 @@
|
||||
# -*- coding: utf-8 -*
|
||||
|
||||
67
app_hr_department_zchart/i18n/zh_CN.po
Normal file
@@ -0,0 +1,67 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * app_product_category_chart
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 12.0+e-20190301\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-04-09 00:38+0000\n"
|
||||
"PO-Revision-Date: 2019-04-09 00:38+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_product_category_chart
|
||||
#: model_terms:ir.ui.view,arch_db:app_product_category_chart.app_product_category_form_view
|
||||
msgid "Hierarchy Chart"
|
||||
msgstr "目录结构图"
|
||||
|
||||
#. module: app_product_category_chart
|
||||
#: model:ir.model.fields,field_description:app_product_category_chart.field_product_category__image
|
||||
msgid "Image"
|
||||
msgstr "图像"
|
||||
|
||||
#. module: app_product_category_chart
|
||||
#: model:ir.model.fields,field_description:app_product_category_chart.field_product_category__child_all_count
|
||||
msgid "Indirect Surbordinates Count"
|
||||
msgstr "非直接下属数量"
|
||||
|
||||
#. module: app_product_category_chart
|
||||
#: model:ir.model.fields,field_description:app_product_category_chart.field_product_category__image_medium
|
||||
msgid "Medium-sized image"
|
||||
msgstr "中等尺寸图像"
|
||||
|
||||
#. module: app_product_category_chart
|
||||
#: model:ir.model.fields,help:app_product_category_chart.field_product_category__image_medium
|
||||
msgid "Medium-sized image of this Category. It is automatically resized as a 128x128px image, with aspect ratio preserved. Use this field in form views or some kanban views."
|
||||
msgstr ""
|
||||
|
||||
#. module: app_product_category_chart
|
||||
#: model_terms:ir.ui.view,arch_db:app_product_category_chart.app_product_category_form_view
|
||||
msgid "Please get widget from https://apps.odoo.com/apps/modules/13.0/app_web_chart_hierarchy/"
|
||||
msgstr ""
|
||||
|
||||
#. module: app_product_category_chart
|
||||
#: model:ir.model,name:app_product_category_chart.model_product_category
|
||||
msgid "Product Category"
|
||||
msgstr "产品种类"
|
||||
|
||||
#. module: app_product_category_chart
|
||||
#: model:ir.model.fields,field_description:app_product_category_chart.field_product_category__image_small
|
||||
msgid "Small-sized image"
|
||||
msgstr "小尺寸图像"
|
||||
|
||||
#. module: app_product_category_chart
|
||||
#: model:ir.model.fields,help:app_product_category_chart.field_product_category__image_small
|
||||
msgid "Small-sized image of this Category. It is automatically resized as a 64x64px image, with aspect ratio preserved. Use this field anywhere a small image is required."
|
||||
msgstr ""
|
||||
|
||||
#. module: app_product_category_chart
|
||||
#: model:ir.model.fields,help:app_product_category_chart.field_product_category__image
|
||||
msgid "This field holds the image used as avatar for this category, limited to 1024x1024px"
|
||||
msgstr "目录图像最大为 1024x1024px"
|
||||
|
||||
3
app_hr_department_zchart/models/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from . import hr_department
|
||||
12
app_hr_department_zchart/models/hr_department.py
Normal file
@@ -0,0 +1,12 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from odoo import api, fields, models, tools, _
|
||||
|
||||
|
||||
class Department(models.Model):
|
||||
# 目录图片,可显示小图标,
|
||||
_name = "hr.department"
|
||||
_inherit = ['hr.department', 'image.mixin']
|
||||
|
||||
# 目录图片,可显示小图标,odoo13 在 mixin 中处理了
|
||||
|
||||
BIN
app_hr_department_zchart/static/description/banner.png
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
app_hr_department_zchart/static/description/banner1.png
Normal file
|
After Width: | Height: | Size: 178 KiB |
BIN
app_hr_department_zchart/static/description/demo31.jpg
Normal file
|
After Width: | Height: | Size: 92 KiB |
BIN
app_hr_department_zchart/static/description/demo32.jpg
Normal file
|
After Width: | Height: | Size: 89 KiB |
BIN
app_hr_department_zchart/static/description/demo33.jpg
Normal file
|
After Width: | Height: | Size: 88 KiB |
BIN
app_hr_department_zchart/static/description/demo34.jpg
Normal file
|
After Width: | Height: | Size: 67 KiB |
BIN
app_hr_department_zchart/static/description/demo35.jpg
Normal file
|
After Width: | Height: | Size: 96 KiB |
BIN
app_hr_department_zchart/static/description/demo36.jpg
Normal file
|
After Width: | Height: | Size: 88 KiB |
BIN
app_hr_department_zchart/static/description/icon.png
Normal file
|
After Width: | Height: | Size: 50 KiB |
204
app_hr_department_zchart/static/description/index.html
Normal file
@@ -0,0 +1,204 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
# -*- 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">HR Department zChart Hierarchy for Multi Level</h2>
|
||||
<h3 class="text-center">人力资源多层级结构图,一棵树全览公司组织架构</h3>
|
||||
<h4 class="text-center">Very useful for show parent child relationship, like product category, stock location, hr department</h4>
|
||||
</section>
|
||||
<!-- end title-->
|
||||
|
||||
<section class="container oe_container">
|
||||
<div class="oe_row text-center">
|
||||
<h2>This is Free addons of zTree and zChart. !This moduld Do Need extra paid Apps.</h2>
|
||||
</div>
|
||||
<li>
|
||||
<i class="fa fa-link text-primary"></i>
|
||||
<a href="./app_web_widget_ztree" target="_blank" class="text-danger">
|
||||
app_web_widget_ztree zTree widget (must need to pay and use in following demo).
|
||||
</a>
|
||||
</li>
|
||||
</section>
|
||||
|
||||
<section class="container oe_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 show parent children Chart Hierarchy.
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-check-square-o text-primary"></i>
|
||||
Free to Use in Manufacture Order multi level. For Multi level MO MRP Production Order from multi bom.
|
||||
</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>
|
||||
|
||||
<h2 class="bg-warning text-center pt8 pb8 mt16 mb16">Buy
|
||||
<a href="https://www.odoo.com/apps/modules/16.0/app_web_widget_ztree">
|
||||
this 1 zchart ztree hierarchy
|
||||
</a>
|
||||
in odoo Store. Get free 5 related free apps.
|
||||
</a>
|
||||
</h2>
|
||||
<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/16.0/app_mrp_production_zchart/" target="_blank">MRP Production zChart Hierarchy</a>
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-link text-primary"></i>
|
||||
<a href="http://www.odoo.com/apps/modules/16.0/app_product_category_zchart/" target="_blank">Product category zChart hierarchy</a>
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-link text-primary"></i>
|
||||
<a href="http://www.odoo.com/apps/modules/16.0/app_stock_location_zchart/" target="_blank">Stock Location zChart hierarchy</a>
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-link text-primary"></i>
|
||||
<a href="http://www.odoo.com/apps/modules/16.0/app_hr_department_zchart/" target="_blank">hr department employee zchart hierarchy</a>
|
||||
</li>
|
||||
<li>
|
||||
<i class="fa fa-link text-primary"></i>
|
||||
<a href="http://www.odoo.com/apps/modules/16.0/app_account_zchart/" 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/16.0/app_users_zchart/" target="_blank">User Alliance Distribution Multi level zchart hierarchy</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="container oe_container">
|
||||
<div class="oe_row oe_spaced">
|
||||
<h2> </h2>
|
||||
<h2 class="bg-warning text-center pt8 pb8 mt16 mb16">Product category Chart Hierarchy</h2>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="demo31.jpg">
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="container oe_container">
|
||||
<div class="oe_row oe_spaced">
|
||||
<h2> </h2>
|
||||
<h2 class="bg-warning text-center pt8 pb8 mt16 mb16">Stock Location Chart Hierarchy</h2>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="demo32.jpg">
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="container oe_container">
|
||||
<div class="oe_row oe_spaced">
|
||||
<h2> </h2>
|
||||
<h2 class="bg-warning text-center pt8 pb8 mt16 mb16">HR Department Chart Hierarchy</h2>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="demo33.jpg">
|
||||
</div>
|
||||
<h2 class="bg-warning text-center pt8 pb8 mt16 mb16">HR Employee Chart Hierarchy (this is include in odoo)</h2>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="demo34.jpg">
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="container oe_container">
|
||||
<div class="oe_row oe_spaced">
|
||||
<h2> </h2>
|
||||
<h2 class="bg-warning text-center pt8 pb8 mt16 mb16">Account Chart Hierarchy</h2>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="demo35.jpg">
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="container oe_container">
|
||||
<div class="oe_row oe_spaced">
|
||||
<h2> </h2>
|
||||
<h2 class="bg-warning text-center pt8 pb8 mt16 mb16">User Alliance Distribution Multi level</h2>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="demo36.jpg">
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="container oe_container">
|
||||
<div class="oe_row oe_spaced">
|
||||
<h4 class="oe_slogan">Easy to setup just use widget='ztree_chart'. like this</h4>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<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 img-fluid">
|
||||
<img src="setup2.jpg">
|
||||
</div>
|
||||
</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>
|
||||
|
||||
BIN
app_hr_department_zchart/static/description/setup1.jpg
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
app_hr_department_zchart/static/description/setup2.jpg
Normal file
|
After Width: | Height: | Size: 115 KiB |
24
app_hr_department_zchart/views/hr_department_views.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<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="//div[hasclass('oe_button_box')]" position="after">
|
||||
<div id="o_node_container">
|
||||
<div id="o_node_main">
|
||||
<span id="add_title"/>
|
||||
<span id="add_group"/>
|
||||
</div>
|
||||
<div id="o_node_right">
|
||||
<field name="child_ids" widget="ztree_chart" nolabel="1" options="'ztree_expend_level': '0'"/>
|
||||
</div>
|
||||
</div>
|
||||
</xpath>
|
||||
<xpath expr="//span[@id='add_group']" position="after">
|
||||
<xpath expr="//group[1]" position="move"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
Before Width: | Height: | Size: 197 KiB After Width: | Height: | Size: 197 KiB |
|
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 48 KiB |
|
After Width: | Height: | Size: 60 KiB |
|
After Width: | Height: | Size: 69 KiB |