update misc

This commit is contained in:
Ivan Office
2024-05-31 12:45:16 +08:00
parent 8b03812913
commit afb6535d02
4 changed files with 42 additions and 108 deletions

View File

@@ -66,14 +66,8 @@ This module extend to show a Hierarchy chart
# 'website',
],
'data': [
# please add your file
# please comment follow on ur produce odoo
# 'security/app_security.xml',
# 'security/ir.model.access.csv',
# 'views/model_new_views.xml',
# 'report/model_new_report_views.xml',
# 'views/menu_views.xml',
# 'views/website_templates.xml',
'security/res_group.xml',
'views/res_company_views.xml',
],
'assets': {
'web.assets_frontend': [
@@ -84,12 +78,7 @@ This module extend to show a Hierarchy chart
],
},
'demo': [
'security/res_group.xml',
'views/res_company_views.xml',
],
# 'pre_init_hook': 'pre_init_hook',
# 'post_init_hook': 'post_init_hook',
# 'uninstall_hook': 'uninstall_hook',
'installable': True,
'application': True,
'auto_install': False,

View File

@@ -1,55 +0,0 @@
# -*- 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': 'Group Company Multi Level Chart Hierarchy, 集团公司多层级结构图zChart',
'version': '16.24.05.06',
'author': 'odooai.cn',
'category': 'Sales',
'website': 'https://www.odooai.cn',
'license': 'LGPL-3',
'sequence': 2,
'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.
(N+1, N+2, direct subordinates)
""",
'price': 0.00,
'currency': 'EUR',
'depends': [
'base',
],
'images': ['static/description/banner.png'],
'data': [
# 'security/res_group.xml',
# 'views/res_company_views.xml',
],
'installable': True,
'application': True,
'auto_install': False,
}

View File

@@ -16,4 +16,3 @@ class Company(models.Model):
def _compute_all_child_ids(self):
pass

View File

@@ -1,44 +1,45 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="app_view_company_tree" model="ir.ui.view">
<field name="name">app.res.company.tree</field>
<field name="model">res.company</field>
<field name="inherit_id" ref="base.view_company_tree"/>
<field name="arch" type="xml">
<xpath expr="//tree" position="inside">
<field name="parent_id" optional="show"/>
</xpath>
</field>
</record>
<record id="app_view_company_tree" model="ir.ui.view">
<field name="name">app.res.company.tree</field>
<field name="model">res.company</field>
<field name="inherit_id" ref="base.view_company_tree"/>
<field name="arch" type="xml">
<xpath expr="//tree" position="inside">
<field name="parent_id" optional="show"/>
</xpath>
</field>
</record>
<record id="app_view_company_form" model="ir.ui.view">
<field name="name">app.res.company.form</field>
<field name="model">res.company</field>
<field name="inherit_id" ref="base.view_company_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='logo']" position="before">
<div id="o_node_container">
<div id="o_node_main">
<span id="add_image"/>
<span id="add_title"/>
<span id="add_notebook"/>
<record id="app_view_company_form" model="ir.ui.view">
<field name="name">app.res.company.form</field>
<field name="model">res.company</field>
<field name="inherit_id" ref="base.view_company_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='logo']" position="before">
<div id="o_node_container">
<div id="o_node_main">
<span id="add_image"/>
<span id="add_title"/>
<span id="add_notebook"/>
</div>
<div id="o_node_right">
<h4 class="o_chart_hierarchy_title mb16 mt0">Group Company Chart</h4>
<field name="child_ids" widget="ztree_chart" nolabel="1"/>
</div>
</div>
<div id="o_node_right">
<h4 class="o_chart_hierarchy_title mb16 mt0">Group Company Chart</h4>
<field name="child_ids" widget="ztree_chart" nolabel="1"/>
</div>
</div>
</xpath>
<xpath expr="//span[@id='add_image']" position="after">
<xpath expr="//field[@name='logo']" position="move"/>
</xpath>
<xpath expr="//span[@id='add_title']" position="after">
<xpath expr="//div[hasclass('oe_title')]" position="move"/>
</xpath>
<xpath expr="//span[@id='add_notebook']" position="after">
<xpath expr="//notebook" position="move"/>
</xpath>
</field>
</record>
</xpath>
<xpath expr="//span[@id='add_image']" position="after">
<xpath expr="//field[@name='logo']" position="move"/>
</xpath>
<xpath expr="//span[@id='add_title']" position="after">
<xpath expr="//div[hasclass('oe_title')]" position="move"/>
</xpath>
<xpath expr="//span[@id='add_notebook']" position="after">
<xpath expr="//notebook" position="move"/>
</xpath>
</field>
</record>
</data>
</odoo>