Repository
OCA/l10n-netherlands · module folder · Try on Runboat
Module version
1.0.2
Category
Localisation/Report Intrastat
Folder size
0.07 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/intrastat
Last tracking update
2026-08-07 07:17:52
Authors
Odoo Community Association (OCA), Therp BV
Maintainers
Odoo Community Association (OCA), Therp BV
Committers
Holger Brunn, OCA Transbot, OCA-git-bot, oca-travis
Odoo dependencies
OCA/intrastat-extrastat:
OCA/server-tools:
odoo/odoo:
- web
- bus
Python dependencies
None
System dependencies
None
Required by
None
Description

Code Analysis

Views touched (7)
XML IDNameModelTypeStatus
assets_specific assets_specific ir.ui.view qweb Inherits report.assets_common
l10n_nl_intrastat.internal_layout l10n_nl_intrastat.internal_layout ir.ui.view qweb New
l10n_nl_intrastat.report_nl_intrastat l10n_nl_intrastat.report_nl_intrastat ir.ui.view qweb New
l10n_nl_intrastat.report_nl_intrastat_filters l10n_nl_intrastat.report_nl_intrastat_filters ir.ui.view qweb New
l10n_nl_intrastat_report_form l10n_nl.report.intrastat form New
l10n_nl_intrastat_report_line_tree l10n_nl.report.intrastat.line tree New
l10n_nl_intrastat_report_tree l10n_nl.report.intrastat tree New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (2)

New fields (10)
  • company_id Many2one → res.company
    default=<expr> required=True string='Company' args: 'res.company'
  • currency_id Many2one
    readonly=True related='company_id.currency_id' string='Currency'
  • date_from Date
    required=True
  • date_range_id Many2one → date.range
    args: 'date.range', 'Date range'
  • date_to Date
    required=True
  • last_updated Datetime
    readonly=True
  • line_ids One2many → l10n_nl.report.intrastat.line
    readonly=True string='ICP line' args: 'l10n_nl.report.intrastat.line', 'report_id'
  • state Selection
    default='draft' help="State of the declaration. When the state is set to 'Done', the parameters become read-only." readonly=True selection=[('draft', 'Draft'), ('done', 'Done')]
  • total_amount Monetary
    help='Total amount in company currency of the declaration.' readonly=True string='Total amount'
  • year_month Char
    compute='_compute_year_month' help='Date range of the declaration.' readonly=True string='Period'
Public methods (4)
  • generate_lines(self)
    @api.multi
    Collect the data lines for the given report. Unlink any existing lines first.
  • onchange_date_range_id(self)
    @api.onchange('date_range_id')
  • set_done(self)
    @api.multi
    Validate and close report.
  • set_draft(self)
    @api.multi
    Reset report state to draft.

New fields (7)
  • amount_product Monetary
    readonly=True string='Amount products'
  • amount_service Monetary
    readonly=True string='Amount services'
  • country_code Char
    readonly=True related='partner_id.country_id.code' store=True
  • currency_id Many2one
    readonly=True related='report_id.company_id.currency_id' string='Currency'
  • partner_id Many2one → res.partner
    comodel_name='res.partner' readonly=True required=True string='Partner'
  • report_id Many2one → l10n_nl.report.intrastat
    comodel_name='l10n_nl.report.intrastat' ondelete='cascade' readonly=True required=True string='Report'
  • vat Char
    readonly=True related='partner_id.vat' store=True string='VAT'
Public methods (0)

No public methods.

Loading…