mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
opt wl_base, misc
This commit is contained in:
@@ -10,7 +10,7 @@ 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='Child Companies', compute='_compute_all_child_ids')
|
all_child_ids = fields.One2many('res.company', string='All Child Companies', compute='_compute_all_child_ids')
|
||||||
|
|
||||||
@api.depends('parent_id', 'child_ids')
|
@api.depends('parent_id', 'child_ids')
|
||||||
def _compute_all_child_ids(self):
|
def _compute_all_child_ids(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user