Romania - D300 Report

l10n_ro_report_D300
REPOSITORY
REPOSITORYOCA/l10n-romania
GIT
GIThttps://github.com/OCA/l10n-romania.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-romania/tree/11.0/l10n_ro_report_D300
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYLocalization
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), NextERP Romania, Forest and Biomass Romania
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), NextERP Romania, Forest and Biomass Romania
COMMITTERS
COMMITTERSFekete Mihai, GitHub, oca-travis, Mihai Fekete
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-romania
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:23:55
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/reporting-engine:
    - report_xlsx
OCA/server-ux:
    - date_range
odoo/odoo:
    - l10n_ro
    - account
    - base_setup
    - base
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - web_tour
    - analytic
    - web_planner
    - portal
    - http_routing
    - base_vat
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES xlrd
xlsxwriter
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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
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.