diff --git a/app_mrp_workcenter_zchart/__init__.py b/app_mrp_workcenter_zchart/__init__.py new file mode 100644 index 00000000..a1125039 --- /dev/null +++ b/app_mrp_workcenter_zchart/__init__.py @@ -0,0 +1,6 @@ +# -*- coding: utf-8 -*- + +from . import models +from .hooks import pre_init_hook +from .hooks import post_init_hook +from .hooks import uninstall_hook \ No newline at end of file diff --git a/app_mrp_workcenter_zchart/__manifest__.py b/app_mrp_workcenter_zchart/__manifest__.py new file mode 100644 index 00000000..29dc3108 --- /dev/null +++ b/app_mrp_workcenter_zchart/__manifest__.py @@ -0,0 +1,86 @@ +# -*- coding: utf-8 -*- + +# Created on 2019-05-26 +# 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/zh_CN/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/ + +############################################################################## +# 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 . +# +# It is forbidden to publish, distribute, sublicense, or sell copies +# of the Software or modified copies of the Software. +############################################################################## + +{ + 'name': "MRP Workcenter zChart Parent Child Hierarchy,工作中心分级", + 'version': '16.24.04.01', + 'author': 'odooai.cn', + 'category': 'Base', + 'website': 'https://www.odooai.cn', + 'license': 'LGPL-3', + 'sequence': 2, + 'price': 0.00, + 'currency': 'EUR', + 'images': ['static/description/banner.png'], + 'depends': [ + 'mrp_workorder', + ], + # 不要误装别的,避免冲突 + 'excludes': [ + 'app_mrp_production_chart', + ], + 'summary': """ + Odoo App of odooai.cn + """, + 'description': """ + Support Odoo 16, 15, 14, 13, 12, 11, Enterprise and Community Edition + 1. D + 2. + 11. Multi-language Support. + 12. Multi-Company Support. + ========== + 1. + 2. + 11. 多语言支持 + 12. 多公司支持 + """, + 'data': [ + # 'security/*.xml', + # 'security/ir.model.access.csv.csv', + # 'data/*.xml', + 'views/mrp_workcenter_views.xml', + ], + 'qweb': [ + 'static/src/xml/*.xml', + ], + 'demo': [], + 'test': [], + 'css': [], + 'js': [], + # 'pre_init_hook': 'pre_init_hook', + # 'post_init_hook': 'post_init_hook', + # 'uninstall_hook': 'uninstall_hook', + 'installable': True, + 'application': True, + 'auto_install': False, +} diff --git a/app_mrp_workcenter_zchart/hooks.py b/app_mrp_workcenter_zchart/hooks.py new file mode 100644 index 00000000..e6d66da3 --- /dev/null +++ b/app_mrp_workcenter_zchart/hooks.py @@ -0,0 +1,44 @@ +# -*- 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: + +from odoo import api, SUPERUSER_ID, _ + + +def pre_init_hook(cr): + pass + # cr.execute("") + +def post_init_hook(cr, registry): + pass + # cr.execute("") + +def uninstall_hook(cr, registry): + pass + # cr.execute("") + diff --git a/app_mrp_workcenter_zchart/i18n/zh_CN.po b/app_mrp_workcenter_zchart/i18n/zh_CN.po new file mode 100644 index 00000000..c5031383 --- /dev/null +++ b/app_mrp_workcenter_zchart/i18n/zh_CN.po @@ -0,0 +1,58 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * app_mrp_workcenter_zchart +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 13.0+e\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2020-08-20 13:30+0000\n" +"PO-Revision-Date: 2020-08-20 13:30+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_mrp_workcenter_zchart +#: model:ir.model.fields,field_description:app_mrp_workcenter_zchart.field_mrp_workcenter__child_ids +msgid "Child WCs" +msgstr "层次结构" + +#. module: app_mrp_workcenter_zchart +#: model:ir.model.fields,field_description:app_mrp_workcenter_zchart.field_mrp_workcenter__child_all_count +msgid "Indirect Surbordinates Count" +msgstr "非直属下级数量" + +#. module: app_mrp_workcenter_zchart +#: model:ir.model.fields,field_description:app_mrp_workcenter_zchart.field_mrp_workcenter__parent_path +msgid "Parent Path" +msgstr "父级路径" + +#. module: app_mrp_workcenter_zchart +#: model:ir.model.fields,field_description:app_mrp_workcenter_zchart.field_mrp_workcenter__parent_id +#: model_terms:ir.ui.view,arch_db:app_mrp_workcenter_zchart.app_view_mrp_workcenter_search +msgid "Parent WC" +msgstr "上级工作中心" + +#. module: app_mrp_workcenter_zchart +#: model:ir.model,name:app_mrp_workcenter_zchart.model_mrp_workcenter +msgid "Work Center" +msgstr "工作中心" + +#. module: app_mrp_workcenter_zchart +#: model_terms:ir.ui.view,arch_db:app_mrp_workcenter_zchart.app_view_mrp_workcenter_search +msgid "code" +msgstr "编码" + +#. module: app_mrp_workcenter_zchart +#: model:ir.model.fields,field_description:app_mrp_workcenter_zchart.field_mrp_workcenter__level +msgid "Level" +msgstr "级别" + + +#. module: app_mrp_workcenter_zchart +#: model:ir.actions.server,name:app_mrp_workcenter_zchart.action_mrp_workcenter_compute_level +msgid "Reset Work Center Level" +msgstr "重置工作中心级别" diff --git a/app_mrp_workcenter_zchart/models/__init__.py b/app_mrp_workcenter_zchart/models/__init__.py new file mode 100644 index 00000000..65c5c045 --- /dev/null +++ b/app_mrp_workcenter_zchart/models/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import mrp_workcenter \ No newline at end of file diff --git a/app_mrp_workcenter_zchart/models/mrp_workcenter.py b/app_mrp_workcenter_zchart/models/mrp_workcenter.py new file mode 100644 index 00000000..da0f0da3 --- /dev/null +++ b/app_mrp_workcenter_zchart/models/mrp_workcenter.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- + +from odoo import api, fields, models, tools, _ + +import logging + +_logger = logging.getLogger(__name__) + + +class MrpWorkCenter(models.Model): + _inherit = 'mrp.workcenter' + + # 建立层级关系 + _parent_name = "parent_id" + _parent_store = True + _parent_order = 'code' + _order = 'parent_path, code' + + parent_id = fields.Many2one('mrp.workcenter', 'Parent WC', index=True, ondelete='restrict') + parent_path = fields.Char(index=True) + child_ids = fields.One2many('mrp.workcenter', 'parent_id', 'Child WCs') + child_all_count = fields.Integer( + 'Indirect Surbordinates Count', + compute='_compute_child_all_count', store=False) + level = fields.Integer('Level', compute='_compute_level', inverse=False, readonly=True, default='1', store=True) + + @api.depends('child_ids.child_all_count') + def _compute_child_all_count(self): + for rec in self: + rec.child_all_count = len(rec.child_ids) + sum(child.child_all_count for child in rec.child_ids) + + + @api.onchange('parent_id') + def _onchange_level(self): + level = 1 + if self.parent_id: + level = self.parent_id.level + 1 + self.level = level + + @api.depends('parent_id', 'parent_id.level') + def _compute_level(self): + for rec in self: + level = 1 + if rec.parent_id: + level = rec.parent_id.level + 1 + rec.level = level + + def _set_level(self): + pass diff --git a/app_mrp_workcenter_zchart/report/__init__.py b/app_mrp_workcenter_zchart/report/__init__.py new file mode 100644 index 00000000..633f8661 --- /dev/null +++ b/app_mrp_workcenter_zchart/report/__init__.py @@ -0,0 +1,2 @@ +# -*- coding: utf-8 -*- + diff --git a/app_mrp_workcenter_zchart/security/app_security.xml b/app_mrp_workcenter_zchart/security/app_security.xml new file mode 100644 index 00000000..a4b85605 --- /dev/null +++ b/app_mrp_workcenter_zchart/security/app_security.xml @@ -0,0 +1,51 @@ + + + + + + acc_module_user + + + + + + + + + + App... + Helps you manage your ... + 8 + + + + + App User + + + The user will be able to ... + + + + + App Admin + + + The user will be able to config ... + + + + + + + + + + Users are allowed to access their own m/// + + ['|', ('partner_id', 'in', [user.partner_id.id]), ('user_id.id', '=', user.id)] + + + + + diff --git a/app_mrp_workcenter_zchart/security/ir.model.access.csv b/app_mrp_workcenter_zchart/security/ir.model.access.csv new file mode 100644 index 00000000..58262d44 --- /dev/null +++ b/app_mrp_workcenter_zchart/security/ir.model.access.csv @@ -0,0 +1 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink \ No newline at end of file diff --git a/app_mrp_workcenter_zchart/static/description/banner.png b/app_mrp_workcenter_zchart/static/description/banner.png new file mode 100644 index 00000000..3c41fcaf Binary files /dev/null and b/app_mrp_workcenter_zchart/static/description/banner.png differ diff --git a/app_mrp_workcenter_zchart/static/description/icon.png b/app_mrp_workcenter_zchart/static/description/icon.png new file mode 100644 index 00000000..16cb1394 Binary files /dev/null and b/app_mrp_workcenter_zchart/static/description/icon.png differ diff --git a/app_mrp_workcenter_zchart/static/description/index.html b/app_mrp_workcenter_zchart/static/description/index.html new file mode 100644 index 00000000..4276fd40 --- /dev/null +++ b/app_mrp_workcenter_zchart/static/description/index.html @@ -0,0 +1,70 @@ +
+
+
+

+

+
+

Lastest update: v12.19.04.28

+
+ +
+
+
+ Key features: +
    +
  • + + Put key function here. +
  • +
+
+
+
+
+
+
+ +
+
+

So Easy to navigator and search any data.

+

+
+ +
+
+
+ +
+
+
+

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

+
+
+
+
+

More Powerful addons, Make your odoo very easy to use, easy customize: + odooai.cn Odoo Addons +

+
+
+ diff --git a/app_mrp_workcenter_zchart/static/img/icon_sunpop.png b/app_mrp_workcenter_zchart/static/img/icon_sunpop.png new file mode 100644 index 00000000..aa490954 Binary files /dev/null and b/app_mrp_workcenter_zchart/static/img/icon_sunpop.png differ diff --git a/app_mrp_workcenter_zchart/static/img/logo_sunpop.png b/app_mrp_workcenter_zchart/static/img/logo_sunpop.png new file mode 100644 index 00000000..bc32c24e Binary files /dev/null and b/app_mrp_workcenter_zchart/static/img/logo_sunpop.png differ diff --git a/app_mrp_workcenter_zchart/views/mrp_workcenter_views.xml b/app_mrp_workcenter_zchart/views/mrp_workcenter_views.xml new file mode 100644 index 00000000..9ab5538c --- /dev/null +++ b/app_mrp_workcenter_zchart/views/mrp_workcenter_views.xml @@ -0,0 +1,100 @@ + + + + + mrp.workcenter.form + mrp.workcenter + + + + + + + + +
+
+ +
+
+ +
+
+
+ + + +
+
+ + + mrp.workcenter.tree + mrp.workcenter + + + + + + + + + + + app.mrp.workcenter.kanban1 + mrp.workcenter + + + + parent_id + + + + + + app.mrp.workcenter.kanban2 + mrp.workcenter + + + + + + + + [] + + + + + + + mrp.workcenter.search + mrp.workcenter + + + + + + + + + + + + + + + + + + {'search_default_group_by_parent_id':1} + + + + Reset Work Center Level + + + form,list + code + action = records._compute_level() + +
diff --git a/app_product_category_zchart/__init__.py b/app_product_category_zchart/__init__.py new file mode 100644 index 00000000..cde864ba --- /dev/null +++ b/app_product_category_zchart/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import models diff --git a/app_product_category_zchart/__manifest__.py b/app_product_category_zchart/__manifest__.py new file mode 100644 index 00000000..9c3f74a9 --- /dev/null +++ b/app_product_category_zchart/__manifest__.py @@ -0,0 +1,70 @@ +# -*- 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': 'Category zChart Hierarchy, 产品目录多层级结构图', + 'version': '15.21.12.06', + 'author': 'odooai.cn', + 'category': 'Base', + 'website': 'https://www.odooai.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. + """, + 'description': """ +Need extra paid apps https://www.odoo.com/apps/modules/14.0/app_web_chart_hierarchy/ +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': [ + 'product', + ], + 'images': ['static/description/banner.gif'], + 'data': [ + 'views/product_category_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_product_category_zchart/controllers/__init__.py b/app_product_category_zchart/controllers/__init__.py new file mode 100644 index 00000000..7ec351fe --- /dev/null +++ b/app_product_category_zchart/controllers/__init__.py @@ -0,0 +1,2 @@ +# -*- coding: utf-8 -* + diff --git a/app_product_category_zchart/i18n/zh_CN.po b/app_product_category_zchart/i18n/zh_CN.po new file mode 100644 index 00000000..93cfbf6d --- /dev/null +++ b/app_product_category_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_product_category_zchart/models/__init__.py b/app_product_category_zchart/models/__init__.py new file mode 100644 index 00000000..d488dbed --- /dev/null +++ b/app_product_category_zchart/models/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import product_category diff --git a/app_product_category_zchart/models/product_category.py b/app_product_category_zchart/models/product_category.py new file mode 100644 index 00000000..2305cb9c --- /dev/null +++ b/app_product_category_zchart/models/product_category.py @@ -0,0 +1,7 @@ +# -*- coding: utf-8 -*- + +from odoo import api, fields, models, tools, _ + + +class ProductCategory(models.Model): + _inherit = "product.category" diff --git a/app_product_category_zchart/static/description/banner.png b/app_product_category_zchart/static/description/banner.png new file mode 100644 index 00000000..a83464d6 Binary files /dev/null and b/app_product_category_zchart/static/description/banner.png differ diff --git a/app_product_category_zchart/static/description/icon.png b/app_product_category_zchart/static/description/icon.png new file mode 100644 index 00000000..a5a31dfd Binary files /dev/null and b/app_product_category_zchart/static/description/icon.png differ diff --git a/app_product_category_zchart/static/description/index.html b/app_product_category_zchart/static/description/index.html new file mode 100644 index 00000000..dc35a53e --- /dev/null +++ b/app_product_category_zchart/static/description/index.html @@ -0,0 +1,212 @@ +
+
+

Product Category Chart Hierarchy

+

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

+
+
+
+
+
+
+ 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 chart hierarchy + + in odoo Store. Get free 5 related free apps. + +

+
+ +
+ + +
+
+
+ +
+
+

 

+

MRP Production Chart Hierarchy

+
+ +
+

If we have a multi Bom like follow:

+
+ +
+

Show sub manufacture order and quick access sub MO

+
+ +
+
+
+ +
+
+

 

+

Product category Chart Hierarchy

+
+ +
+

Show sub category and quick access category

+
+ +
+
+
+
+
+

 

+

Stock Location Chart Hierarchy

+
+ +
+
+
+ +
+
+

 

+

HR Department Chart Hierarchy

+
+ +
+

HR Emploee Chart Hierarchy (this is include in odoo)

+
+ +
+
+
+
+
+

 

+

Account Chart Hierarchy

+
+ +
+
+
+ +
+
+

 

+

User Alliance Distribution Multi level

+
+ +
+
+
+ +
+
+

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

+
+ +
+

Also need to change view for better ui

+
+ +
+


Use follow param to setup widget:

+

image: --the field of image.

+

desc: --the field of subtitle.

+

direct_sub: --the field of sub node.

+

child_all_count: --the field of node count.

+
+
+ +
+
+
+

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_product_category_zchart/static/description/setup1.jpg b/app_product_category_zchart/static/description/setup1.jpg new file mode 100644 index 00000000..310b1e36 Binary files /dev/null and b/app_product_category_zchart/static/description/setup1.jpg differ diff --git a/app_product_category_zchart/static/description/setup2.jpg b/app_product_category_zchart/static/description/setup2.jpg new file mode 100644 index 00000000..0eb197c6 Binary files /dev/null and b/app_product_category_zchart/static/description/setup2.jpg differ diff --git a/app_product_category_zchart/views/product_category_views.xml b/app_product_category_zchart/views/product_category_views.xml new file mode 100644 index 00000000..04e33cb1 --- /dev/null +++ b/app_product_category_zchart/views/product_category_views.xml @@ -0,0 +1,27 @@ + + + + app.product.category.form + product.category + + + +
+
+ + +
+
+ +
+
+
+ + + + + + +
+
+
diff --git a/app_stock_location_zchart/__init__.py b/app_stock_location_zchart/__init__.py new file mode 100644 index 00000000..cde864ba --- /dev/null +++ b/app_stock_location_zchart/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import models diff --git a/app_stock_location_zchart/__manifest__.py b/app_stock_location_zchart/__manifest__.py new file mode 100644 index 00000000..68d87a45 --- /dev/null +++ b/app_stock_location_zchart/__manifest__.py @@ -0,0 +1,71 @@ +# -*- 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': 'Stock Location Chart Hierarchy, 仓库库位多层级结构图', + 'version': '16.24.04.01', + 'author': 'odooai.cn', + 'category': 'Stock', + 'website': 'https://www.odooai.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. + """, + 'description': """ +Need extra paid apps https://www.odoo.com/apps/modules/13.0/app_web_chart_hierarchy/ +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': [ + 'stock', + ], + 'images': ['static/description/banner.gif'], + 'data': [ + 'views/stock_location_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_stock_location_zchart/controllers/__init__.py b/app_stock_location_zchart/controllers/__init__.py new file mode 100644 index 00000000..7ec351fe --- /dev/null +++ b/app_stock_location_zchart/controllers/__init__.py @@ -0,0 +1,2 @@ +# -*- coding: utf-8 -* + diff --git a/app_stock_location_zchart/models/__init__.py b/app_stock_location_zchart/models/__init__.py new file mode 100644 index 00000000..116770b1 --- /dev/null +++ b/app_stock_location_zchart/models/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +# from . import stock_location diff --git a/app_stock_location_zchart/static/description/banner.gif b/app_stock_location_zchart/static/description/banner.gif new file mode 100644 index 00000000..f8c072eb Binary files /dev/null and b/app_stock_location_zchart/static/description/banner.gif differ diff --git a/app_stock_location_zchart/static/description/banner.png b/app_stock_location_zchart/static/description/banner.png new file mode 100644 index 00000000..a83464d6 Binary files /dev/null and b/app_stock_location_zchart/static/description/banner.png differ diff --git a/app_stock_location_zchart/static/description/demo1.jpg b/app_stock_location_zchart/static/description/demo1.jpg new file mode 100644 index 00000000..03fb1e02 Binary files /dev/null and b/app_stock_location_zchart/static/description/demo1.jpg differ diff --git a/app_stock_location_zchart/static/description/demo2.jpg b/app_stock_location_zchart/static/description/demo2.jpg new file mode 100644 index 00000000..632e5db3 Binary files /dev/null and b/app_stock_location_zchart/static/description/demo2.jpg differ diff --git a/app_stock_location_zchart/static/description/demo4.jpg b/app_stock_location_zchart/static/description/demo4.jpg new file mode 100644 index 00000000..99cec169 Binary files /dev/null and b/app_stock_location_zchart/static/description/demo4.jpg differ diff --git a/app_stock_location_zchart/static/description/demo5.jpg b/app_stock_location_zchart/static/description/demo5.jpg new file mode 100644 index 00000000..de5add33 Binary files /dev/null and b/app_stock_location_zchart/static/description/demo5.jpg differ diff --git a/app_stock_location_zchart/static/description/demo6.jpg b/app_stock_location_zchart/static/description/demo6.jpg new file mode 100644 index 00000000..533468d7 Binary files /dev/null and b/app_stock_location_zchart/static/description/demo6.jpg differ diff --git a/app_stock_location_zchart/static/description/demo7.jpg b/app_stock_location_zchart/static/description/demo7.jpg new file mode 100644 index 00000000..4673c00e Binary files /dev/null and b/app_stock_location_zchart/static/description/demo7.jpg differ diff --git a/app_stock_location_zchart/static/description/demo9.jpg b/app_stock_location_zchart/static/description/demo9.jpg new file mode 100644 index 00000000..41c9d853 Binary files /dev/null and b/app_stock_location_zchart/static/description/demo9.jpg differ diff --git a/app_stock_location_zchart/static/description/demo_bom.jpg b/app_stock_location_zchart/static/description/demo_bom.jpg new file mode 100644 index 00000000..22b68079 Binary files /dev/null and b/app_stock_location_zchart/static/description/demo_bom.jpg differ diff --git a/app_stock_location_zchart/static/description/demo_mo.jpg b/app_stock_location_zchart/static/description/demo_mo.jpg new file mode 100644 index 00000000..129af853 Binary files /dev/null and b/app_stock_location_zchart/static/description/demo_mo.jpg differ diff --git a/app_stock_location_zchart/static/description/icon.png b/app_stock_location_zchart/static/description/icon.png new file mode 100644 index 00000000..a5a31dfd Binary files /dev/null and b/app_stock_location_zchart/static/description/icon.png differ diff --git a/app_stock_location_zchart/static/description/index.html b/app_stock_location_zchart/static/description/index.html new file mode 100644 index 00000000..8c9516dc --- /dev/null +++ b/app_stock_location_zchart/static/description/index.html @@ -0,0 +1,212 @@ +
+
+

Stock Location Chart Hierarchy for Multi Level

+

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

+
+
+
+
+
+
+ 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 chart hierarchy + + in odoo Store. Get free 5 related free apps. + +

+
+ +
+ + +
+
+
+ +
+
+

 

+

MRP Production Chart Hierarchy

+
+ +
+

If we have a multi Bom like follow:

+
+ +
+

Show sub manufacture order and quick access sub MO

+
+ +
+
+
+ +
+
+

 

+

Product category Chart Hierarchy

+
+ +
+

Show sub category and quick access category

+
+ +
+
+
+
+
+

 

+

Stock Location Chart Hierarchy

+
+ +
+
+
+ +
+
+

 

+

HR Department Chart Hierarchy

+
+ +
+

HR Emploee Chart Hierarchy (this is include in odoo)

+
+ +
+
+
+
+
+

 

+

Account Chart Hierarchy

+
+ +
+
+
+ +
+
+

 

+

User Alliance Distribution Multi level

+
+ +
+
+
+ +
+
+

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

+
+ +
+

Also need to change view for better ui

+
+ +
+


Use follow param to setup widget:

+

image: --the field of image.

+

desc: --the field of subtitle.

+

direct_sub: --the field of sub node.

+

child_all_count: --the field of node count.

+
+
+ +
+
+
+

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_stock_location_zchart/static/description/setup1.jpg b/app_stock_location_zchart/static/description/setup1.jpg new file mode 100644 index 00000000..310b1e36 Binary files /dev/null and b/app_stock_location_zchart/static/description/setup1.jpg differ diff --git a/app_stock_location_zchart/static/description/setup2.jpg b/app_stock_location_zchart/static/description/setup2.jpg new file mode 100644 index 00000000..0eb197c6 Binary files /dev/null and b/app_stock_location_zchart/static/description/setup2.jpg differ diff --git a/app_stock_location_zchart/views/stock_location_views.xml b/app_stock_location_zchart/views/stock_location_views.xml new file mode 100644 index 00000000..e9cd872c --- /dev/null +++ b/app_stock_location_zchart/views/stock_location_views.xml @@ -0,0 +1,23 @@ + + + + app.stock.location.form + stock.location + + + +
+
+ +
+
+ +
+
+
+ + + +
+
+