Intra-Community transactions declaration (ICP)

l10n_nl_intrastat
REPOSITORY
REPOSITORYOCA/l10n-netherlands
GIT
GIThttps://github.com/OCA/l10n-netherlands.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-netherlands/tree/10.0/l10n_nl_intrastat
VERSION
VERSION 1.0.2
CATEGORY
CATEGORYLocalisation/Report Intrastat
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Therp BV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Therp BV
COMMITTERS
COMMITTERSHolger Brunn, OCA Transbot, oca-travis, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/intrastat
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:19:57
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/intrastat-extrastat:
    - intrastat_base
OCA/server-tools:
    - date_range
odoo/odoo:
    - base_vat
    - account
    - base_setup
    - base
    - web_kanban
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - web_tour
    - report
    - analytic
    - web_planner
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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
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.

REPOSITORY
REPOSITORYOCA/l10n-netherlands
GIT
GIThttps://github.com/OCA/l10n-netherlands.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-netherlands/tree/9.0/l10n_nl_intrastat
VERSION
VERSION 2.0.0
CATEGORY
CATEGORYLocalisation/Report Intrastat
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Therp BV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Therp BV
COMMITTERS
COMMITTERSRonald Portier, Holger Brunn, OCA Transbot, Stefan Rijnhart (Opener), oca-travis, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-netherlands
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:15:21
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/intrastat-extrastat:
    - intrastat_base
OCA/server-tools:
    - date_range
odoo/odoo:
    - base_vat
    - account
    - base_setup
    - base
    - web_kanban
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - report
    - analytic
    - web_tip
    - web_planner
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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
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 (3)
  • generate_lines(self)
    @api.multi
    Collect the data lines for the given report. Unlink any existing lines first.
  • 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.