diff --git a/app_hr_department_zchart/__init__.py b/app_hr_department_zchart/__init__.py new file mode 100644 index 00000000..cde864ba --- /dev/null +++ b/app_hr_department_zchart/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import models diff --git a/app_hr_department_zchart/__manifest__.py b/app_hr_department_zchart/__manifest__.py new file mode 100644 index 00000000..4e1605a9 --- /dev/null +++ b/app_hr_department_zchart/__manifest__.py @@ -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, +} + diff --git a/app_hr_department_zchart/controllers/__init__.py b/app_hr_department_zchart/controllers/__init__.py new file mode 100644 index 00000000..7ec351fe --- /dev/null +++ b/app_hr_department_zchart/controllers/__init__.py @@ -0,0 +1,2 @@ +# -*- coding: utf-8 -* + diff --git a/app_hr_department_zchart/i18n/zh_CN.po b/app_hr_department_zchart/i18n/zh_CN.po new file mode 100644 index 00000000..93cfbf6d --- /dev/null +++ b/app_hr_department_zchart/i18n/zh_CN.po @@ -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" + diff --git a/app_hr_department_zchart/models/__init__.py b/app_hr_department_zchart/models/__init__.py new file mode 100644 index 00000000..51fb735b --- /dev/null +++ b/app_hr_department_zchart/models/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import hr_department diff --git a/app_hr_department_zchart/models/hr_department.py b/app_hr_department_zchart/models/hr_department.py new file mode 100644 index 00000000..4b3475f6 --- /dev/null +++ b/app_hr_department_zchart/models/hr_department.py @@ -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 中处理了 + diff --git a/app_hr_department_zchart/static/description/banner.png b/app_hr_department_zchart/static/description/banner.png new file mode 100644 index 00000000..d5ccccce Binary files /dev/null and b/app_hr_department_zchart/static/description/banner.png differ diff --git a/app_hr_department_zchart/static/description/banner1.png b/app_hr_department_zchart/static/description/banner1.png new file mode 100644 index 00000000..62b30625 Binary files /dev/null and b/app_hr_department_zchart/static/description/banner1.png differ diff --git a/app_hr_department_zchart/static/description/demo31.jpg b/app_hr_department_zchart/static/description/demo31.jpg new file mode 100644 index 00000000..9d9209c9 Binary files /dev/null and b/app_hr_department_zchart/static/description/demo31.jpg differ diff --git a/app_hr_department_zchart/static/description/demo32.jpg b/app_hr_department_zchart/static/description/demo32.jpg new file mode 100644 index 00000000..f34ea97e Binary files /dev/null and b/app_hr_department_zchart/static/description/demo32.jpg differ diff --git a/app_hr_department_zchart/static/description/demo33.jpg b/app_hr_department_zchart/static/description/demo33.jpg new file mode 100644 index 00000000..dd075614 Binary files /dev/null and b/app_hr_department_zchart/static/description/demo33.jpg differ diff --git a/app_hr_department_zchart/static/description/demo34.jpg b/app_hr_department_zchart/static/description/demo34.jpg new file mode 100644 index 00000000..825ca2b1 Binary files /dev/null and b/app_hr_department_zchart/static/description/demo34.jpg differ diff --git a/app_hr_department_zchart/static/description/demo35.jpg b/app_hr_department_zchart/static/description/demo35.jpg new file mode 100644 index 00000000..9d06ce73 Binary files /dev/null and b/app_hr_department_zchart/static/description/demo35.jpg differ diff --git a/app_hr_department_zchart/static/description/demo36.jpg b/app_hr_department_zchart/static/description/demo36.jpg new file mode 100644 index 00000000..eb955b2b Binary files /dev/null and b/app_hr_department_zchart/static/description/demo36.jpg differ diff --git a/app_hr_department_zchart/static/description/icon.png b/app_hr_department_zchart/static/description/icon.png new file mode 100644 index 00000000..38aea853 Binary files /dev/null and b/app_hr_department_zchart/static/description/icon.png differ diff --git a/app_hr_department_zchart/static/description/index.html b/app_hr_department_zchart/static/description/index.html new file mode 100644 index 00000000..a3420b75 --- /dev/null +++ b/app_hr_department_zchart/static/description/index.html @@ -0,0 +1,204 @@ + + + + +
+

HR Department zChart Hierarchy for Multi Level

+

人力资源多层级结构图,一棵树全览公司组织架构

+

Very useful for show parent child relationship, like product category, stock location, hr department

+
+ + +
+
+

This is Free addons of zTree and zChart. !This moduld Do Need extra paid Apps.

+
+
  • + + + app_web_widget_ztree zTree widget (must need to pay and use in following demo). + +
  • +
    + +
    +
    +
    +
    + Key features: +
      +
    • + + Easy to make show parent children Chart Hierarchy. +
    • +
    • + + Free to Use in Manufacture Order multi level. For Multi level MO MRP Production Order from multi bom. +
    • +
    • + + Free to Use in product category. +
    • +
    • + + Free to Use in stock location. +
    • +
    • + + Free to Use in hr department, employee. +
    • +
    • + + Free to Use in Account chart. +
    • +
    • + + Free to Use in User Alliance Distribution Multi level. +
    • +
    • + + It's a widget, you can use it in anywhere in odoo. +
    • +
    +
    + +

    Buy + + this 1 zchart ztree hierarchy + + in odoo Store. Get free 5 related free apps. + +

    + +
    +
    +
    + +
    +
    +

     

    +

    Product category Chart Hierarchy

    +
    + +
    +
    +
    + +
    +
    +

     

    +

    Stock Location Chart Hierarchy

    +
    + +
    +
    +
    + +
    +
    +

     

    +

    HR Department Chart Hierarchy

    +
    + +
    +

    HR Employee Chart Hierarchy (this is include in odoo)

    +
    + +
    +
    +
    +
    +
    +

     

    +

    Account Chart Hierarchy

    +
    + +
    +
    +
    + +
    +
    +

     

    +

    User Alliance Distribution Multi level

    +
    + +
    +
    +
    + +
    +
    +

    Easy to setup just use widget='ztree_chart'. like this

    +
    + +
    +

    Also need to change view for better ui

    +
    + +
    +
    +
    + +
    +
    +
    +

    Technical Help & Support

    +
    +
    +
    +

    + For any type of technical help & support requests, Feel free to contact us

    + + odoo@china.com +

    + Via QQ: 300883 (App user would not get QQ or any other IM support. Only for odoo project customize.)

    + + 300883@qq.com +
    +
    +

    + Visit our website for more support.

    +

    https://www.odooai.cn

    +
    +
    +
    +
    + diff --git a/app_hr_department_zchart/static/description/setup1.jpg b/app_hr_department_zchart/static/description/setup1.jpg new file mode 100644 index 00000000..bc65eedb Binary files /dev/null and b/app_hr_department_zchart/static/description/setup1.jpg differ diff --git a/app_hr_department_zchart/static/description/setup2.jpg b/app_hr_department_zchart/static/description/setup2.jpg new file mode 100644 index 00000000..f3cf5283 Binary files /dev/null and b/app_hr_department_zchart/static/description/setup2.jpg differ diff --git a/app_hr_department_zchart/views/hr_department_views.xml b/app_hr_department_zchart/views/hr_department_views.xml new file mode 100644 index 00000000..23f4a526 --- /dev/null +++ b/app_hr_department_zchart/views/hr_department_views.xml @@ -0,0 +1,24 @@ + + + + app.hr.department.form + hr.department + + + +
    +
    + + +
    +
    + +
    +
    +
    + + + +
    +
    +
    diff --git a/app_mrp_production_zchart/static/description/banner1.png b/app_mrp_production_zchart/static/description/banner1.png index 9aff5714..05a10909 100644 Binary files a/app_mrp_production_zchart/static/description/banner1.png and b/app_mrp_production_zchart/static/description/banner1.png differ diff --git a/app_mrp_production_zchart/static/description/icon.png b/app_mrp_production_zchart/static/description/icon.png index bde5f4eb..2a508933 100644 Binary files a/app_mrp_production_zchart/static/description/icon.png and b/app_mrp_production_zchart/static/description/icon.png differ diff --git a/l10n_cn_standard_latest/static/description/demo_account_zchart.jpg b/l10n_cn_standard_latest/static/description/demo_account_zchart.jpg new file mode 100644 index 00000000..efde5cc9 Binary files /dev/null and b/l10n_cn_standard_latest/static/description/demo_account_zchart.jpg differ diff --git a/l10n_cn_standard_latest/static/description/demo_account_ztree.jpg b/l10n_cn_standard_latest/static/description/demo_account_ztree.jpg new file mode 100644 index 00000000..0b9426b5 Binary files /dev/null and b/l10n_cn_standard_latest/static/description/demo_account_ztree.jpg differ