优化会计科目表相关

This commit is contained in:
Ivan Office
2024-12-12 23:46:59 +08:00
parent 92219416ac
commit fedad73946
19 changed files with 367 additions and 151 deletions

View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*-
from datetime import timedelta, datetime, date
import calendar
from odoo import fields, models, api, _
from odoo.exceptions import ValidationError, UserError, RedirectWarning
from odoo.tools.mail import is_html_empty
from odoo.tools.misc import format_date
from odoo.tools.float_utils import float_round, float_is_zero
from odoo.addons.account.models.account_move import MAX_HASH_VERSION
class ResCompany(models.Model):
_inherit = ['res.company']
coa_delimiter = fields.Char(string='COA Delimiter', related='chart_template_id.delimiter', readonly=False,
help='Delimiter after parent account in Chart of Accounts')