commit 53b7d224297d4175fccd33e5b647ce655a87107d
Author: 南风 <916903192@qq.com>
Date: Wed Nov 4 19:58:07 2026 +0800
初始提交
diff --git a/account_accountant/__init__.py b/account_accountant/__init__.py
new file mode 100644
index 0000000..2944115
--- /dev/null
+++ b/account_accountant/__init__.py
@@ -0,0 +1,45 @@
+# -*- coding: utf-8 -*-
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
+
+from . import demo
+from . import models
+from . import wizard
+
+from odoo import Command
+
+import logging
+
+_logger = logging.getLogger(__name__)
+
+
+def _account_accountant_post_init(env):
+ company = env.company
+ if company.country_id and 'SEPA' in company.country_id.country_group_codes:
+ module_ids = env['ir.module.module'].search([
+ ('name', 'in', ['account_iso20022', 'account_bank_statement_import_camt']),
+ ('state', '=', 'uninstalled')
+ ])
+ if module_ids:
+ module_ids.sudo().button_install()
+
+ env['account.chart.template']._load_pre_defined_data({
+ 'res.company': {
+ 'deferred_expense_journal_id',
+ 'deferred_revenue_journal_id',
+ 'deferred_expense_account_id',
+ 'deferred_revenue_account_id',
+ },
+ })
+
+
+def uninstall_hook(env):
+ # Disable the basic group to remove access menus defined in account
+ group_basic = env.ref('account.group_account_basic')
+ group_manager = env.ref('account.group_account_manager')
+ if group_basic:
+ group_basic.write({
+ 'user_ids': [Command.clear()],
+ })
+ group_manager.write({
+ 'implied_ids': [Command.unlink(group_basic.id)],
+ })
diff --git a/account_accountant/__manifest__.py b/account_accountant/__manifest__.py
new file mode 100644
index 0000000..12fa2f7
--- /dev/null
+++ b/account_accountant/__manifest__.py
@@ -0,0 +1,65 @@
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
+{
+ 'name': 'Invoicing',
+ 'version': '1.1',
+ 'category': 'Accounting/Accounting',
+ 'sequence': 30,
+ 'summary': 'Invoices, Payments, Follow-ups & Bank synchronization (Enterprise)',
+ 'icon': '/account/static/description/icon.png',
+ 'description': """
+Invoicing Access Rights
+========================
+It gives the Administrator user access to important invoicing features such as bank recon and payment follow-up.
+
+""",
+ 'website': 'https://www.odoo.com/app/accounting',
+ 'depends': ['account', 'mail_enterprise', 'web_tour'],
+ 'data': [
+ 'data/ir_cron.xml',
+ 'data/digest_data.xml',
+ 'data/account_accountant_tour.xml',
+ 'data/ir_config_parameters.xml',
+ 'security/account_accountant_security.xml',
+
+ 'views/account_account_views.xml',
+ 'views/account_fiscal_year_view.xml',
+ 'views/account_journal_dashboard_views.xml',
+ 'views/account_move_views.xml',
+ 'views/account_payment_views.xml',
+ 'views/account_reconcile_views.xml',
+ 'views/account_accountant_menuitems.xml',
+ 'views/digest_views.xml',
+ 'views/res_config_settings_views.xml',
+ 'views/product_views.xml',
+ 'views/bank_rec_widget_views.xml',
+ 'views/report_invoice.xml',
+ 'views/account_journal_views.xml',
+
+ 'wizard/account_change_lock_date.xml',
+ 'wizard/account_auto_reconcile_wizard.xml',
+ 'wizard/account_reconcile_wizard.xml',
+ 'wizard/bank_rec_auto_reconcile_wizard.xml',
+ 'wizard/account_select_account_line.xml',
+ 'wizard/account_split_journal_item_wizard.xml',
+ 'security/ir.access.csv',
+ ],
+ 'auto_install': True,
+ 'post_init_hook': '_account_accountant_post_init',
+ 'uninstall_hook': "uninstall_hook",
+ 'author': 'Odoo S.A.',
+ 'license': 'OEEL-1',
+ 'assets': {
+ 'web.assets_backend': [
+ 'account_accountant/static/src/js/tours/account_accountant.js',
+ 'account_accountant/static/src/components/**/*',
+ 'account_accountant/static/src/**/*.xml',
+ ],
+ 'web.assets_unit_tests': [
+ 'account_accountant/static/tests/**/*',
+ ('remove', 'account_accountant/static/tests/tours/**/*'),
+ ],
+ 'web.assets_tests': [
+ 'account_accountant/static/tests/tours/**/*',
+ ],
+ }
+}
diff --git a/account_accountant/data/account_accountant_tour.xml b/account_accountant/data/account_accountant_tour.xml
new file mode 100644
index 0000000..de75a92
--- /dev/null
+++ b/account_accountant/data/account_accountant_tour.xml
@@ -0,0 +1,11 @@
+
+
+
+ account_accountant_tour
+ 60
+ Good job! You went through all steps of this tour.
+ See how to manage your customer invoices in the Customers/Invoices menu
+ ]]>
+
+
diff --git a/account_accountant/data/digest_data.xml b/account_accountant/data/digest_data.xml
new file mode 100644
index 0000000..b38e81f
--- /dev/null
+++ b/account_accountant/data/digest_data.xml
@@ -0,0 +1,37 @@
+
+
+
+
+ True
+
+
+
+
+ Tip: Bulk update journal items
+ 900
+
+
+
+ Tip: Bulk update journal items
+
From any list view, select multiple records and the list becomes editable. If you update a cell, selected records are updated all at once. Use this feature to update multiple journal entries from the General Ledger, or any Journal view.
+
+
+
+
+
+ Tip: Find an Accountant or register your Accounting Firm
+ 1000
+
+
+
+ Tip: Find an Accountant or register your Accounting Firm
+
Click here to find an accountant or if you want to list out your accounting services on Odoo