Repository
OCA/l10n-italy · module folder · Try on Runboat
Module version
1.1.0
Category
Localisation/Italy
Folder size
0.16 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/l10n-italy/tree/12.0/l10n_it_account_balance_report
Last tracking update
2026-08-07 07:31:52
Authors
Odoo Community Association (OCA), Openforce
Maintainers
Odoo Community Association (OCA), Openforce
Committers
eLBati, GitHub, Simone Rubino, Weblate, OCA Transbot, OCA-git-bot, oca-travis, Lara Baggio, oca-ci, Silvio Gregorini, SilvioGregorini
Odoo dependencies
OCA/account-financial-reporting:
OCA/account-financial-tools:
OCA/l10n-italy:
OCA/reporting-engine:
OCA/server-ux:
odoo/odoo:
- web
- bus
- uom
Python dependencies
xlrd, xlsxwriter
System dependencies
None
Required by
None
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 form Inherits account.view_account_type_form
wizard_report_account_balance_report wizard.report.account.balance.report trial.balance.report.wizard form New
HTTP endpoints (0)

No HTTP endpoints found for this module.

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)

Loading…