ITA - Stato patrimoniale e conto economico
l10n_it_account_balance_report · OCA/l10n-italy
Renamed to l10n_it_financial_statements_report in 14.0
Health
42/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 44 months ago
-
Required by5/250 modules depend on it
-
Maturity12/25In 2 Odoo series since 11.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
2 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.16 MB
Module directory on disk
Code analysis
4 migration notes
8 models
12 views
0 HTTP endpoints
Migration considerations
ReportAccountBalanceReport— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (3 methods) (2 occurrences in this file) migration-api-multi-one · sourceReportAccountBalanceWizard— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (3 methods) migration-api-multi-one · sourcewizard_report_account_balance_report— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourceaccount_balance_report_lines— Migrating to 15.0: QWeb `t-raw` is deprecated: use `t-out`; for intended HTML, sanitize it at its source, since `Markup` alone does not sanitize. (3 occurrences in this file) migration-view-t-raw · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
- Odoo dependencies
- Python dependencies
- xlrd, xlsxwriter
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 12
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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_sectionSelectionreadonly=Truerelated='user_type_id.account_balance_report_section'string='Account Balance Report - Section' args: [('assets', 'Assets'), ('expenses', 'Expenses'), ('incomes', 'Incomes'), ('liabilities', 'Liabilities')]
No public methods.
New fields (1)
-
account_balance_report_sectionSelectionstring='Account Balance Report - Section' args: [('assets', 'Assets'), ('expenses', 'Expenses'), ('incomes', 'Incomes'), ('liabilities', 'Liabilities')]
No public methods.
New fields (11)
-
account_balance_report_typeSelectionargs: [('profit_loss', 'Profit & Loss'), ('balance_sheet', 'Balance Sheet')] -
hide_accounts_codesBoolean -
left_col_nameChar -
right_col_nameChar -
section_credit_idsOne2many → account_balance_report_accountargs: 'account_balance_report_account', 'report_credit_id' -
section_debit_idsOne2many → account_balance_report_accountargs: 'account_balance_report_account', 'report_debit_id' -
titleChar -
total_balanceFloatdigits=(16, 2) -
total_creditFloatdigits=(16, 2) -
total_debitFloatdigits=(16, 2) -
trial_balance_idMany2one → report_trial_balanceindex=Trueondelete='cascade'required=True args: 'report_trial_balance'
-
compute_data_for_report(self)@api.multiSets 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.modelMethod needed from JavaScript widget to render HTML view -
get_report_section(self, account=None, group=None) -
print_report(self, report_type=None)@api.multiThis 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.multiLaunches view for HTML report
New fields (6)
-
date_fromDate -
date_toDate -
report_credit_idMany2one → account_balance_reportindex=Trueondelete='cascade' args: 'account_balance_report' -
report_debit_idMany2one → account_balance_reportindex=Trueondelete='cascade' args: 'account_balance_report' -
report_partner_idsOne2many → account_balance_report_partnerargs: 'account_balance_report_partner', 'report_section_id' -
trial_balance_line_idMany2one → report_trial_balance_accountindex=Trueondelete='cascade'required=True args: 'report_trial_balance_account'
No public methods.
New fields (6)
-
date_fromDate -
date_toDate -
hide_lineBooleancompute='_compute_hide_line' -
report_idMany2one → account_balance_reportargs: 'account_balance_report' -
report_section_idMany2one → account_balance_report_accountindex=Trueondelete='cascade' args: 'account_balance_report_account' -
trial_balance_partner_idMany2one → report_trial_balance_partnerindex=Trueondelete='cascade'required=True args: 'report_trial_balance_partner'
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_typeSelectionstring='Report Type' args: [('profit_loss', 'Profit & Loss'), ('balance_sheet', 'Balance Sheet')] -
hide_accounts_codesBoolean
-
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…