Repository
OCA/l10n-romania · module folder · Try on Runboat
Module version
1.0.0
Category
Localization
Folder size
0.08 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/l10n-romania
Last tracking update
2026-08-07 07:25:01
Authors
Odoo Community Association (OCA), Forest and Biomass Romania, NextERP Romania
Maintainers
Odoo Community Association (OCA), Forest and Biomass Romania, NextERP Romania
Committers
Fekete Mihai, GitHub, Mihai Fekete, oca-travis
Odoo dependencies
OCA/reporting-engine:
OCA/server-ux:
odoo/odoo:
- web
- bus
Python dependencies
xlrd, xlsxwriter
System dependencies
None
Required by
None
Description

Code Analysis

Views touched (8)
XML IDNameModelTypeStatus
l10n_ro_report_D300.internal_layout l10n_ro_report_D300.internal_layout ir.ui.view qweb New
l10n_ro_report_D300.l10n_ro_report_d300_base l10n_ro_report_D300.l10n_ro_report_d300_base ir.ui.view qweb New
l10n_ro_report_D300.l10n_ro_report_d300_filters l10n_ro_report_D300.l10n_ro_report_d300_filters ir.ui.view qweb New
l10n_ro_report_D300.l10n_ro_report_d300_qweb l10n_ro_report_D300.l10n_ro_report_d300_qweb ir.ui.view qweb New
l10n_ro_report_d300 l10n_ro_report_d300 ir.ui.view qweb New
l10n_ro_report_d300_assets_backend l10n_ro_report_d300 assets ir.ui.view qweb Inherits web.assets_backend
l10n_ro_report_d300_buttons l10n_ro_report_d300_buttons ir.ui.view qweb New
wizard_l10n_ro_report_d300_view wizard_l10n_ro_report_d300 wizard.l10n.ro.report.d300 form New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (7)

New fields (5)
  • company_id Many2one → res.company
    comodel_name='res.company'
  • date_from Date
  • date_to Date
  • tax_detail Boolean
    args: 'Tax Detail'
  • taxtags_ids One2many → l10n_ro_report_d300_taxtag
    comodel_name='l10n_ro_report_d300_taxtag' inverse_name='report_id'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (3)
  • compute_data_for_report(self)
    @api.multi
  • get_html(self, given_context=None)
    @api.model
  • print_report(self, report_type='qweb')
    @api.multi

New fields (7)
  • code Char
  • move_line_ids One2many → account.move.line
    comodel_name='account.move.line' compute='_compute_move_lines' inverse_name='tax_line_id'
  • name Char
  • net Float
    digits=(16, 2)
  • report_tax_id Many2one → l10n_ro_report_d300_taxtag
    comodel_name='l10n_ro_report_d300_taxtag' index=True ondelete='cascade'
  • tax Float
    digits=(16, 2)
  • tax_id Many2one → account.tax
    index=True args: 'account.tax'
Public methods (0)

No public methods.

New fields (8)
  • code Integer
  • move_line_ids One2many → account.move.line
    comodel_name='account.move.line' compute='_compute_move_lines'
  • name Char
  • net Float
    digits=(16, 2)
  • report_id Many2one → l10n_ro_report_d300
    comodel_name='l10n_ro_report_d300' index=True ondelete='cascade'
  • tax Float
    digits=(16, 2)
  • tax_ids One2many → l10n_ro_report_d300_tax
    comodel_name='l10n_ro_report_d300_tax' inverse_name='report_tax_id'
  • taxtag_id Many2one → account.account.tag
    index=True args: 'account.account.tag'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (5)
  • generate_xlsx_report(self, workbook, data, objects)
  • get_workbook_options(self)
  • write_array_header(self, workbook)
    Write array header on current line using all defined columns name. Columns are defined with `_get_report_columns` method.
  • write_array_title(self, workbook, title)
    Write array title on current line using all defined columns width. Columns are defined with `_get_report_columns` method.
  • write_line(self, workbook, line_object, formats)
    Write a line on current line using all defined columns field name. Columns are defined with `_get_report_columns` method.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (5)
  • company_id Many2one → res.company
    comodel_name='res.company' default=<expr> string='Company'
  • date_from Date
    required=True args: 'Start Date'
  • date_range_id Many2one → date.range
    comodel_name='date.range' string='Date range'
  • date_to Date
    required=True args: 'End Date'
  • tax_detail Boolean
    args: 'Detail Taxes'
Public methods (4)
  • button_export_html(self)
    @api.multi
  • button_export_pdf(self)
    @api.multi
  • button_export_xlsx(self)
    @api.multi
  • onchange_date_range_id(self)
    @api.onchange('date_range_id')
    Handle date range change.