Skip to content
Health
85/100
good
  • Security25/25
    No findings
  • Activity20/25
    Last human commit 9 months ago
  • Required by15/25
    1 module depends on it
  • Maturity25/25
    In 5 Odoo series since 10.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
1
Modules depending on it
External deps
1 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
12.06 MB
Module directory on disk
Code analysis 0 migration notes 14 models 20 views 0 HTTP endpoints

Description

Italiano

Questo modulo si occupa della riclassificazione delle merci e dei servizi che sono oggetto di transazioni comunitarie.

Il modulo precarica anche le tabelle necessarie alla compilazione della dichiarazione: nomenclature combinate, sezioni doganali, natura delle transazioni, modalità di trasporto.

Per la creazione delle dichiarazioni, degli elenchi riepilogativi e le estrazioni da presentare all'Agenzia delle Dogane è necessario installare il modulo l10n_it_intrastat_statement.

Dependencies

Odoo dependencies
Python dependencies
openupgradelib
System dependencies
None
Required by
l10n_it_intrastat_statement

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 20

XML IDNameModelTypeStatus
account_intrastat_custom_view_form account.intrastat.custom.view.form account.intrastat.custom form New
account_intrastat_custom_view_tree account.intrastat.custom.view.tree account.intrastat.custom list New
account_intrastat_invoice_form account.intrastat.invoice.form account.move form Inherits account.view_move_form
account_intrastat_payment_term_form_view account.intrastat.payment.term.form.view account.payment.term form Inherits account.view_payment_term_form
account_intrastat_transaction_nature_b_view_form account.intrastat.transaction.nature.b.view.form account.intrastat.transaction.nature.b form New
account_intrastat_transaction_nature_b_view_tree account.intrastat.transaction.nature.b.view.tree account.intrastat.transaction.nature.b list New
account_intrastat_transaction_nature_view_form account.intrastat.transaction.nature.view.form account.intrastat.transaction.nature form New
account_intrastat_transaction_nature_view_tree account.intrastat.transaction.nature.view.tree account.intrastat.transaction.nature list New
account_intrastat_transport_view_form account.intrastat.transport.view.form account.intrastat.transport form New
account_intrastat_transport_view_tree account.intrastat.transport.view.tree account.intrastat.transport list New
view_form_invoice_intrastat_form views.form.account.intrastat.invoice.intrastat account.invoice.intrastat form New
view_form_report_intrastat_code views.form.report.intrastat.code report.intrastat.code form New
view_instrastat_product_category_form intrastat.product.category.form product.category form Inherits product.product_category_form_view
view_instrastat_product_template_2_form intrastat.product.template.2.form product.template form Inherits account.product_template_form_view
view_intrastat_account_position_form intrastat.account.fiscal.position.form account.fiscal.position form Inherits account.view_account_position_form
view_intrastat_company_form view_form_intrastat_company res.company form Inherits base.view_company_form
view_invoice_intrastat_search invoice.intrastat.search account.invoice.intrastat search New
view_tree_invoice_intrastat_form views.tree.account.intrastat.invoice.intrastat account.invoice.intrastat list New
view_tree_invoice_intrastat_report_tree account.intrastat.invoice.intrastat.report account.invoice.intrastat list New
view_tree_report_intrastat_code views.tree.report.intrastat.code report.intrastat.code list New

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 14

New fields (1)
  • l10n_it_oca_intrastat Boolean
    string='Subject to Intrastat'
Public methods (0)

No public methods.

New fields (4)
  • code Char
  • date_start Date
    string='Start Date'
  • date_stop Date
    string='Stop Date'
  • name Char
Public methods (0)

No public methods.

New fields (4)
  • active Boolean
    default=True
  • code Char
    required=True
  • name Char
  • triangulation Selection
    selection=[('A', 'A'), ('B', 'B'), ('C', 'C'), ('D', 'D'), ('E', 'E'), ('F', 'F'), ('G', 'G'), ('H', 'H')]
Public methods (0)

No public methods.

New fields (3)
  • code Char
    required=True
  • name Char
  • nature_parent_id Many2one → account.intrastat.transaction.nature
    comodel_name='account.intrastat.transaction.nature' string='Transaction Nature'
Public methods (0)

No public methods.

New fields (2)
  • code Char
    required=True
  • name Char
Public methods (0)

No public methods.

New fields (32)
  • additional_units Float
  • additional_units_uom Char
    related='intrastat_code_id.additional_unit_uom_id.name' string='Additional Unit of Measure'
  • amount_currency Float
    digits='Account' string='Amount in Currency'
  • amount_euro Float
    compute='_compute_amount_euro' digits='Account' store=True string='Amount in Euro'
  • company_id Many2one
    index=True precompute=True related='invoice_id.company_id' store=True
  • country_destination_id Many2one → res.country
    comodel_name='res.country' string='Destination Country'
  • country_good_origin_id Many2one → res.country
    comodel_name='res.country' string='Goods Origin Country'
  • country_origin_id Many2one → res.country
    comodel_name='res.country' string='Provenance Country'
  • country_partner_id Many2one → res.country
    comodel_name='res.country' compute='_compute_partner_data' store=True string='Partner State'
  • country_payment_id Many2one → res.country
    comodel_name='res.country' string='Payment Country'
  • currency_rate Float
  • delivery_code_id Many2one → account.incoterms
    comodel_name='account.incoterms' string='Delivery Terms'
  • intrastat_code_id Many2one → report.intrastat.code
    comodel_name='report.intrastat.code' required=True string='Nomenclature Code'
  • intrastat_code_type Selection
    default='good' required=True selection=[('service', 'Service'), ('good', 'Goods')] string='Code Type'
  • intrastat_type_data Selection
    default='all' required=True selection=[('all', 'All (Fiscal and Statistic)'), ('fiscal', 'Fiscal'), ('statistic', 'Statistic')] string='Data Type'
  • invoice_date Date
    compute='_compute_invoice_ref' store=True
  • invoice_id Many2one → account.move
    comodel_name='account.move' ondelete='cascade' required=True string='Invoice'
  • invoice_number Char
    compute='_compute_invoice_ref' store=True
  • invoice_type Selection
    related='invoice_id.move_type' string='Invoice Type'
  • partner_id Many2one
    related='invoice_id.partner_id' store=True string='Partner'
  • payment_method Selection
    selection=[('B', 'Bank Transfer'), ('A', 'Credit'), ('X', 'Other')]
  • province_destination_id Many2one → res.country.state
    comodel_name='res.country.state' string='Destination Province'
  • province_origin_id Many2one → res.country.state
    comodel_name='res.country.state' string='Origin Province'
  • show_weight Boolean
    default=True string='Display weight in declaration'
  • statement_section Selection
    compute='_compute_statement_section' selection=[('sale_s1', 'Sales section 1'), ('sale_s2', 'Sales section 2'), ('sale_s3', 'Sales section 3'), ('sale_s4', 'Sales section 4'), ('purchase_s1', 'Purchases section 1'), ('purchase_s2', 'Purchases section 2'), ('purchase_s3', 'Purchases section 3'), ('purchase_s4', 'Purchases section 4')]
  • statistic_amount_euro Float
    digits='Account' string='Statistic Value in Euro'
  • supply_method Selection
    selection=[('I', 'Instant'), ('R', 'Repeated')]
  • transaction_nature_b_id Many2one → account.intrastat.transaction.nature.b
    comodel_name='account.intrastat.transaction.nature.b' string='Transaction Nature B'
  • transaction_nature_id Many2one → account.intrastat.transaction.nature
    comodel_name='account.intrastat.transaction.nature' string='Transaction Nature'
  • transport_code_id Many2one → account.intrastat.transport
    comodel_name='account.intrastat.transport' string='Transport Mode'
  • triangulation Boolean
    default=False
  • weight_kg Float
    string='Net Mass (kg)'
Public methods (4)
  • change_amount_euro(self)
    @api.onchange('amount_euro')
  • change_intrastat_code_type(self)
    @api.onchange('intrastat_code_type')
  • change_weight_kg(self)
    @api.onchange('weight_kg')
  • compute_statement_section(self, intrastat_code_type, invoice_type)
    @api.model

New fields (2)
  • intrastat Boolean
    copy=False string='Subject to Intrastat'
  • intrastat_line_ids One2many → account.invoice.intrastat
    comodel_name='account.invoice.intrastat' copy=False inverse_name='invoice_id' string='Intrastat'
Public methods (4)
  • action_post(self)
  • change_fiscal_position(self)
    @api.onchange('fiscal_position_id')
  • compute_intrastat_lines(self)
  • create(self, vals_list)
    @api.model_create_multi

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • intrastat_code Selection
    selection=[('B', 'Bank Transfer'), ('A', 'Credit'), ('X', 'Other')] string='Payment Method'
Public methods (0)

No public methods.

New fields (3)
  • intrastat_code_id Many2one → report.intrastat.code
    string='Nomenclature Code' args: 'report.intrastat.code'
  • intrastat_country_origin_id Many2one → res.country
    string='Origin Country' args: 'res.country'
  • intrastat_type Selection
    args: [('good', 'Goods'), ('service', 'Service'), ('misc', 'Miscellaneous'), ('exclude', 'Exclude')]
Public methods (0)

No public methods.

New fields (3)
  • intrastat_code_id Many2one → report.intrastat.code
    comodel_name='report.intrastat.code' string='Intrastat Code'
  • intrastat_country_origin_id Many2one → res.country
    string='Origin Country' args: 'res.country'
  • intrastat_type Selection
    selection=[('good', 'Goods'), ('service', 'Service'), ('misc', 'Miscellaneous'), ('exclude', 'Exclude')]
Public methods (1)
  • get_intrastat_data(self)
    The intrastat code with the following priority: - Intrastat Code on product template - Intrastat Code on product category

New fields (7)
  • active Boolean
    default=True
  • additional_unit_from Selection
    selection=[('quantity', 'Quantity'), ('weight', 'Weight'), ('none', 'None')] string='Additional Unit of Measure from'
  • additional_unit_required Boolean
    string='Additional Unit of Measure Required'
  • additional_unit_uom_id Many2one → uom.uom
    comodel_name='uom.uom' string='Additional Unit of Measure'
  • description Char
    translate=True
  • name Char
    string='Intrastat Code'
  • type Selection
    selection=[('good', 'Goods'), ('service', 'Service')]
Public methods (1)
  • name_search(self, name='', args=None, operator='ilike', limit=100)
    @api.model

New fields (21)
  • intrastat_additional_unit_from Selection
    default='weight' selection=[('quantity', 'Quantity'), ('weight', 'Weight'), ('none', 'None')] string='Additional Unit from'
  • intrastat_delegated_name Char
    string='Delegate'
  • intrastat_delegated_vat Char
    string='Delegate VAT number'
  • intrastat_exclude_free_line Boolean
    string='Exclude Free lines'
  • intrastat_export_file_name Char
    string='File name for export'
  • intrastat_min_amount Float
    default=1.0 help="In case of invoices < 'Min amount', use min amount in Intrastat statement" string='Min amount'
  • intrastat_purchase_delivery_code_id Many2one → account.incoterms
    comodel_name='account.incoterms' string='Purchases Delivery Terms'
  • intrastat_purchase_province_destination_id Many2one → res.country.state
    comodel_name='res.country.state' string='Destination Province'
  • intrastat_purchase_statistic_amount Boolean
    string='Purchases Statistic Value in Euro'
  • intrastat_purchase_transaction_nature_b_id Many2one → account.intrastat.transaction.nature.b
    comodel_name='account.intrastat.transaction.nature.b' string='Purchases Transaction Nature B'
  • intrastat_purchase_transaction_nature_id Many2one → account.intrastat.transaction.nature
    comodel_name='account.intrastat.transaction.nature' string='Purchases Transaction Nature'
  • intrastat_purchase_transport_code_id Many2one → account.intrastat.transport
    comodel_name='account.intrastat.transport' string='Purchases Transport Mode'
  • intrastat_sale_country_origin_id Many2one → res.country
    comodel_name='res.country' string='Origin Country'
  • intrastat_sale_delivery_code_id Many2one → account.incoterms
    comodel_name='account.incoterms' string='Sales Delivery Terms'
  • intrastat_sale_province_origin_id Many2one → res.country.state
    comodel_name='res.country.state' string='Origin Province'
  • intrastat_sale_statistic_amount Boolean
    string='Sales Statistic Value in Euro'
  • intrastat_sale_transaction_nature_b_id Many2one → account.intrastat.transaction.nature.b
    comodel_name='account.intrastat.transaction.nature.b' string='Sales Transaction Nature B'
  • intrastat_sale_transaction_nature_id Many2one → account.intrastat.transaction.nature
    comodel_name='account.intrastat.transaction.nature' string='Sales Transaction Nature'
  • intrastat_sale_transport_code_id Many2one → account.intrastat.transport
    comodel_name='account.intrastat.transport' string='Sales Transport Mode'
  • intrastat_ua_code Char
    string='User ID (UA Code)'
  • intrastat_uom_kg_id Many2one → uom.uom
    comodel_name='uom.uom' string='Unit of Measure for Kg'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • intrastat_validate(self)

Loading…

Loading…

Loading…

Loading…

Loading…