优化account结构

This commit is contained in:
Ivan Office
2024-12-13 01:51:24 +08:00
parent 5ff8f435cc
commit a0ff4c8ebf
13 changed files with 224 additions and 105 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', readonly=False, default='.',
help='Delimiter after parent account in Chart of Accounts')