This commit is contained in:
ivan deng
2021-03-31 23:21:26 +08:00
parent effa625cec
commit 6b8d15ce85
23 changed files with 1045 additions and 24 deletions

View File

@@ -3,6 +3,7 @@
import logging
from odoo import api, fields, models, _
from odoo.exceptions import UserError, ValidationError
_logger = logging.getLogger(__name__)
@@ -337,6 +338,7 @@ class ResConfigSettings(models.TransientModel):
return res
def remove_account_chart(self):
# todo: 安装会计模块后,会有问题,后续处理
company_id = self.env.company.id
self = self.with_context(force_company=company_id, company_id=company_id)
to_removes = [