# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
    'name' : 'Accounting Reports',
    'summary': 'View and create reports',
    'category': 'Odex30-Accounting/Odex30-Accounting',
    'author': "Expert Co. Ltd.",
    'website': "http://www.exp-sa.com",
    'description': """
Accounting Reports
==================
    """,
    'depends': ['account'],
    'data': [
        'security/ir.model.access.csv',
        'data/pdf_export_templates.xml',
        'data/customer_reports_pdf_export_templates.xml',
        'data/balance_sheet.xml',
        'data/cash_flow_report.xml',
        'data/executive_summary.xml',
        'data/profit_and_loss.xml',
        'data/bank_reconciliation_report.xml',
        'data/aged_partner_balance.xml',
        'data/general_ledger.xml',
        'data/trial_balance.xml',
        'data/sales_report.xml',
        'data/partner_ledger.xml',
        'data/customer_statement.xml',
        'data/followup_report.xml',
        'data/multicurrency_revaluation_report.xml',
        'data/deferred_reports.xml',
        'data/journal_report.xml',
        'data/generic_tax_report.xml',
        'views/account_report_view.xml',
        'data/account_report_actions.xml',
        'data/report_send_cron.xml',
        'data/menuitems.xml',
        'data/mail_activity_type_data.xml',
        'data/mail_templates.xml',
        'views/account_move_views.xml',
        'views/res_company_views.xml',
        'views/account_journal_dashboard_view.xml',
        'views/mail_activity_views.xml',
        'views/res_config_settings_views.xml',
        'views/res_partner_views.xml',
        'views/report_template.xml',
        'wizard/account_report_send.xml',
        'wizard/multicurrency_revaluation.xml',
        'wizard/report_export_wizard.xml',
        'wizard/account_report_file_download_error_wizard.xml',
        'wizard/fiscal_year.xml',
        'wizard/mail_activity_schedule_views.xml',
        'views/account_activity.xml',
        'views/account_account_views.xml',
        'views/account_tax_views.xml',
    ],
    'auto_install': True,
    'installable': True,
    'post_init_hook': 'set_periodicity_journal_on_companies',
    'assets': {
        'odex30_account_reports.assets_pdf_export': [
            ('include', 'web._assets_helpers'),
            'web/static/src/scss/pre_variables.scss',
            'web/static/lib/bootstrap/scss/_variables.scss',
            'web/static/lib/bootstrap/scss/_variables-dark.scss',
            'web/static/lib/bootstrap/scss/_maps.scss',
            ('include', 'web._assets_bootstrap_backend'),
            'web/static/fonts/fonts.scss',
            'odex30_account_reports/static/src/scss/**/*',
        ],
        'web.report_assets_common': [
            'odex30_account_reports/static/src/scss/account_pdf_export_template.scss',
        ],

        'web.assets_backend': [
            'odex30_account_reports/static/src/components/account_report/account_report.xml',  # أضف هذا أولاً
            'odex30_account_reports/static/src/components/account_report/account_report.js',
            'odex30_account_reports/static/src/components/**/*.xml',  # أضف هذا
            'odex30_account_reports/static/src/components/**/*.js',
            'odex30_account_reports/static/src/js/**/*',
            'odex30_account_reports/static/src/widgets/**/*',
        ],

        'web.assets_web_dark': [
            'odex30_account_reports/static/src/scss/*.dark.scss',
        ],
        'web.qunit_suite_tests': [
            'odex30_account_reports/static/tests/legacy/*.js',
        ],
        'web.assets_unit_tests': [
            'odex30_account_reports/static/tests/*.js',
            'odex30_account_reports/static/tests/account_report/**/*.js',
        ],
        'web.assets_tests': [
            'odex30_account_reports/static/tests/tours/**/*',
        ],
    }
}
