mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
fix
This commit is contained in:
@@ -26,14 +26,14 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
'name': 'Group Company Multi Level Chart Hierarchy, 集团公司多层级结构图zChart',
|
'name': 'Group Company Multi Level Chart Hierarchy, 集团公司多层级结构图zChart',
|
||||||
'version': '17.0.24.05.06',
|
'version': '17.0.24.12.04',
|
||||||
'author': 'odooai.cn',
|
'author': 'odooai.cn',
|
||||||
'category': 'Extra tools',
|
'category': 'Extra tools',
|
||||||
'website': 'https://www.odooai.cn',
|
'website': 'https://www.odooai.cn',
|
||||||
'live_test_url': 'https://demo.odooapp.cn',
|
'live_test_url': 'https://demo.odooapp.cn',
|
||||||
'license': 'LGPL-3',
|
'license': 'LGPL-3',
|
||||||
'sequence': 2,
|
'sequence': 2,
|
||||||
'price': 999.00,
|
'price': 0.00,
|
||||||
'currency': 'EUR',
|
'currency': 'EUR',
|
||||||
'images': ['static/description/banner.png'],
|
'images': ['static/description/banner.png'],
|
||||||
'summary': '''
|
'summary': '''
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ class Company(models.Model):
|
|||||||
parent_path = fields.Char(index=True, unaccent=False)
|
parent_path = fields.Char(index=True, unaccent=False)
|
||||||
|
|
||||||
# 注意,res.partner 有 parent_id 和 child_ids
|
# 注意,res.partner 有 parent_id 和 child_ids
|
||||||
all_child_ids = fields.One2many('res.company', string='All Child Companies', compute=False)
|
# all_child_ids = fields.One2many('res.company', string='All Child Companies', compute=False)
|
||||||
|
#
|
||||||
@api.depends('parent_id', 'child_ids')
|
# @api.depends('parent_id', 'child_ids')
|
||||||
def _compute_all_child_ids(self):
|
# def _compute_all_child_ids(self):
|
||||||
pass
|
# pass
|
||||||
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user