mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
fix zchart
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
|
||||
{
|
||||
'name': 'Group Company Multi Level Chart Hierarchy, 集团公司多层级结构图zChart',
|
||||
'version': '16.24.05.06',
|
||||
'version': '16.24.11.27',
|
||||
'author': 'odooai.cn',
|
||||
'category': 'Extra tools',
|
||||
'website': 'https://www.odooai.cn',
|
||||
|
||||
@@ -10,7 +10,7 @@ class Company(models.Model):
|
||||
parent_path = fields.Char(index=True, unaccent=False)
|
||||
|
||||
# 注意,res.partner 有 parent_id 和 child_ids
|
||||
all_child_ids = fields.One2many('res.company', string='All Child Companies', compute='_compute_all_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):
|
||||
|
||||
Reference in New Issue
Block a user