opt wl_base

This commit is contained in:
Ivan Office
2024-05-24 16:21:08 +08:00
parent 2dcd9f9b7c
commit 57a545edc3
3 changed files with 11 additions and 1 deletions

View File

@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
# from . import res_company
from . import res_company

View File

@@ -6,5 +6,14 @@ from odoo import api, fields, models, tools, _
class Company(models.Model):
_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

View File

@@ -73,6 +73,7 @@
'app_chatgpt/static/src/components/*/*.xml',
],
},
# win: openai=0.27.0
'external_dependencies': {'python': ['openai']},
'installable': True,
'application': True,