ITA - Stato patrimoniale e conto economico

l10n_it_account_balance_report
REPOSITORY
REPOSITORYOCA/l10n-italy
GIT
GIThttps://github.com/OCA/l10n-italy.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-italy/tree/12.0/l10n_it_account_balance_report
VERSION
VERSION 1.1.0
CATEGORY
CATEGORYLocalisation/Italy
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Openforce
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Openforce
COMMITTERS
COMMITTERSeLBati, GitHub, OCA Transbot, oca-travis, Weblate, OCA-git-bot, Simone Rubino, Lara Baggio, oca-ci, Silvio Gregorini, SilvioGregorini
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-italy/tree/12.0/l10n_it_account_balance_report
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:18
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-financial-reporting:
    - account_financial_report
    - account_tax_balance
OCA/account-financial-tools:
    - account_type_menu
    - account_fiscal_year
OCA/l10n-italy:
    - l10n_it_account
OCA/reporting-engine:
    - report_xlsx
OCA/server-ux:
    - date_range
odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - http_routing
    - digest
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES xlrd
xlsxwriter
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (12)
XML IDNameModelTypeStatus
account_balance_report_base account_balance_report_base ir.ui.view qweb New
account_balance_report_filters account_balance_report_filters ir.ui.view qweb New
account_balance_report_lines account_balance_report_lines ir.ui.view qweb New
account_balance_report_lines_header account_balance_report_lines_header ir.ui.view qweb New
account_balance_report_partners account_balance_report_partners ir.ui.view qweb New
account_balance_report_qweb account_balance_report_qweb ir.ui.view qweb New
account_balance_report_split_columns account_balance_report_split_columns ir.ui.view qweb New
account_balance_report_title account_balance_report_title ir.ui.view qweb New
account_balance_report_totals account_balance_report_totals ir.ui.view qweb New
template_account_balance_report template_account_balance_report ir.ui.view qweb New
view_account_type_form_sign account.account.type.form.sign account.account.type xpath Inherits account.view_account_type_form
wizard_report_account_balance_report wizard.report.account.balance.report trial.balance.report.wizard form New
Models touched (8)

New fields (1)
  • account_balance_report_section Selection
    readonly=True related='user_type_id.account_balance_report_section' string='Account Balance Report - Section' args: [('assets', 'Assets'), ('expenses', 'Expenses'), ('incomes', 'Incomes'), ('liabilities', 'Liabilities')]
Public methods (0)

No public methods.

New fields (1)
  • account_balance_report_section Selection
    string='Account Balance Report - Section' args: [('assets', 'Assets'), ('expenses', 'Expenses'), ('incomes', 'Incomes'), ('liabilities', 'Liabilities')]
Public methods (0)

No public methods.

New fields (11)
  • account_balance_report_type Selection
    args: [('profit_loss', 'Profit & Loss'), ('balance_sheet', 'Balance Sheet')]
  • hide_accounts_codes Boolean
  • left_col_name Char
  • right_col_name Char
  • section_credit_ids One2many → account_balance_report_account
    args: 'account_balance_report_account', 'report_credit_id'
  • section_debit_ids One2many → account_balance_report_account
    args: 'account_balance_report_account', 'report_debit_id'
  • title Char
  • total_balance Float
    digits=(16, 2)
  • total_credit Float
    digits=(16, 2)
  • total_debit Float
    digits=(16, 2)
  • trial_balance_id Many2one → report_trial_balance
    index=True ondelete='cascade' required=True args: 'report_trial_balance'
Public methods (7)
  • compute_data_for_report(self)
    @api.multi
    Sets data for report. Defines which lines go on the left (or right) section, which names sections should have, the report title, amounts and balances
  • do_print(self, report_type)
  • get_column_data(self)
    This method is meant to be overridden if necessary. :returns: report data grouped by report type
  • get_html(self, given_context=None)
    @api.model
    Method needed from JavaScript widget to render HTML view
  • get_report_section(self, account=None, group=None)
  • print_report(self, report_type=None)
    @api.multi
    This method is called from the JS widget buttons 'Print' and 'Export' in the HTML view. Prints PDF and XLSX reports. :param report_type: string that represents the report type
  • view_report(self)
    @api.multi
    Launches view for HTML report

New fields (6)
  • date_from Date
  • date_to Date
  • report_credit_id Many2one → account_balance_report
    index=True ondelete='cascade' args: 'account_balance_report'
  • report_debit_id Many2one → account_balance_report
    index=True ondelete='cascade' args: 'account_balance_report'
  • report_partner_ids One2many → account_balance_report_partner
    args: 'account_balance_report_partner', 'report_section_id'
  • trial_balance_line_id Many2one → report_trial_balance_account
    index=True ondelete='cascade' required=True args: 'report_trial_balance_account'
Public methods (0)

No public methods.

New fields (6)
  • date_from Date
  • date_to Date
  • hide_line Boolean
    compute='_compute_hide_line'
  • report_id Many2one → account_balance_report
    args: 'account_balance_report'
  • report_section_id Many2one → account_balance_report_account
    index=True ondelete='cascade' args: 'account_balance_report_account'
  • trial_balance_partner_id Many2one → report_trial_balance_partner
    index=True ondelete='cascade' required=True args: 'report_trial_balance_partner'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (17)
  • format_value_by_lang(self, value=None, decimals=None)
    Mimics `res.lang` model's `format` method
  • generate_partner_columns(self, cols, mode)
  • generate_section_cols(self, cols, mode)
    Takes 'cols' as a template for column info, returns L/R column
  • generate_table(self)
    Creates the table
  • generate_xlsx_report(self, workbook, data, objects)
    Set wb, data and report attributes
  • get_default_line_filter_func(self, **kwargs)
  • get_indent_data(self, line=None, col_dict=None)
  • get_line_info(self, row=None)
    Returns {col: (val, style)} for current row
  • get_report_lines(self, field, func=None)
    Returns report's lines, enumerated by row, as assigned by field 'field' and filtered by 'func' (either a function or a dot-separated list of fields).
  • get_table_data(self, left_lines=None, right_lines=None)
  • get_write_data(self, line, col_dict)
    Returns value and style for cell
  • set_lr_cols(self, cols)
    Takes 'cols' as a template for column info, sets L/R columns
  • set_partner_columns(self, cols)
  • write_main_headers(self)
    Writes main left and right section names
  • write_sections_balance(self)
    Writes balances rows for left and right sections
  • write_sub_headers(self)
    Writes single headers names
  • write_total_balance(self)
    Writes total balance row

New fields (0)

No new fields.

Public methods (1)
  • get_balance_sign(self)

New fields (2)
  • account_balance_report_type Selection
    string='Report Type' args: [('profit_loss', 'Profit & Loss'), ('balance_sheet', 'Balance Sheet')]
  • hide_accounts_codes Boolean
Public methods (7)
  • button_export_html(self)
    @api.multi
  • button_export_pdf(self)
    @api.multi
  • button_export_xlsx(self)
    @api.multi
  • export_account_balance(self, report_type=None)
  • onchange_show_partner_details(self)
    @api.onchange('show_partner_details')
    Override to avoid unwanted changes
  • prepare_report_vals(self)
  • prepare_trial_balance_vals(self)
REPOSITORY
REPOSITORYOCA/l10n-italy
GIT
GIThttps://github.com/OCA/l10n-italy.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-italy/tree/11.0/l10n_it_account_balance_report
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYLocalisation/Italy
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Openforce
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Openforce
COMMITTERS
COMMITTERSFrancesco Apruzzese, OCA Transbot, oca-travis, Weblate, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-italy/tree/11.0/l10n_it_account_balance_report
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:23:57
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-financial-reporting:
    - account_financial_report
    - account_tax_balance
OCA/account-financial-tools:
    - account_type_menu
    - account_fiscal_year
OCA/l10n-italy:
    - l10n_it_account
OCA/reporting-engine:
    - report_xlsx
OCA/server-ux:
    - date_range
odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - web_tour
    - analytic
    - web_planner
    - portal
    - http_routing
    - account_invoicing
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES xlrd
xlsxwriter
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (12)
XML IDNameModelTypeStatus
account_balance_report_base account_balance_report_base ir.ui.view qweb New
account_balance_report_filters account_balance_report_filters ir.ui.view qweb New
account_balance_report_lines account_balance_report_lines ir.ui.view qweb New
account_balance_report_lines_header account_balance_report_lines_header ir.ui.view qweb New
account_balance_report_partners account_balance_report_partners ir.ui.view qweb New
account_balance_report_qweb account_balance_report_qweb ir.ui.view qweb New
account_balance_report_split_columns account_balance_report_split_columns ir.ui.view qweb New
account_balance_report_title account_balance_report_title ir.ui.view qweb New
account_balance_report_totals account_balance_report_totals ir.ui.view qweb New
template_account_balance_report template_account_balance_report ir.ui.view qweb New
view_account_type_form_sign account.account.type.form.sign account.account.type xpath Inherits account.view_account_type_form
wizard_report_account_balance_report wizard.report.account.balance.report trial.balance.report.wizard form New
Models touched (8)

New fields (1)
  • account_balance_report_section Selection
    readonly=True related='user_type_id.account_balance_report_section' string='Account Balance Report - Section' args: [('assets', 'Assets'), ('expenses', 'Expenses'), ('incomes', 'Incomes'), ('liabilities', 'Liabilities')]
Public methods (0)

No public methods.

New fields (1)
  • account_balance_report_section Selection
    string='Account Balance Report - Section' args: [('assets', 'Assets'), ('expenses', 'Expenses'), ('incomes', 'Incomes'), ('liabilities', 'Liabilities')]
Public methods (0)

No public methods.

New fields (12)
  • account_balance_report_type Selection
    args: [('profit_loss', 'Profit & Loss'), ('balance_sheet', 'Balance Sheet')]
  • left_col_footer Char
  • left_col_name Char
  • right_col_footer Char
  • right_col_name Char
  • section_credit_ids One2many → account_balance_report_account
    args: 'account_balance_report_account', 'report_credit_id'
  • section_debit_ids One2many → account_balance_report_account
    args: 'account_balance_report_account', 'report_debit_id'
  • title Char
  • total_balance Float
    digits=(16, 2)
  • total_credit Float
    digits=(16, 2)
  • total_debit Float
    digits=(16, 2)
  • trial_balance_id Many2one → report_trial_balance
    ondelete='cascade' required=True args: 'report_trial_balance'
Public methods (7)
  • compute_data_for_report(self)
    @api.multi
    Sets data for report. Defines which lines go on the left (or right) section, which names sections should have, the report title, amounts and balances
  • do_print(self, report_type)
  • get_column_data(self)
    This method is meant to be overridden if necessary. :returns: report data grouped by report type
  • get_html(self, given_context=None)
    @api.model
    Method needed from JavaScript widget to render HTML view
  • get_report_section(self, account=None, group=None)
  • print_report(self, report_type=None)
    @api.multi
    This method is called from the JS widget buttons 'Print' and 'Export' in the HTML view. Prints PDF and XLSX reports. :param report_type: string that represents the report type
  • view_report(self)
    @api.multi
    Launches view for HTML report

New fields (6)
  • date_from Date
  • date_to Date
  • report_credit_id Many2one → account_balance_report
    ondelete='cascade' args: 'account_balance_report'
  • report_debit_id Many2one → account_balance_report
    ondelete='cascade' args: 'account_balance_report'
  • report_partner_ids One2many → account_balance_report_partner
    args: 'account_balance_report_partner', 'report_section_id'
  • trial_balance_line_id Many2one → report_trial_balance_account
    ondelete='cascade' required=True args: 'report_trial_balance_account'
Public methods (0)

No public methods.

New fields (6)
  • date_from Date
  • date_to Date
  • hide_line Boolean
    compute='_compute_hide_line'
  • report_id Many2one → account_balance_report
    args: 'account_balance_report'
  • report_section_id Many2one → account_balance_report_account
    ondelete='cascade' args: 'account_balance_report_account'
  • trial_balance_partner_id Many2one → report_trial_balance_partner
    ondelete='cascade' required=True args: 'report_trial_balance_partner'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (17)
  • format_value_by_lang(self, value=None, decimals=None)
    Mimics `res.lang` model's `format` method
  • generate_partner_columns(self, cols, mode)
  • generate_section_cols(self, cols, mode)
    Takes 'cols' as a template for column info, returns L/R column
  • generate_table(self)
    Creates the table
  • generate_xlsx_report(self, workbook, data, objects)
    Set wb, data and report attributes
  • get_default_line_filter_func(self, **kwargs)
  • get_indent_data(self, line=None, col_dict=None)
  • get_line_info(self, row=None)
    Returns {col: (val, style)} for current row
  • get_report_lines(self, field, func=None)
    Returns report's lines, enumerated by row, as assigned by field 'field' and filtered by 'func' (either a function or a dot-separated list of fields).
  • get_table_data(self, left_lines=None, right_lines=None)
  • get_write_data(self, line, col_dict)
    Returns value and style for cell
  • set_lr_cols(self, cols)
    Takes 'cols' as a template for column info, sets L/R columns
  • set_partner_columns(self, cols)
  • write_main_headers(self)
    Writes main left and right section names
  • write_sections_balance(self)
    Writes balances rows for left and right sections
  • write_sub_headers(self)
    Writes single headers names
  • write_total_balance(self)
    Writes total balance row

New fields (0)

No new fields.

Public methods (1)
  • get_balance_sign(self)

New fields (1)
  • account_balance_report_type Selection
    string='Report Type' args: [('profit_loss', 'Profit & Loss'), ('balance_sheet', 'Balance Sheet')]
Public methods (7)
  • button_export_html(self)
    @api.multi
  • button_export_pdf(self)
    @api.multi
  • button_export_xlsx(self)
    @api.multi
  • export_account_balance(self, report_type=None)
  • onchange_show_partner_details(self)
    @api.onchange('show_partner_details')
    Override to avoid unwanted changes
  • prepare_report_vals(self)
  • prepare_trial_balance_vals(self)