diff --git a/app_account_ztree/__init__.py b/app_account_ztree/__init__.py new file mode 100644 index 00000000..787fdfd0 --- /dev/null +++ b/app_account_ztree/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- + +from . import models +from .hooks import post_init_hook diff --git a/app_account_ztree/__manifest__.py b/app_account_ztree/__manifest__.py new file mode 100644 index 00000000..ccc63f30 --- /dev/null +++ b/app_account_ztree/__manifest__.py @@ -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, +} diff --git a/app_account_ztree/hooks.py b/app_account_ztree/hooks.py new file mode 100644 index 00000000..10ec1e29 --- /dev/null +++ b/app_account_ztree/hooks.py @@ -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("") diff --git a/app_account_ztree/i18n/zh_CN.po b/app_account_ztree/i18n/zh_CN.po new file mode 100644 index 00000000..f1e36e3e --- /dev/null +++ b/app_account_ztree/i18n/zh_CN.po @@ -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" diff --git a/app_account_ztree/models/__init__.py b/app_account_ztree/models/__init__.py new file mode 100644 index 00000000..40a96afc --- /dev/null +++ b/app_account_ztree/models/__init__.py @@ -0,0 +1 @@ +# -*- coding: utf-8 -*- diff --git a/app_account_ztree/report/__init__.py b/app_account_ztree/report/__init__.py new file mode 100644 index 00000000..40a96afc --- /dev/null +++ b/app_account_ztree/report/__init__.py @@ -0,0 +1 @@ +# -*- coding: utf-8 -*- diff --git a/app_account_ztree/static/description/banner.gif b/app_account_ztree/static/description/banner.gif new file mode 100644 index 00000000..e69de29b diff --git a/app_account_ztree/static/description/demo1.jpg b/app_account_ztree/static/description/demo1.jpg new file mode 100644 index 00000000..fd538628 Binary files /dev/null and b/app_account_ztree/static/description/demo1.jpg differ diff --git a/app_account_ztree/static/description/demo11.jpg b/app_account_ztree/static/description/demo11.jpg new file mode 100644 index 00000000..72ad356b Binary files /dev/null and b/app_account_ztree/static/description/demo11.jpg differ diff --git a/app_account_ztree/static/description/demo12.jpg b/app_account_ztree/static/description/demo12.jpg new file mode 100644 index 00000000..ecc58186 Binary files /dev/null and b/app_account_ztree/static/description/demo12.jpg differ diff --git a/app_account_ztree/static/description/demo2.jpg b/app_account_ztree/static/description/demo2.jpg new file mode 100644 index 00000000..b856e71d Binary files /dev/null and b/app_account_ztree/static/description/demo2.jpg differ diff --git a/app_account_ztree/static/description/demo3.jpg b/app_account_ztree/static/description/demo3.jpg new file mode 100644 index 00000000..e82b0990 Binary files /dev/null and b/app_account_ztree/static/description/demo3.jpg differ diff --git a/app_account_ztree/static/description/demo4.jpg b/app_account_ztree/static/description/demo4.jpg new file mode 100644 index 00000000..4a4abce1 Binary files /dev/null and b/app_account_ztree/static/description/demo4.jpg differ diff --git a/app_account_ztree/static/description/demo5.jpg b/app_account_ztree/static/description/demo5.jpg new file mode 100644 index 00000000..849b7841 Binary files /dev/null and b/app_account_ztree/static/description/demo5.jpg differ diff --git a/app_account_ztree/static/description/icon.png b/app_account_ztree/static/description/icon.png new file mode 100644 index 00000000..57e223d0 Binary files /dev/null and b/app_account_ztree/static/description/icon.png differ diff --git a/app_account_ztree/static/description/index.html b/app_account_ztree/static/description/index.html new file mode 100644 index 00000000..be2353da --- /dev/null +++ b/app_account_ztree/static/description/index.html @@ -0,0 +1,181 @@ +
+
+

App ztree widget, for parent children tree list. Demo for hr department employee

+

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

+
+
+ +
+
+
+
+ Key features: +
    +
  • + + Easy to make custom parent children tree. +
  • +
  • + + Free to Use in product category. +
  • +
  • + + Free to Use in stock location. +
  • +
  • + + Free to Use in hr department, employee. +
  • +
  • + + It's a widget, you can use it in anywhere in odoo. +
  • +
+
+
+ + + + Extend features. superbar advance search navigator + + +
    +
  • + + Easy to navigate product, employee in tree or kanban view. +
  • +
+
+ +
+
+
+ +
+
+

Use in hr department.

+
+ +
+
+
+ +
+
+

Use in hr employee.

+
+ +
+
+
+ +
+
+

Use in product.

+
+ +
+
+
+ +
+
+

Free to Use in product category.

+
+ +
+
+
+ +
+
+

Free to Use in stock location.

+
+ +
+
+
+ +
+
+

 

+

(!Need extra module and pay, release soon)Easy to navigator.

+

Product, employee in kanban view

+
+ +
+
+
+ +
+
+

(!Need extra module and pay, release soon)List view

+
+ +
+
+
+ +
+
+

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

+
+ +
+


Use follow param to setup widget:

+

ztree_parent_key: --the key field of parent children relation.

+

ztree_expend_level: --how many level to expend the tree for initialize. Default is 2

+

limit: --how many record to show ztree. Default is 16

+

order: --the field to order by

+
+
+
+
+
+

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_account_ztree/static/description/setup1.jpg b/app_account_ztree/static/description/setup1.jpg new file mode 100644 index 00000000..d5ade2b1 Binary files /dev/null and b/app_account_ztree/static/description/setup1.jpg differ diff --git a/app_account_ztree/static/img/icon_sunpop.png b/app_account_ztree/static/img/icon_sunpop.png new file mode 100644 index 00000000..aa490954 Binary files /dev/null and b/app_account_ztree/static/img/icon_sunpop.png differ diff --git a/app_account_ztree/static/img/logo_sunpop.png b/app_account_ztree/static/img/logo_sunpop.png new file mode 100644 index 00000000..90cbe0e2 Binary files /dev/null and b/app_account_ztree/static/img/logo_sunpop.png differ diff --git a/app_account_ztree/views/account_account_views.xml b/app_account_ztree/views/account_account_views.xml new file mode 100644 index 00000000..05be2788 --- /dev/null +++ b/app_account_ztree/views/account_account_views.xml @@ -0,0 +1,15 @@ + + + + + app.account.account.form + account.account + + + + ztree_select + + + + + \ No newline at end of file diff --git a/app_base_company_zchart/__init__.py b/app_base_company_zchart/__init__.py new file mode 100644 index 00000000..cde864ba --- /dev/null +++ b/app_base_company_zchart/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import models diff --git a/app_base_company_zchart/__manifest__.py b/app_base_company_zchart/__manifest__.py new file mode 100644 index 00000000..22cf3233 --- /dev/null +++ b/app_base_company_zchart/__manifest__.py @@ -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 . +# +# 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, +} diff --git a/app_base_company_zchart/controllers/__init__.py b/app_base_company_zchart/controllers/__init__.py new file mode 100644 index 00000000..3d81cdca --- /dev/null +++ b/app_base_company_zchart/controllers/__init__.py @@ -0,0 +1 @@ +# -*- coding: utf-8 -* diff --git a/app_base_company_zchart/i18n/zh_CN.po b/app_base_company_zchart/i18n/zh_CN.po new file mode 100644 index 00000000..b0255d71 --- /dev/null +++ b/app_base_company_zchart/i18n/zh_CN.po @@ -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 "集团公司架构" diff --git a/app_base_company_zchart/models/__init__.py b/app_base_company_zchart/models/__init__.py new file mode 100644 index 00000000..e759f74f --- /dev/null +++ b/app_base_company_zchart/models/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import res_company diff --git a/app_base_company_zchart/models/res_company.py b/app_base_company_zchart/models/res_company.py new file mode 100644 index 00000000..82e2c96e --- /dev/null +++ b/app_base_company_zchart/models/res_company.py @@ -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 + # diff --git a/app_base_company_zchart/security/res_group.xml b/app_base_company_zchart/security/res_group.xml new file mode 100644 index 00000000..9e24c066 --- /dev/null +++ b/app_base_company_zchart/security/res_group.xml @@ -0,0 +1,13 @@ + + + + + + + + + + \ No newline at end of file diff --git a/app_base_company_zchart/static/description/banner.gif b/app_base_company_zchart/static/description/banner.gif new file mode 100644 index 00000000..43754cbf Binary files /dev/null and b/app_base_company_zchart/static/description/banner.gif differ diff --git a/app_base_company_zchart/static/description/banner.png b/app_base_company_zchart/static/description/banner.png new file mode 100644 index 00000000..7716c0fe Binary files /dev/null and b/app_base_company_zchart/static/description/banner.png differ diff --git a/app_base_company_zchart/static/description/banner1.png b/app_base_company_zchart/static/description/banner1.png new file mode 100644 index 00000000..91d450c8 Binary files /dev/null and b/app_base_company_zchart/static/description/banner1.png differ diff --git a/app_base_company_zchart/static/description/demo1.jpg b/app_base_company_zchart/static/description/demo1.jpg new file mode 100644 index 00000000..539bb88b Binary files /dev/null and b/app_base_company_zchart/static/description/demo1.jpg differ diff --git a/app_base_company_zchart/static/description/icon.png b/app_base_company_zchart/static/description/icon.png new file mode 100644 index 00000000..adc7a494 Binary files /dev/null and b/app_base_company_zchart/static/description/icon.png differ diff --git a/app_base_company_zchart/static/description/icon1.png b/app_base_company_zchart/static/description/icon1.png new file mode 100644 index 00000000..a5a31dfd Binary files /dev/null and b/app_base_company_zchart/static/description/icon1.png differ diff --git a/app_base_company_zchart/static/description/index.html b/app_base_company_zchart/static/description/index.html new file mode 100644 index 00000000..af77766e --- /dev/null +++ b/app_base_company_zchart/static/description/index.html @@ -0,0 +1,429 @@ + + + +
+

Odoo Module Template. App sample with widget.

+

Odoo开发规范模板,Widget清单与使用样例

+

Sample Description of app. video and brief and detail demo snap and text

+
+ + + +
+
+

Just Clone this sample to your name to quick create your odoo addons

+

- Sample Local Video. Change to your video -

+
+ + +
+ +
+ +
+
+

- Sample Video on youtube remote. Change to your video -

+
+
+
+
+ +
+


+
+
+ Click above Play. or go + Youtube Video of odoo Advance Search Superbar +
+
+

Demo Gif Animation if you can not get video

+ +
+
+ + + +
+

- Features -

+
+
+
+
+
+
+
+ 1 +
+

+ A full Sample module app of odoo addons. +

+

All the code, views, data ,banner, icon and description sample follow the odoo rule.

+
+
+
+ 2 +
+

+ Sample manifest file. +

+

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

+

https://www.odooai.cn/documentation/16.0/contributing/development/coding_guidelines.html

+
+
+
+ 3 +
+

+ Sample .py models file +

+

for new model and inherit model

+
+
+
+ 4 +
+

+ Sample .xml views file for models +

+

Sample xml views file for models, with list, kanban, form, search

+
+
+
+ 5 +
+

+ Sample controllers file +

+

for website data publish and api developer. including how inherit odoo portal home

+
+
+
+
+
+
+
+ 6 +
+

+ Sample report design file +

+

.py file with how sql define. .xml file for graph and pivot

+
+
+
+ 7 +
+

+ Sample action and menu file +

+

Root menu and menu group and action menu

+
+
+
+ 8 +
+

+ Ui misc sample +

+

Alert like info and special field setup.

+
+
+
+ 9 +
+

+ Odoo Widget sample +

+

170+ widget list document and Frequently Used Sample.

+
+
+
+ 10 +
+

+ Quick access odoo developer Tutorials online. +

+

Document online for chinese and english. Fast visit in China.

+
+
+
+ 11 +
+

+ Full Open Source.Multi-language Support. Multi-Company Support +

+

Support Odoo 17,16,15,14,13,12, Enterprise and Community and odoo.sh Edition.

+

代码完全开源,多语言支持,多公司支持。Odoo 17,16,15,14,13,12, 企业版,社区版,在线SaaS.sh版,等全版本支持

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

So Easy to navigator and search any data.

+

+
+ +
+
+
+ + + +
+
+

- Feature Guide -

+
+
+
+
+
+ +
+
+

+ A full Sample module app of odoo addons. +

+

All the code, views, data ,banner, icon and description sample follow the odoo rule.

+
+ +
+
+
+

+ Sample manifest file. +

+

Including structure and name and description etc, all field sample.

+

Security xml and csv file for role group access rule. + Sample icon, banner, index.html, install/uninstall hooks. + Follow most odoo rule follow

+

https://www.odooai.cn/documentation/16.0/contributing/development/coding_guidelines.html

+
+ +
+
+
+

+ Sample .py models file, for new model and inherit model +

+

Please comment the inherit .py file of product_template.py in produce odoo.

+
+ +
+
+
+

+ Sample .xml views file for models, with list, kanban, form, search +

+

List

+
+ +
+

Kanban

+
+ +
+

Form

+
+ +
+

Search

+
+ +
+
+
+

+ Sample controllers file for website data publish and api developer +

+

including how inherit odoo portal home.

+
+ +
+
+
+

+ Sample report design file. +

+

.py file with how sql define.

+
+ +
+

.xml file for graph and pivot.

+
+ +
+
+ +
+
+
+

+ Sample action and menu file. +

+

Root menu and menu group and action menu.

+
+ +
+
+
+

+ Ui misc sample. Alert like info and special field setup. +

+
+ +
+
+
+

+ Odoo Widget sample. +

+

170+ widget list document

+
+ +
+

Frequently Used Sample.

+
+ +
+
+
+

+ Quick access odoo developer Tutorials online. +

+

Click alert info to visit. Document online for chinese and english. Fast visit in China.

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

- How to setup and use -

+

This app need no extra module. The price already included

+
+
+
+

+ 1. Buy and Install +

+

+ 2. Input the extra information +

+

+ 3. Enjoy and easy use +

+
+
+ +
+
+

4. More information in our FAQ

+
+ https://www.odooai.cn/faq +
+
+
+ + + + + + +
+
+
+

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_base_company_zchart/static/description/qr.png b/app_base_company_zchart/static/description/qr.png new file mode 100644 index 00000000..b7433fc9 Binary files /dev/null and b/app_base_company_zchart/static/description/qr.png differ diff --git a/app_base_company_zchart/static/img/icon_odooai.png b/app_base_company_zchart/static/img/icon_odooai.png new file mode 100644 index 00000000..a022f8d0 Binary files /dev/null and b/app_base_company_zchart/static/img/icon_odooai.png differ diff --git a/app_base_company_zchart/static/img/icon_odooapp.png b/app_base_company_zchart/static/img/icon_odooapp.png new file mode 100644 index 00000000..775a12ee Binary files /dev/null and b/app_base_company_zchart/static/img/icon_odooapp.png differ diff --git a/app_base_company_zchart/static/img/logo_odooai.png b/app_base_company_zchart/static/img/logo_odooai.png new file mode 100644 index 00000000..482f2a50 Binary files /dev/null and b/app_base_company_zchart/static/img/logo_odooai.png differ diff --git a/app_base_company_zchart/static/src/js/odooai.cn b/app_base_company_zchart/static/src/js/odooai.cn new file mode 100644 index 00000000..e69de29b diff --git a/app_base_company_zchart/static/src/scss/odooai.cn b/app_base_company_zchart/static/src/scss/odooai.cn new file mode 100644 index 00000000..e69de29b diff --git a/app_base_company_zchart/static/src/scss/style.scss b/app_base_company_zchart/static/src/scss/style.scss new file mode 100644 index 00000000..02d893e9 --- /dev/null +++ b/app_base_company_zchart/static/src/scss/style.scss @@ -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); + } + } +} + diff --git a/app_base_company_zchart/static/src/xml/odooai.cn b/app_base_company_zchart/static/src/xml/odooai.cn new file mode 100644 index 00000000..e69de29b diff --git a/app_base_company_zchart/views/res_company_views.xml b/app_base_company_zchart/views/res_company_views.xml new file mode 100644 index 00000000..4d330507 --- /dev/null +++ b/app_base_company_zchart/views/res_company_views.xml @@ -0,0 +1,46 @@ + + + + + app.res.company.tree + res.company + + + + + + + + + + app.res.company.form + res.company + + + +
+
+ + + +
+
+

Group Company Chart

+ + +
+
+
+ + + + + + + + + +
+
+
+
diff --git a/app_hr_ztree/__init__.py b/app_hr_ztree/__init__.py new file mode 100644 index 00000000..787fdfd0 --- /dev/null +++ b/app_hr_ztree/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- + +from . import models +from .hooks import post_init_hook diff --git a/app_hr_ztree/__manifest__.py b/app_hr_ztree/__manifest__.py new file mode 100644 index 00000000..938eab9f --- /dev/null +++ b/app_hr_ztree/__manifest__.py @@ -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, +} diff --git a/app_hr_ztree/hooks.py b/app_hr_ztree/hooks.py new file mode 100644 index 00000000..de5d5f5c --- /dev/null +++ b/app_hr_ztree/hooks.py @@ -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("") diff --git a/app_hr_ztree/i18n/zh_CN.po b/app_hr_ztree/i18n/zh_CN.po new file mode 100644 index 00000000..f1e36e3e --- /dev/null +++ b/app_hr_ztree/i18n/zh_CN.po @@ -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" diff --git a/app_hr_ztree/models/__init__.py b/app_hr_ztree/models/__init__.py new file mode 100644 index 00000000..40a96afc --- /dev/null +++ b/app_hr_ztree/models/__init__.py @@ -0,0 +1 @@ +# -*- coding: utf-8 -*- diff --git a/app_hr_ztree/report/__init__.py b/app_hr_ztree/report/__init__.py new file mode 100644 index 00000000..40a96afc --- /dev/null +++ b/app_hr_ztree/report/__init__.py @@ -0,0 +1 @@ +# -*- coding: utf-8 -*- diff --git a/app_hr_ztree/static/description/banner.gif b/app_hr_ztree/static/description/banner.gif new file mode 100644 index 00000000..ac3c0327 Binary files /dev/null and b/app_hr_ztree/static/description/banner.gif differ diff --git a/app_hr_ztree/static/description/demo1.jpg b/app_hr_ztree/static/description/demo1.jpg new file mode 100644 index 00000000..fd538628 Binary files /dev/null and b/app_hr_ztree/static/description/demo1.jpg differ diff --git a/app_hr_ztree/static/description/demo11.jpg b/app_hr_ztree/static/description/demo11.jpg new file mode 100644 index 00000000..72ad356b Binary files /dev/null and b/app_hr_ztree/static/description/demo11.jpg differ diff --git a/app_hr_ztree/static/description/demo12.jpg b/app_hr_ztree/static/description/demo12.jpg new file mode 100644 index 00000000..ecc58186 Binary files /dev/null and b/app_hr_ztree/static/description/demo12.jpg differ diff --git a/app_hr_ztree/static/description/demo2.jpg b/app_hr_ztree/static/description/demo2.jpg new file mode 100644 index 00000000..b856e71d Binary files /dev/null and b/app_hr_ztree/static/description/demo2.jpg differ diff --git a/app_hr_ztree/static/description/demo3.jpg b/app_hr_ztree/static/description/demo3.jpg new file mode 100644 index 00000000..e82b0990 Binary files /dev/null and b/app_hr_ztree/static/description/demo3.jpg differ diff --git a/app_hr_ztree/static/description/demo4.jpg b/app_hr_ztree/static/description/demo4.jpg new file mode 100644 index 00000000..4a4abce1 Binary files /dev/null and b/app_hr_ztree/static/description/demo4.jpg differ diff --git a/app_hr_ztree/static/description/demo5.jpg b/app_hr_ztree/static/description/demo5.jpg new file mode 100644 index 00000000..849b7841 Binary files /dev/null and b/app_hr_ztree/static/description/demo5.jpg differ diff --git a/app_hr_ztree/static/description/icon.png b/app_hr_ztree/static/description/icon.png new file mode 100644 index 00000000..57e223d0 Binary files /dev/null and b/app_hr_ztree/static/description/icon.png differ diff --git a/app_hr_ztree/static/description/index.html b/app_hr_ztree/static/description/index.html new file mode 100644 index 00000000..b9296190 --- /dev/null +++ b/app_hr_ztree/static/description/index.html @@ -0,0 +1,181 @@ +
+
+

App ztree widget, for parent children tree list. Demo for hr department employee

+

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

+
+
+ +
+
+
+
+ Key features: +
    +
  • + + Easy to make custom parent children tree. +
  • +
  • + + Free to Use in product category. +
  • +
  • + + Free to Use in stock location. +
  • +
  • + + Free to Use in hr department, employee. +
  • +
  • + + It's a widget, you can use it in anywhere in odoo. +
  • +
+
+
+ + + + Extend features. superbar advance search navigator + + +
    +
  • + + Easy to navigate product, employee in tree or kanban view. +
  • +
+
+ +
+
+
+ +
+
+

Use in hr department.

+
+ +
+
+
+ +
+
+

Use in hr employee.

+
+ +
+
+
+ +
+
+

Use in product.

+
+ +
+
+
+ +
+
+

Free to Use in product category.

+
+ +
+
+
+ +
+
+

Free to Use in stock location.

+
+ +
+
+
+ +
+
+

 

+

(!Need extra module and pay, release soon)Easy to navigator.

+

Product, employee in kanban view

+
+ +
+
+
+ +
+
+

(!Need extra module and pay, release soon)List view

+
+ +
+
+
+ +
+
+

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

+
+ +
+


Use follow param to setup widget:

+

ztree_parent_key: --the key field of parent children relation.

+

ztree_expend_level: --how many level to expend the tree for initialize. Default is 2

+

limit: --how many record to show ztree. Default is 16

+

order: --the field to order by

+
+
+
+
+
+

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_ztree/static/description/setup1.jpg b/app_hr_ztree/static/description/setup1.jpg new file mode 100644 index 00000000..d5ade2b1 Binary files /dev/null and b/app_hr_ztree/static/description/setup1.jpg differ diff --git a/app_hr_ztree/static/img/icon_sunpop.png b/app_hr_ztree/static/img/icon_sunpop.png new file mode 100644 index 00000000..aa490954 Binary files /dev/null and b/app_hr_ztree/static/img/icon_sunpop.png differ diff --git a/app_hr_ztree/static/img/logo_sunpop.png b/app_hr_ztree/static/img/logo_sunpop.png new file mode 100644 index 00000000..90cbe0e2 Binary files /dev/null and b/app_hr_ztree/static/img/logo_sunpop.png differ diff --git a/app_hr_ztree/views/hr_views.xml b/app_hr_ztree/views/hr_views.xml new file mode 100644 index 00000000..39d13f8f --- /dev/null +++ b/app_hr_ztree/views/hr_views.xml @@ -0,0 +1,29 @@ + + + + + app.hr.department.form + hr.department + + + + + ztree_select + {'ztree_parent_key': 'parent_id','ztree_expend_level': '1', 'ztree_name_field': 'name'} + + + + + app.hr.employee.form + hr.employee + + + + + ztree_select + {'ztree_parent_key': 'parent_id','ztree_expend_level': '1', 'ztree_name_field': 'name'} + + + + + \ No newline at end of file diff --git a/app_product_ztree/__init__.py b/app_product_ztree/__init__.py new file mode 100644 index 00000000..787fdfd0 --- /dev/null +++ b/app_product_ztree/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- + +from . import models +from .hooks import post_init_hook diff --git a/app_product_ztree/__manifest__.py b/app_product_ztree/__manifest__.py new file mode 100644 index 00000000..c4256b7a --- /dev/null +++ b/app_product_ztree/__manifest__.py @@ -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, +} diff --git a/app_product_ztree/hooks.py b/app_product_ztree/hooks.py new file mode 100644 index 00000000..10ec1e29 --- /dev/null +++ b/app_product_ztree/hooks.py @@ -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("") diff --git a/app_product_ztree/i18n/zh_CN.po b/app_product_ztree/i18n/zh_CN.po new file mode 100644 index 00000000..f1e36e3e --- /dev/null +++ b/app_product_ztree/i18n/zh_CN.po @@ -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" diff --git a/app_product_ztree/models/__init__.py b/app_product_ztree/models/__init__.py new file mode 100644 index 00000000..40a96afc --- /dev/null +++ b/app_product_ztree/models/__init__.py @@ -0,0 +1 @@ +# -*- coding: utf-8 -*- diff --git a/app_product_ztree/models/product_category.py b/app_product_ztree/models/product_category.py new file mode 100644 index 00000000..cd7a37c9 --- /dev/null +++ b/app_product_ztree/models/product_category.py @@ -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() diff --git a/app_product_ztree/report/__init__.py b/app_product_ztree/report/__init__.py new file mode 100644 index 00000000..73f7b46d --- /dev/null +++ b/app_product_ztree/report/__init__.py @@ -0,0 +1,2 @@ +# -*- coding: utf-8 -*- + \ No newline at end of file diff --git a/app_product_ztree/static/description/banner.gif b/app_product_ztree/static/description/banner.gif new file mode 100644 index 00000000..ac3c0327 Binary files /dev/null and b/app_product_ztree/static/description/banner.gif differ diff --git a/app_product_ztree/static/description/demo1.jpg b/app_product_ztree/static/description/demo1.jpg new file mode 100644 index 00000000..fd538628 Binary files /dev/null and b/app_product_ztree/static/description/demo1.jpg differ diff --git a/app_product_ztree/static/description/demo11.jpg b/app_product_ztree/static/description/demo11.jpg new file mode 100644 index 00000000..72ad356b Binary files /dev/null and b/app_product_ztree/static/description/demo11.jpg differ diff --git a/app_product_ztree/static/description/demo12.jpg b/app_product_ztree/static/description/demo12.jpg new file mode 100644 index 00000000..ecc58186 Binary files /dev/null and b/app_product_ztree/static/description/demo12.jpg differ diff --git a/app_product_ztree/static/description/demo2.jpg b/app_product_ztree/static/description/demo2.jpg new file mode 100644 index 00000000..b856e71d Binary files /dev/null and b/app_product_ztree/static/description/demo2.jpg differ diff --git a/app_product_ztree/static/description/demo3.jpg b/app_product_ztree/static/description/demo3.jpg new file mode 100644 index 00000000..e82b0990 Binary files /dev/null and b/app_product_ztree/static/description/demo3.jpg differ diff --git a/app_product_ztree/static/description/demo4.jpg b/app_product_ztree/static/description/demo4.jpg new file mode 100644 index 00000000..4a4abce1 Binary files /dev/null and b/app_product_ztree/static/description/demo4.jpg differ diff --git a/app_product_ztree/static/description/demo5.jpg b/app_product_ztree/static/description/demo5.jpg new file mode 100644 index 00000000..849b7841 Binary files /dev/null and b/app_product_ztree/static/description/demo5.jpg differ diff --git a/app_product_ztree/static/description/icon.png b/app_product_ztree/static/description/icon.png new file mode 100644 index 00000000..57e223d0 Binary files /dev/null and b/app_product_ztree/static/description/icon.png differ diff --git a/app_product_ztree/static/description/index.html b/app_product_ztree/static/description/index.html new file mode 100644 index 00000000..65199120 --- /dev/null +++ b/app_product_ztree/static/description/index.html @@ -0,0 +1,182 @@ +
+
+

App ztree widget, for parent children tree list. Demo for product category

+

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

+
+
+ +
+
+
+
+ Key features: +
    +
  • + + Easy to make custom parent children tree. +
  • +
  • + + Free to Use in product category. +
  • +
  • + + Free to Use in stock location. +
  • +
  • + + Free to Use in hr department, employee. +
  • +
  • + + It's a widget, you can use it in anywhere in odoo. +
  • +
+
+
+ + + + Extend features. superbar advance search navigator + + +
    +
  • + + Easy to navigate product, employee in tree or kanban view. +
  • +
+
+ +
+
+
+ +
+
+

Use in product.

+
+ +
+
+
+ +
+
+

Free to Use in product category.

+
+ +
+
+
+ +
+
+

Free to Use in stock location.

+
+ +
+
+
+ +
+
+

Use in hr department.

+
+ +
+
+
+ +
+
+

Use in hr employee.

+
+ +
+
+
+ + +
+
+

 

+

(!Need extra module and pay, release soon)Easy to navigator.

+

Product, employee in kanban view

+
+ +
+
+
+ +
+
+

(!Need extra module and pay, release soon)List view

+
+ +
+
+
+ +
+
+

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

+
+ +
+


Use follow param to setup widget:

+

ztree_parent_key: --the key field of parent children relation.

+

ztree_expend_level: --how many level to expend the tree for initialize. Default is 2

+

limit: --how many record to show ztree. Default is 16

+

order: --the field to order by

+
+
+
+
+
+

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_ztree/static/description/setup1.jpg b/app_product_ztree/static/description/setup1.jpg new file mode 100644 index 00000000..d5ade2b1 Binary files /dev/null and b/app_product_ztree/static/description/setup1.jpg differ diff --git a/app_product_ztree/static/img/icon_sunpop.png b/app_product_ztree/static/img/icon_sunpop.png new file mode 100644 index 00000000..aa490954 Binary files /dev/null and b/app_product_ztree/static/img/icon_sunpop.png differ diff --git a/app_product_ztree/static/img/logo_sunpop.png b/app_product_ztree/static/img/logo_sunpop.png new file mode 100644 index 00000000..90cbe0e2 Binary files /dev/null and b/app_product_ztree/static/img/logo_sunpop.png differ diff --git a/app_product_ztree/views/product_views.xml b/app_product_ztree/views/product_views.xml new file mode 100644 index 00000000..a66a446e --- /dev/null +++ b/app_product_ztree/views/product_views.xml @@ -0,0 +1,54 @@ + + + + + app.product.template.tree + product.template + + + + + ztree_select + {'ztree_parent_key': 'parent_id','ztree_expend_level': '2', 'ztree_name_field': 'name', 'order': 'name' } + + + + + app.product.template.form + product.template + + + + + ztree_select + {'ztree_parent_key': 'parent_id','ztree_expend_level': '2', 'ztree_name_field': 'name', 'order': 'name' } + + + + + + app.product.product.tree + product.product + + + + + ztree_select + {'ztree_parent_key': 'parent_id','ztree_expend_level': '2', 'ztree_name_field': 'name', 'order': 'name' } + + + + + app.product.category.form + product.category + + + + + ztree_select + {'ztree_parent_key': 'parent_id','ztree_expend_level': '2', 'order': 'name' } + + + + + \ No newline at end of file diff --git a/app_stock_ztree/__init__.py b/app_stock_ztree/__init__.py new file mode 100644 index 00000000..787fdfd0 --- /dev/null +++ b/app_stock_ztree/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- + +from . import models +from .hooks import post_init_hook diff --git a/app_stock_ztree/__manifest__.py b/app_stock_ztree/__manifest__.py new file mode 100644 index 00000000..2c004040 --- /dev/null +++ b/app_stock_ztree/__manifest__.py @@ -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, +} diff --git a/app_stock_ztree/hooks.py b/app_stock_ztree/hooks.py new file mode 100644 index 00000000..c48504e8 --- /dev/null +++ b/app_stock_ztree/hooks.py @@ -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("") diff --git a/app_stock_ztree/i18n/zh_CN.po b/app_stock_ztree/i18n/zh_CN.po new file mode 100644 index 00000000..f1e36e3e --- /dev/null +++ b/app_stock_ztree/i18n/zh_CN.po @@ -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" diff --git a/app_stock_ztree/models/__init__.py b/app_stock_ztree/models/__init__.py new file mode 100644 index 00000000..40a96afc --- /dev/null +++ b/app_stock_ztree/models/__init__.py @@ -0,0 +1 @@ +# -*- coding: utf-8 -*- diff --git a/app_stock_ztree/report/__init__.py b/app_stock_ztree/report/__init__.py new file mode 100644 index 00000000..40a96afc --- /dev/null +++ b/app_stock_ztree/report/__init__.py @@ -0,0 +1 @@ +# -*- coding: utf-8 -*- diff --git a/app_stock_ztree/static/description/banner.gif b/app_stock_ztree/static/description/banner.gif new file mode 100644 index 00000000..ac3c0327 Binary files /dev/null and b/app_stock_ztree/static/description/banner.gif differ diff --git a/app_stock_ztree/static/description/demo1.jpg b/app_stock_ztree/static/description/demo1.jpg new file mode 100644 index 00000000..fd538628 Binary files /dev/null and b/app_stock_ztree/static/description/demo1.jpg differ diff --git a/app_stock_ztree/static/description/demo11.jpg b/app_stock_ztree/static/description/demo11.jpg new file mode 100644 index 00000000..72ad356b Binary files /dev/null and b/app_stock_ztree/static/description/demo11.jpg differ diff --git a/app_stock_ztree/static/description/demo12.jpg b/app_stock_ztree/static/description/demo12.jpg new file mode 100644 index 00000000..ecc58186 Binary files /dev/null and b/app_stock_ztree/static/description/demo12.jpg differ diff --git a/app_stock_ztree/static/description/demo2.jpg b/app_stock_ztree/static/description/demo2.jpg new file mode 100644 index 00000000..b856e71d Binary files /dev/null and b/app_stock_ztree/static/description/demo2.jpg differ diff --git a/app_stock_ztree/static/description/demo3.jpg b/app_stock_ztree/static/description/demo3.jpg new file mode 100644 index 00000000..e82b0990 Binary files /dev/null and b/app_stock_ztree/static/description/demo3.jpg differ diff --git a/app_stock_ztree/static/description/demo4.jpg b/app_stock_ztree/static/description/demo4.jpg new file mode 100644 index 00000000..4a4abce1 Binary files /dev/null and b/app_stock_ztree/static/description/demo4.jpg differ diff --git a/app_stock_ztree/static/description/demo5.jpg b/app_stock_ztree/static/description/demo5.jpg new file mode 100644 index 00000000..849b7841 Binary files /dev/null and b/app_stock_ztree/static/description/demo5.jpg differ diff --git a/app_stock_ztree/static/description/icon.png b/app_stock_ztree/static/description/icon.png new file mode 100644 index 00000000..57e223d0 Binary files /dev/null and b/app_stock_ztree/static/description/icon.png differ diff --git a/app_stock_ztree/static/description/index.html b/app_stock_ztree/static/description/index.html new file mode 100644 index 00000000..92a14b32 --- /dev/null +++ b/app_stock_ztree/static/description/index.html @@ -0,0 +1,183 @@ +
+
+

App ztree widget, for parent children tree list. Demo for stock location.

+

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

+
+
+ +
+
+
+
+ Key features: +
    +
  • + + Easy to make custom parent children tree. +
  • +
  • + + Free to Use in product category. +
  • +
  • + + Free to Use in stock location. +
  • +
  • + + Free to Use in hr department, employee. +
  • +
  • + + It's a widget, you can use it in anywhere in odoo. +
  • +
+
+
+ + + + Extend features. superbar advance search navigator + + +
    +
  • + + Easy to navigate product, employee in tree or kanban view. +
  • +
+
+ +
+
+
+ +
+
+

Free to Use in stock location.

+
+ +
+
+
+ +
+
+

Use in product.

+
+ +
+
+
+ +
+
+

Free to Use in product category.

+
+ +
+
+
+ + +
+
+

Use in hr department.

+
+ +
+
+
+ +
+
+

Use in hr employee.

+
+ +
+
+
+ + +
+
+

 

+

(!Need extra module and pay, release soon)Easy to navigator.

+

Product, employee in kanban view

+
+ +
+
+
+ +
+
+

(!Need extra module and pay, release soon)List view

+
+ +
+
+
+ +
+
+

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

+
+ +
+


Use follow param to setup widget:

+

ztree_parent_key: --the key field of parent children relation.

+

ztree_expend_level: --how many level to expend the tree for initialize. Default is 2

+

limit: --how many record to show ztree. Default is 16

+

order: --the field to order by

+
+
+
+
+
+

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_ztree/static/description/setup1.jpg b/app_stock_ztree/static/description/setup1.jpg new file mode 100644 index 00000000..d5ade2b1 Binary files /dev/null and b/app_stock_ztree/static/description/setup1.jpg differ diff --git a/app_stock_ztree/static/img/icon_sunpop.png b/app_stock_ztree/static/img/icon_sunpop.png new file mode 100644 index 00000000..aa490954 Binary files /dev/null and b/app_stock_ztree/static/img/icon_sunpop.png differ diff --git a/app_stock_ztree/static/img/logo_sunpop.png b/app_stock_ztree/static/img/logo_sunpop.png new file mode 100644 index 00000000..90cbe0e2 Binary files /dev/null and b/app_stock_ztree/static/img/logo_sunpop.png differ diff --git a/app_stock_ztree/views/stock_views.xml b/app_stock_ztree/views/stock_views.xml new file mode 100644 index 00000000..32fa849c --- /dev/null +++ b/app_stock_ztree/views/stock_views.xml @@ -0,0 +1,17 @@ + + + + + app.stock.location.form + stock.location + + + + + ztree_select + {'ztree_parent_key': 'location_id','ztree_expend_level': '1', 'ztree_name_field': 'name'} + + + + + \ No newline at end of file