TIP: You can type at any time to perform a new search.
Intrastat Product
intrastat_product · OCA/intrastat-extrastat
- Repository
- OCA/intrastat-extrastat · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Intrastat
- Folder size
- 0.65 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/intrastat-extrastat
- Last tracking update
- 2026-08-07 09:06:36
- Authors
- Noviat, Akretion, ACSONE SA/NV, Odoo Community Association (OCA), brain-tec AG
- Maintainers
- Noviat, Akretion, ACSONE SA/NV, Odoo Community Association (OCA), brain-tec AG
- Committers
- Maksym Yankin, Weblate, OCA-git-bot, oca-ci
- Odoo dependencies
- Python dependencies
- xlrd, xlsxwriter
- System dependencies
- None
- Required by
- intrastat_product_hscodes_import, l10n_es_intrastat_report
- Description
This module contains common objects and fields for the Intrastat Product reporting. It should be used in combination with country-specific Intrastat Product reporting modules such as: - *l10n_fr_intrastat_product*: the module for the *Déclaration d'Echange de Biens* (DEB) for France - *l10n_be_intrastat_product*: the module for the Intrastat Product Declaration for Belgium These country-specific modules can be found in the OCA localization for those countries.
Code Analysis ⓘ
Views touched (30)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
hs_code_form |
intrastat.hs.code.form | hs.code | form | Inherits product_harmonized_system.hs_code_view_form |
hs_code_tree |
intrastat.hs.code.list | hs.code | list | Inherits product_harmonized_system.hs_code_view_tree |
intrastat_product_computation_line_view_form |
intrastat.product.computation.line.form | intrastat.product.computation.line | form | New |
intrastat_product_computation_line_view_tree |
intrastat.product.computation.line.list | intrastat.product.computation.line | list | New |
intrastat_product_declaration_line_view_form |
intrastat.product.declaration.line.form | intrastat.product.declaration.line | form | New |
intrastat_product_declaration_line_view_tree |
intrastat.product.declaration.line.list | intrastat.product.declaration.line | list | New |
intrastat_product_declaration_view_form |
intrastat.product.declaration.form | intrastat.product.declaration | form | New |
intrastat_product_declaration_view_graph |
intrastat.product.declaration.graph | intrastat.product.declaration | graph | New |
intrastat_product_declaration_view_pivot |
intrastat.product.declaration.pivot | intrastat.product.declaration | pivot | New |
intrastat_product_declaration_view_search |
intrastat.product.declaration.search | intrastat.product.declaration | search | New |
intrastat_product_declaration_view_tree |
intrastat.product.declaration.list | intrastat.product.declaration | list | New |
intrastat_region_view_form |
intrastat.region.form | intrastat.region | form | New |
intrastat_region_view_search |
intrastat.region.search | intrastat.region | search | New |
intrastat_region_view_tree |
intrastat.region.list | intrastat.region | list | New |
intrastat_result_view_form |
intrastat.result_view_form | intrastat.result.view | form | New |
intrastat_transaction_form |
intrastat.transaction_form | intrastat.transaction | form | New |
intrastat_transaction_mode_search |
intrastat.transaction.mode.search | intrastat.transaction | search | New |
intrastat_transaction_tree |
intrastat.transaction_list | intrastat.transaction | list | New |
intrastat_transport_mode_form |
intrastat.transport.mode.form | intrastat.transport_mode | form | New |
intrastat_transport_mode_search |
intrastat.transport.mode.search | intrastat.transport_mode | search | New |
intrastat_transport_mode_tree |
intrastat.transport.mode.list | intrastat.transport_mode | list | New |
intrastat_unit_form |
intrastat.unit.form | intrastat.unit | form | New |
intrastat_unit_search |
intrastat.unit.search | intrastat.unit | search | New |
intrastat_unit_tree |
intrastat.unit.list | intrastat.unit | list | New |
report_invoice_document_intrastat_product |
report_invoice_document_intrastat_product | ir.ui.view | qweb | Inherits account.report_invoice_document |
sale_order_form |
intrastat.sale.order.form | sale.order | form | Inherits sale_stock.view_order_form_inherit_sale_stock |
view_move_form |
intrastat.invoice.form | account.move | form | Inherits account.view_move_form |
view_partner_property_form |
res.partner.form | res.partner | form | Inherits account.view_partner_property_form |
view_res_config_settings |
intrastat.account.config.settings.form | res.config.settings | form | Inherits intrastat_base.view_intrastat_res_config_settings |
view_warehouse |
intrastat.stock.warehouse.form | stock.warehouse | form | Inherits stock.view_warehouse |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (19)
New fields (6)
-
intrastatCharrelated='company_id.intrastat'string='Intrastat Declaration' -
intrastat_line_idsOne2many → account.move.intrastat.linecomodel_name='account.move.intrastat.line'inverse_name='move_id'string='Intrastat Declaration Details' -
intrastat_transaction_idMany2one → intrastat.transactioncheck_company=Truecomodel_name='intrastat.transaction'domain="['|', ('company_id', '=', False), ('company_id', '=', company_id)]"help='Intrastat Nature of Transaction'ondelete='restrict'string='Intrastat Transaction Type'tracking=True -
intrastat_transport_idMany2one → intrastat.transport_modecomodel_name='intrastat.transport_mode'ondelete='restrict'string='Intrastat Transport Mode' -
src_dest_country_idMany2one → res.countrycomodel_name='res.country'compute='_compute_src_dest_country_id'help='Destination country for dispatches. Origin country for arrivals.'readonly=Falsestore=Truestring='Origin/Destination Country' -
src_dest_region_idMany2one → intrastat.regioncomodel_name='intrastat.region'default=<expr>help='Origin region for dispatches, destination region for arrivals. This field is used for the Intrastat Declaration.'ondelete='restrict'string='Origin/Destination Region'
-
compute_intrastat_lines(self)Compute the Intrastat Lines so that they can be modified when encoding the Customer/Supplier Invoice.
New fields (9)
-
hs_code_idMany2one → hs.codecomodel_name='hs.code'ondelete='restrict'required=Truestring='Intrastat Code' -
invoice_line_idMany2one → account.move.linecomodel_name='account.move.line'ondelete='cascade'required=Truestring='Invoice Line' -
move_idMany2one → account.movecomodel_name='account.move'ondelete='cascade'required=Truestring='Invoice' -
product_idMany2one → product.productcomodel_name='product.product'related='invoice_line_id.product_id'string='Product' -
product_origin_country_idMany2one → res.countrycomodel_name='res.country'help="Country of origin of the product i.e. product 'made in ____'."string='Country of Origin of the Product' -
quantityFloatrelated='invoice_line_id.quantity' -
sequenceIntegerrelated='invoice_line_id.sequence'store=True -
transaction_suppl_unit_qtyFloathelp='Transaction quantity in Intrastat Supplementary Unit' -
transaction_weightIntegerhelp='Transaction weight in Kg: Quantity x Product Weight'
No public methods.
New fields (1)
-
hs_code_idMany2one → hs.codecomodel_name='hs.code'compute='_compute_hs_code_id'string='Intrastat Code'
No public methods.
New fields (1)
-
intrastat_unit_idMany2one → intrastat.unitcomodel_name='intrastat.unit'string='Intrastat Supplementary Unit'
No public methods.
New fields (28)
-
amount_accessory_cost_company_currencyMonetarycurrency_field='company_currency_id'help='Amount in company currency of the accessory costs related to this invoice line. By default, these accessory costs are computed at the pro-rata of the amount of each invoice line.'string='Accessory Costs' -
amount_company_currencyMonetarycurrency_field='company_currency_id'help='Amount in company currency to write in the declaration. Amount in company currency = amount in invoice currency converted to company currency with the rate of the invoice date.'required=Truestring='Fiscal Value' -
company_country_codeCharrelated='parent_id.company_id.partner_id.country_id.code'string='Company Country Code' -
company_currency_idMany2onerelated='company_id.currency_id'string='Company currency' -
company_idMany2onerelated='parent_id.company_id' -
declaration_line_idMany2one → intrastat.product.declaration.linereadonly=Truestring='Declaration Line' args: 'intrastat.product.declaration.line' -
declaration_typeSelectionrelated='parent_id.declaration_type' -
hs_code_idMany2one → hs.codestring='Intrastat Code' args: 'hs.code' -
incoterm_idMany2one → account.incotermsstring='Incoterm' args: 'account.incoterms' -
intrastat_unit_idMany2one → intrastat.unithelp='Intrastat Supplementary Unit'related='hs_code_id.intrastat_unit_id'string='Suppl. Unit' args: 'intrastat.unit' -
invoice_idMany2one → account.moverelated='invoice_line_id.move_id'string='Invoice' args: 'account.move' -
invoice_line_idMany2one → account.move.linereadonly=Truestring='Invoice Line' args: 'account.move.line' -
parent_idMany2one → intrastat.product.declarationondelete='cascade'readonly=Truestring='Intrastat Product Declaration' args: 'intrastat.product.declaration' -
partner_idMany2one → res.partnerdomain=[('parent_id', '=', False)]string='Partner' args: 'res.partner' -
product_idMany2one → product.productrelated='invoice_line_id.product_id' args: 'product.product' -
product_origin_country_codeCharcompute='_compute_product_origin_country_code'help="2 letters ISO code of the country of origin of the product.\nSpecify 'QU' when the country of origin is unknown.\n"readonly=Falsesize=2store=Truestring='Country Code of Origin of the Product' -
product_origin_country_idMany2one → res.countryhelp="Country of origin of the product i.e. product 'made in ____'"string='Country of Origin of the Product' args: 'res.country' -
region_codeCharcompute='_compute_region_code'readonly=Falsestore=True -
region_idMany2one → intrastat.regionstring='Intrastat Region' args: 'intrastat.region' -
reporting_levelSelectionrelated='parent_id.reporting_level' -
src_dest_country_codeCharcompute='_compute_src_dest_country_code'help="2 letters code of the country of origin/destination.\nSpecify 'XI' for Northern Ireland."readonly=Falsestore=Truestring='Country Code' -
src_dest_country_idMany2one → res.countryhelp='Country of Origin/Destination'string='Country' args: 'res.country' -
suppl_unit_qtyFloatdigits='Product Unit of Measure'help='Supplementary Units Quantity'string='Suppl. Unit Qty' -
transaction_codeCharrelated='transaction_id.code'store=Truestring='Transaction Code' -
transaction_idMany2one → intrastat.transactionstring='Intrastat Transaction' args: 'intrastat.transaction' -
transport_idMany2one → intrastat.transport_modestring='Transport Mode' args: 'intrastat.transport_mode' -
vatCharcompute='_compute_vat'readonly=Falsestore=Truestring='VAT Number' -
weightFloatdigits='Stock Weight'help='Net weight in Kg'
-
group_line_hashcode(self)
New fields (19)
-
actionSelectiondefault='replace'required=Trueselection='_get_action'tracking=True -
company_country_codeCharrelated='company_id.partner_id.country_id.code'store=Truestring='Company Country Code' -
company_idMany2one → res.companycomodel_name='res.company'default=<expr>required=Truestring='Company' -
computation_line_idsOne2many → intrastat.product.computation.linecomodel_name='intrastat.product.computation.line'inverse_name='parent_id'string='Computation Lines' -
currency_idMany2one → res.currencyrelated='company_id.currency_id'string='Currency' args: 'res.currency' -
declaration_line_idsOne2many → intrastat.product.declaration.linecomodel_name='intrastat.product.declaration.line'inverse_name='parent_id'readonly=Truestring='Declaration Lines' -
declaration_typeSelectioncompute='_compute_declaration_type'precompute=Truereadonly=Falserequired=Trueselection='_get_declaration_type'store=Truestring='Type'tracking=True -
monthSelectionrequired=Trueselection=[('01', '01'), ('02', '02'), ('03', '03'), ('04', '04'), ('05', '05'), ('06', '06'), ('07', '07'), ('08', '08'), ('09', '09'), ('10', '10'), ('11', '11'), ('12', '12')] -
noteHtmlstring='Notes' -
num_decl_linesIntegercompute='_compute_numbers'store=Truestring='Number of Declaration Lines'tracking=True -
reporting_levelSelectioncompute='_compute_reporting_level'readonly=Falseselection='_get_reporting_level'store=True -
revisionIntegerdefault=1help='Used to keep track of changes' -
stateSelectioncopy=Falsedefault='draft'readonly=Trueselection=[('draft', 'Draft'), ('confirmed', 'Confirmed'), ('done', 'Done')]tracking=True -
total_amountMonetarycompute='_compute_numbers'help='Total fiscal amount in company currency of the declaration.'store=Truestring='Total Fiscal Amount' -
xml_attachment_datasBinaryrelated='xml_attachment_id.datas'string='XML Export' -
xml_attachment_idMany2one → ir.attachmentstring='XML Attachment' args: 'ir.attachment' -
xml_attachment_nameCharrelated='xml_attachment_id.name'string='XML Filename' -
yearCharrequired=True -
year_monthCharcompute='_compute_year_month'help='Year and month of the declaration.'store=Truestring='Period'tracking=True
-
action_gather(self) -
back2draft(self) -
confirmed2done(self) -
copy(self, default=None) -
default_get(self, fields_list)@api.model -
delete_xml(self) -
draft2confirmed(self) -
generate_declaration(self)generate declaration lines from computation lines -
generate_xml(self)generate the INTRASTAT Declaration XML file -
unlink(self)
New fields (21)
-
amount_company_currencyMonetarycurrency_field='company_currency_id'help='Amount in company currency to write in the declaration. Amount in company currency = amount in invoice currency converted to company currency with the rate of the invoice date.'string='Fiscal Value' -
company_country_codeCharrelated='parent_id.company_id.partner_id.country_id.code'string='Company Country Code' -
company_currency_idMany2onerelated='company_id.currency_id'string='Company currency' -
company_idMany2onerelated='parent_id.company_id' -
computation_line_idsOne2many → intrastat.product.computation.linereadonly=Truestring='Computation Lines' args: 'intrastat.product.computation.line', 'declaration_line_id' -
declaration_typeSelectionrelated='parent_id.declaration_type' -
hs_code_idMany2one → hs.codestring='Intrastat Code' args: 'hs.code' -
incoterm_idMany2one → account.incotermsstring='Incoterm' args: 'account.incoterms' -
intrastat_unit_idMany2one → intrastat.unithelp='Intrastat Supplementary Unit'related='hs_code_id.intrastat_unit_id'string='Suppl. Unit' args: 'intrastat.unit' -
line_numberIntegerreadonly=True -
parent_idMany2one → intrastat.product.declarationondelete='cascade'readonly=Truestring='Intrastat Product Declaration' args: 'intrastat.product.declaration' -
product_origin_country_codeCharhelp="2 letters ISO code of the country of origin of the product except for the UK.\nSpecify 'XI' for Northern Ireland and 'XU' for Great Britain.\nSpecify 'QU' when the country is unknown.\n"size=2string='Country of Origin of the Product' -
region_codeChar -
reporting_levelSelectionrelated='parent_id.reporting_level' -
src_dest_country_codeCharhelp="2 letters ISO code of the country of origin/destination.\nSpecify 'XI' for Northern Ireland and 'XU' for Great Britain."string='Country Code' -
suppl_unit_qtyIntegerhelp='Supplementary Units Quantity'string='Suppl. Unit Qty' -
transaction_codeCharrelated='transaction_id.code'store=Truestring='Transaction Code' -
transaction_idMany2one → intrastat.transactionstring='Intrastat Transaction' args: 'intrastat.transaction' -
transport_idMany2one → intrastat.transport_modestring='Transport Mode' args: 'intrastat.transport_mode' -
vatCharstring='VAT Number' -
weightFloatdigits='Stock Weight'help='Net weight in Kg'
No public methods.
New fields (5)
-
codeCharrequired=True -
company_idMany2one → res.companyargs: 'res.company' -
country_idMany2one → res.countrycomodel_name='res.country'required=True -
descriptionChar -
nameChartranslate=True
No public methods.
New fields (1)
-
noteHtmldefault=<expr>readonly=Truestring='Notes'
No public methods.
New fields (4)
-
activeBooleandefault=True -
codeCharrequired=True -
company_idMany2one → res.companyargs: 'res.company' -
descriptionTexttranslate=True
No public methods.
New fields (3)
-
codeCharrequired=True -
descriptionChartranslate=True -
nameCharrequired=Truetranslate=True
No public methods.
New fields (4)
-
activeBooleandefault=True -
descriptionCharrequired=True -
nameCharrequired=True -
uom_idMany2one → uom.uomcomodel_name='uom.uom'help='Select the regular Unit of Measure of Odoo that corresponds to this Intrastat Supplementary Unit.'string='Regular UoM'
No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (6)
-
intrastatCharcompute='_compute_intrastat'store=Truestring='Intrastat Declaration' -
intrastat_accessory_costsBooleanstring='Include Accessory Costs in Fiscal Value of Product' -
intrastat_arrivalsSelectiondefault='extended'required=Trueselection='_intrastat_arrivals'string='Arrivals' -
intrastat_dispatchesSelectiondefault='extended'required=Trueselection='_intrastat_dispatches'string='Dispatches' -
intrastat_region_idMany2one → intrastat.regioncomodel_name='intrastat.region'string='Default Intrastat Region' -
intrastat_transport_idMany2one → intrastat.transport_modecomodel_name='intrastat.transport_mode'ondelete='restrict'string='Default Transport Mode'
No public methods.
New fields (7)
-
country_idMany2onerelated='company_id.country_id' -
intrastatCharrelated='company_id.intrastat' -
intrastat_accessory_costsBooleanreadonly=Falserelated='company_id.intrastat_accessory_costs' -
intrastat_arrivalsSelectionreadonly=Falserelated='company_id.intrastat_arrivals' -
intrastat_dispatchesSelectionreadonly=Falserelated='company_id.intrastat_dispatches' -
intrastat_region_idMany2onereadonly=Falserelated='company_id.intrastat_region_id' -
intrastat_transport_idMany2onereadonly=Falserelated='company_id.intrastat_transport_id'
No public methods.
New fields (1)
-
invoice_intrastat_detailBooleanstring='Show intrastat details in invoice report'
No public methods.
New fields (2)
-
intrastatSelectionrelated='company_id.intrastat_dispatches'string='Intrastat Declaration' -
intrastat_transport_idMany2one → intrastat.transport_modecomodel_name='intrastat.transport_mode'help='This information is used in Intrastat reports'string='Transport Mode'
No public methods.
New fields (0)
No new fields.
Public methods (1)-
get_intrastat_region(self)
New fields (1)
-
region_idMany2one → intrastat.regioncomodel_name='intrastat.region'string='Intrastat Region'
No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…