intrastat_product
Provides the base framework to build Intrastat product declarations from invoice data for country-specific reporting modules.
Key Features
- intrastat.product.declaration: Builds monthly Intrastat product declarations from posted invoices, grouping computation lines, handling accessory costs, and generating XML/XLS outputs.
- intrastat.product.computation.line: Stores invoice-line Intrastat data (country, HS code, weights, supplementary units, transaction/transport/region/origin/VAT) and validates VAT before grouping.
- intrastat.product.declaration.line: Aggregates computation details by country, HS code, unit, transaction, transport, region, and origin with rounding rules for official declarations.
- intrastat.transaction: Maintains per-company Intrastat transaction codes with unique code constraint and descriptive display names.
- intrastat.region: Defines per-country Intrastat regions with unique codes for use across warehouses, invoices, and declarations.
- intrastat.unit: Registers Intrastat supplementary units and links them to regular units of measure for use on HS codes.
- hs.code: Adds a supplementary Intrastat unit link on HS codes for quantity and conversion tracking.
- res.company: Configures arrival/dispatch reporting level, default transport mode and region, accessory cost inclusion, and computes overall Intrastat profile.
- res.config.settings: Exposes company Intrastat configuration fields in settings for editing defaults and the accessory cost flag.
- account.move: Adds Intrastat transaction, transport, origin/destination country and region, plus editable Intrastat detail lines on invoices with a compute helper.
- account.move.line: Computes Intrastat HS code from manual invoice Intrastat details or the product hierarchy for reporting consistency.
- account.move.intrastat.line: Lets users override invoice line Intrastat details such as HS code, weights, supplementary units, and origin country.
- sale.order: Captures transport mode and warehouse region for Intrastat and passes them to resulting invoices.
- stock.warehouse: Stores the Intrastat region associated with each warehouse.
- stock.location: Retrieves the Intrastat region from a related warehouse when deriving regions for declarations.
- reporting: Provides XLSX export of computation and declaration lines with product, country, incoterm, transport, region, and VAT columns.
- security: Adds an invoice Intrastat detail editing group and company-based access rules on Intrastat models.
- res.partner: Adds a flag to show Intrastat details on invoice reports and propagates it to commercial partners.
- intrastat.result.view: Shows generation notes and warnings in a modal after collecting invoice data.