mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
opt wl_base
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# from . import res_company
|
from . import res_company
|
||||||
|
|||||||
@@ -6,5 +6,14 @@ from odoo import api, fields, models, tools, _
|
|||||||
class Company(models.Model):
|
class Company(models.Model):
|
||||||
_inherit = "res.company"
|
_inherit = "res.company"
|
||||||
|
|
||||||
# 注意,res.partner 有 parent_id 和 child_ids
|
_parent_store = True
|
||||||
|
parent_path = fields.Char(index=True, unaccent=False)
|
||||||
|
|
||||||
|
# 注意,res.partner 有 parent_id 和 child_ids
|
||||||
|
all_child_ids = fields.One2many('res.company', string='Child Companies', compute='_compute_all_child_ids')
|
||||||
|
|
||||||
|
@api.depends('parent_id', 'child_ids')
|
||||||
|
def _compute_all_child_ids(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -73,6 +73,7 @@
|
|||||||
'app_chatgpt/static/src/components/*/*.xml',
|
'app_chatgpt/static/src/components/*/*.xml',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
# win: openai=0.27.0
|
||||||
'external_dependencies': {'python': ['openai']},
|
'external_dependencies': {'python': ['openai']},
|
||||||
'installable': True,
|
'installable': True,
|
||||||
'application': True,
|
'application': True,
|
||||||
|
|||||||
Reference in New Issue
Block a user