Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.0][MIG] intrastat_product #261

Merged
merged 181 commits into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
181 commits
Select commit Hold shift + click to select a range
f9ba364
[ADD] intrastat_product
Nov 28, 2014
25b6b37
display_name must be stored as it is used as _rec_name, otherwise we …
guewen May 15, 2015
c38597e
[IMP] intrastat_product: Several things:
May 27, 2015
8ebeff2
[IMP] intrastat_product: major update intrastat V3 modules
luc-demeyer Jul 25, 2015
ef2504e
[IMP+FIX] intrastat_product: Several things:
alexis-via Nov 10, 2015
86f885a
intrastat fixes
luc-demeyer Jan 11, 2016
e7be812
[FIX+IMP] intrastat_product: Fixes and imps:
alexis-via Jan 12, 2016
d77bac6
[FIX] intrastat_product: this week's ci errors + another wrong variab…
hbrunn May 30, 2016
93b3b59
[FIX] intrastat_product: error message + Remove required=1
alexis-via Jun 12, 2016
dcaa284
update intrastat_product
luc-demeyer Oct 3, 2016
ca2bdbb
[MIG] intrastat_product: Migration to 10.0
alexis-via Oct 3, 2016
ed12a66
[FIX] intrastat_product: state can be None
cubells Sep 20, 2017
41a19b4
res_company: fix intrastat_dispatches selection function
Dec 27, 2017
457a0fa
[MIG] intrastat_product: Migration to 11.0
Mar 12, 2018
40a8f07
|FIX] Broken intrastat decl form view (was borken when you did NOT ha…
alexis-via Aug 15, 2018
f74fd57
[10.0][FIX]get_hs_code_recursively on product.template
luc-demeyer Aug 20, 2018
96981a0
[FIX+IMP] intrastat_product: reporting level + move methods to Intras…
luc-demeyer Aug 8, 2018
59e4bad
Add new module product_harmonized_system_delivery (hide native hs_cod…
alexis-via Dec 6, 2018
f1ce0cf
[FIX+IMP] intrastat_*: Several things:
alexis-via Dec 10, 2018
df3a9b2
[MIG] intrastat_product: Migration to 11.0
luc-demeyer Apr 17, 2019
7892f88
[FIX] intrastat_product: Fix duplicated msgid string
pedrobaeza May 14, 2019
a2f9083
Prepare v12 branch
alexis-via May 27, 2019
0345cf2
[MIG] Migrate all modules from v11 to v12
alexis-via May 28, 2019
1b2b370
flake8
luc-demeyer May 30, 2019
f89d184
[FIX] Translations in intrastat_product
danielduqma Jun 3, 2019
3dc7656
[12.0][FIX]fix name_get on intrastat.transaction (#73)
luc-demeyer Jun 5, 2019
058d8dc
[FIX] intrastat_product USAGE.rst title level
sbidoul Jun 16, 2019
33e4c33
[MIG] intrastat_product: Migration to 13.0
luc-demeyer Feb 26, 2020
9ada9a6
[13.0][FIX] 'number' for invoice does not exist anymore the account.m…
Mar 11, 2020
98cfd6d
[13.0][FIX]invoice line hs code
luc-demeyer Mar 29, 2020
9043fe4
intrastat_product: Add xml_attachment_id field
alexis-via Jun 8, 2020
534bfef
[13.0]fix stack trace when entering invoice line without product
luc-demeyer Aug 1, 2020
8e95e4f
refactor code to allow adding transaction details while encoding invo…
luc-demeyer Aug 18, 2020
bddb473
[FIX] Migration fixes + full migration scripts
MiquelRForgeFlow Dec 11, 2020
58bffd2
[13.0]invoice_date -> date
luc-demeyer Dec 11, 2020
9573e4f
[MIG] intrastat_product: Migration to 14.0
joao-p-marques Feb 8, 2021
6c44534
[IMP] intrastat_product: add support for Brexit + small performance i…
joao-p-marques Feb 12, 2021
1fca9aa
[UPD] Update intrastat_product.pot
oca-travis Feb 16, 2021
4d00a6e
[UPD] README.rst
OCA-git-bot Feb 16, 2021
f9813a1
[FIX] intrastat_product: Missed changes in migration
joao-p-marques Feb 18, 2021
0346bf6
[UPD] README.rst
OCA-git-bot Feb 18, 2021
e35726d
intrastat_product 14.0.1.0.1
OCA-git-bot Feb 18, 2021
4b92a51
[FIX] intrastat_product: don't force wrong domain in moves
joao-p-marques May 10, 2021
88d6481
intrastat_product 14.0.1.1.0
OCA-git-bot May 10, 2021
9632903
intrastat_product: improve tree view of declaration
alexis-via Jun 7, 2021
f43dde9
Translated using Weblate (French)
Jul 4, 2021
721b94d
Translated using Weblate (French)
Jul 4, 2021
4c47a22
[IMP] intrastat_product: Add active field to transactions.
victoralmau Sep 22, 2021
7f736be
[UPD] Update intrastat_product.pot
oca-travis Oct 21, 2021
6d2b703
intrastat_product 14.0.1.2.0
OCA-git-bot Oct 21, 2021
9275206
Update translation files
oca-transbot Oct 21, 2021
4216fb4
intrastat_product 14.0.1.3.0
OCA-git-bot Oct 22, 2021
386d6d4
[14.0][IMP] intrastat_product: Improve lines display
rousseldenis Oct 22, 2021
d4f8b89
[14.0][IMP] intrastat_*: Improve tests and code
rousseldenis Oct 23, 2021
1d524fa
[14.0][IMP] intrastat_*: CONTRIBUTORS.rst
rousseldenis Oct 23, 2021
9d25a5d
[14.0][IMP] intrastat_*: Add tests for base and for sale flows
rousseldenis Oct 24, 2021
80e0d76
[14.0][IMP] intrastat_product: Add test for declaration line values
rousseldenis Oct 24, 2021
b1aab50
[14.0][IMP] intrastat_product: Add test for purchase lines
rousseldenis Oct 24, 2021
39625ce
[14.0][IMP] intrastat_product: Test declaration copy
rousseldenis Oct 24, 2021
8445de0
[14.0][IMP] intrastat_product: Add hook for test values
rousseldenis Oct 24, 2021
ab4966c
intrastat_product 14.0.1.4.0
OCA-git-bot Oct 26, 2021
264b4a4
cherry-pick of https://github.com/OCA/intrastat-extrastat/pull/151
luc-demeyer Nov 9, 2021
0000e10
intrastat_product 14.0.1.4.1
OCA-git-bot Nov 10, 2021
b86368e
[IMP] intrastat_product: Better tests data
rousseldenis Nov 11, 2021
c9d9d28
[14.0][IMP] intrastat_product: Add product country of origin in decla…
rousseldenis Nov 18, 2021
878a750
intrastat_base: Remove intrastat.common class
alexis-via Dec 15, 2021
148280c
[IMP] intrastat_product: Fix pre-commit
rousseldenis Dec 22, 2021
69bed49
[13.0][FIX]intrastat_product_declaration - fix amount by removing leg…
luc-demeyer Aug 18, 2021
fe9713d
[14.0][FIX]intrastat_product_declaration - fix amount by removing leg…
luc-demeyer Dec 26, 2021
ce00126
[UPD] Update intrastat_product.pot
oca-travis Dec 26, 2021
3105ed7
[UPD] README.rst
OCA-git-bot Dec 26, 2021
2895d29
intrastat_product 14.0.1.5.0
OCA-git-bot Dec 26, 2021
5c2f124
Update translation files
oca-transbot Dec 26, 2021
2e397be
[14.0]intrastat_product - fix amount_company_currency
luc-demeyer Dec 31, 2021
b4f940a
intrastat_product 14.0.1.5.1
OCA-git-bot Dec 31, 2021
bb5b567
intrastat_product 14.0.1.5.2
OCA-git-bot Jan 2, 2022
c697b83
Updated from template
rousseldenis Mar 30, 2022
7aa0718
[14.0][IMP] intrastat_product: Add tests for Excel generation
rousseldenis Mar 30, 2022
57abf6b
[14.0][IMP] intrastat_product: Add codes in Excel report as required …
rousseldenis Mar 30, 2022
3cecab9
[14.0][IMP] intrastat_product: Add read access to intrastat lines to …
rousseldenis Mar 31, 2022
3e095bc
[IMP] intrastat_product: Add read accesses to intrastat lines
rousseldenis Apr 7, 2022
f799e98
[14.0]intrastat_product - remove incorrect domain on comutation line
luc-demeyer May 2, 2022
3bd7eba
intrastat_product 14.0.1.5.3
OCA-git-bot May 2, 2022
d59f20f
[14.0]Intrastat Brexit support
luc-demeyer Dec 26, 2021
e374af7
[14.0]intrastat_product - Intrastat Brexit support
luc-demeyer Dec 31, 2021
cb36557
[14.0] brexit support - fix pipeline
luc-demeyer Jan 2, 2022
34fe107
[14.0] brexit support - fix pipeline
luc-demeyer Jan 2, 2022
84923ae
fix unit tests - keep product_origin_country_id on top of new product…
luc-demeyer Apr 10, 2022
902eb6d
[14.0]intrastat - improved brexit support
luc-demeyer May 2, 2022
88c47f9
[14.0]improved brexit support - keep backwards compatibility with loc…
luc-demeyer May 3, 2022
6e0a3f0
[14.0]brexit support - increase test coverage
luc-demeyer May 3, 2022
4e49325
intrastat_product 14.0.1.5.4
OCA-git-bot May 3, 2022
2396602
[14.0]brexit support - DeprecationWarning
luc-demeyer May 8, 2022
f858d93
[14.0]brexit support - size=2 on product_origin_country_code
luc-demeyer May 12, 2022
62883cf
[UPD] Update intrastat_product.pot
May 15, 2022
7e245ae
intrastat_product 14.0.1.6.0
OCA-git-bot May 15, 2022
6c52215
Update translation files
oca-transbot May 15, 2022
09979cc
[14.0]fix stack trace when running module upgrade on 14.0.1.6.0
luc-demeyer May 16, 2022
5bee0a2
[UPD] Update intrastat_product.pot
May 16, 2022
ec1fe33
intrastat_product 14.0.1.6.1
OCA-git-bot May 16, 2022
c88208b
Update translation files
oca-transbot May 16, 2022
7aaae17
Added translation using Weblate (Spanish)
victoralmau Jun 2, 2022
41582bf
Translated using Weblate (Spanish)
victoralmau Jun 2, 2022
325d664
[IMP] intrastat_product: prepopulate stored computed fields
StefanRijnhart Jun 22, 2022
c678d71
[FIX] intrastat_product: typo in filename
StefanRijnhart Jun 22, 2022
9cb2ef8
intrastat_product 14.0.1.6.2
OCA-git-bot Jul 8, 2022
12403f7
[IMP] intrastat_product: Add an Intrastat summary in the invoice report.
victoralmau Jun 8, 2022
7949f28
[UPD] Update intrastat_product.pot
Aug 18, 2022
06c8b52
[UPD] README.rst
OCA-git-bot Aug 18, 2022
a9ee695
intrastat_product 14.0.2.0.0
OCA-git-bot Aug 18, 2022
10f74c6
Update translation files
oca-transbot Aug 18, 2022
ae04634
[IMP] intrastat_product: Skip invoices according to partner country
victoralmau Sep 9, 2022
8c15905
intrastat_product 14.0.2.0.1
OCA-git-bot Sep 12, 2022
3366983
[UPD] Update intrastat_product.pot
Oct 1, 2022
949df1a
intrastat_product 14.0.2.1.0
OCA-git-bot Oct 1, 2022
45f4218
Update translation files
oca-transbot Oct 1, 2022
a576b93
intrastat declaration - fix excel export
luc-demeyer Oct 15, 2022
3f62a5d
intrastat declaration - restore _compute_numbers that was dropped by …
luc-demeyer Oct 15, 2022
02edfc3
intrastat_product 14.0.2.1.1
OCA-git-bot Nov 13, 2022
fdee8e5
intrastat_product 14.0.2.1.2
OCA-git-bot Nov 13, 2022
554173a
[FIX] intrastat_product: Avoid error if we create lines manually
victoralmau Jan 3, 2023
970601e
intrastat_product 14.0.2.1.3
OCA-git-bot Jan 3, 2023
8be97de
[IMP] Big simplification, update and cleanup
alexis-via Nov 4, 2022
f5e9150
intrastat_product: default intrastat transaction on fiscal position A…
alexis-via Jan 23, 2023
9948e15
intrastat_product: move res_config_settings.py to wizard subdir
alexis-via Jan 23, 2023
82ea30d
intrastat_product: Improve warning message on intrastat transaction
alexis-via Jan 23, 2023
6c20129
intrastat_product: re-write the generation of the messages in the war…
alexis-via Jan 23, 2023
f15ec4e
intrastat_product: Backport updates from v15
alexis-via Jan 24, 2023
c6fe5c7
[MIG] intrastat_product to v16
alexis-via Feb 8, 2023
4c08be7
intrastat_product: single XLSX export
alexis-via Feb 9, 2023
63de877
[UPD] Update intrastat_product.pot
Jun 9, 2023
a584300
[UPD] README.rst
OCA-git-bot Jun 9, 2023
a45c44c
Update translation files
weblate Jun 9, 2023
1630ba6
intrastat_product: fix strings
alexis-via Jun 20, 2023
a3ea5d1
Translated using Weblate (French)
Jun 20, 2023
78a8e3a
[UPD] Update intrastat_product.pot
Jun 20, 2023
9c031e4
intrastat_product 16.0.1.1.0
OCA-git-bot Jun 20, 2023
bb2aaac
Update translation files
weblate Jun 20, 2023
18a47d8
Translated using Weblate (Spanish)
Ivorra78 Aug 4, 2023
9604c10
[FIX] intrastat_product : properly initialize notedict before calling…
metaminux Aug 16, 2023
b2800a2
[FIX] intrastat_product : uom_id in intrastat unit form view shouldn'…
metaminux Aug 18, 2023
ac5eb9f
[UPD] Update intrastat_product.pot
Aug 29, 2023
dbac9a1
intrastat_product 16.0.1.2.0
OCA-git-bot Aug 29, 2023
8cb58a3
intrastat_product 16.0.1.2.1
OCA-git-bot Aug 31, 2023
9fe45bc
[UPD] README.rst
OCA-git-bot Sep 3, 2023
e6295f4
Update translation files
weblate Sep 3, 2023
acc4610
Translated using Weblate (Spanish)
Ivorra78 Sep 5, 2023
301ffaa
Added translation using Weblate (French (Belgium))
Sep 6, 2023
eec9829
Translated using Weblate (French)
Sep 6, 2023
8b21769
Translated using Weblate (Spanish)
Ivorra78 Sep 20, 2023
09fb157
Update translation files
weblate Oct 10, 2023
99bcb56
[FIX] intrastat_product: Prevent error when adding transaction detail…
victoralmau Nov 9, 2023
49a9bb9
[UPD] Update intrastat_product.pot
Nov 9, 2023
08c48b1
Update translation files
weblate Nov 9, 2023
715677d
[BOT] post-merge updates
OCA-git-bot Nov 9, 2023
602f278
[IMP] intrastat_product: Set translate=True to description field from…
victoralmau Nov 9, 2023
276149f
[UPD] Update intrastat_product.pot
Nov 9, 2023
a8ebb28
[BOT] post-merge updates
OCA-git-bot Nov 9, 2023
9ba5b7b
Update translation files
weblate Nov 9, 2023
938f592
intrastat_product: use shipping partner instead of invoicing partner …
alexis-via Oct 5, 2023
e8f4351
[BOT] post-merge updates
OCA-git-bot Nov 10, 2023
6034534
intrastat_product: suppl_unit_qty rounded to 1 if between 0 and 0.5
alexis-via Nov 10, 2023
a649d5c
[IMP] intrastat_product - remove default company for intrastat regions
jdidderen-noviat Nov 12, 2023
268a2c8
[BOT] post-merge updates
OCA-git-bot Nov 12, 2023
383ba93
[BOT] post-merge updates
OCA-git-bot Nov 12, 2023
defaadf
[FIX] intrastat_product - set region_code based on code or the region
jdidderen-noviat Nov 13, 2023
e78a0fb
[BOT] post-merge updates
OCA-git-bot Nov 13, 2023
c3888b7
[IMP] intrastat_product: method for XLSX filename
alexis-via Nov 17, 2023
8d72834
[FIX] intrastat_product: Display note field as html on product declat…
aritzolea Nov 22, 2023
73316a1
[BOT] post-merge updates
OCA-git-bot Nov 23, 2023
b070a05
[UPD] Update intrastat_product.pot
Nov 27, 2023
a67c005
[BOT] post-merge updates
OCA-git-bot Nov 27, 2023
0f5ee35
Update translation files
weblate Nov 27, 2023
2bd6d5f
Translated using Weblate (Spanish)
Ivorra78 Nov 27, 2023
fcc799b
Translated using Weblate (Spanish)
Ivorra78 Nov 27, 2023
c3e1d21
[FIX] intrastat_product: Do not display missing VAT number error when…
aritzolea Nov 23, 2023
a7adc9c
[BOT] post-merge updates
OCA-git-bot Nov 30, 2023
6ad0bf6
intrastat_product: add confirmed state
alexis-via Jan 23, 2024
fa64996
intrastat_product: add readonly ACL for auditor
alexis-via Jan 24, 2024
ef41f02
intrastat_product: auto reformatting to prepare v17 migration
alexis-via Jan 24, 2024
bd2eedc
[MIG] intrastat_product to v17
alexis-via Jan 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
181 changes: 181 additions & 0 deletions intrastat_product/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,181 @@
=================
Intrastat Product
=================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:4fd233db64fe121941a45cbac26752c2d2e95687fc4f49c2f5d92f48f95c27c2
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fintrastat--extrastat-lightgray.png?logo=github
:target: https://github.com/OCA/intrastat-extrastat/tree/17.0/intrastat_product
:alt: OCA/intrastat-extrastat
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/intrastat-extrastat-17-0/intrastat-extrastat-17-0-intrastat_product
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/intrastat-extrastat&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

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.

**Table of contents**

.. contents::
:local:

Installation
============

This module is NOT compatible with the *account_intrastat* module from
Odoo Enterprise.

Configuration
=============

By default the intrastat declaration is generated based upon the product
record master data. Hence unexpected results may occur in case this
master data is not accurate, e.g. wrong or missing weight, country of
origin, ...

This can be corrected by changing the appropriate fields when analysing
the intrastat declaration but this can be challenging in case of large
transaction volumes and especially in the specific use case where the
product weight cannot be encoded correctly on the product records (e.g.
products with variable weight).

It is possible to allow encoding the intrastat transaction details on
the purchase/sale invoice via the
"intrastat_product.group_invoice_intrastat_transaction_detail" usability
group.

Usage
=====

This module is used in combination with the country-specific
localization module(s).

**Coding guidelines for localization module:**

We recommend to start by copying an existing module, e.g.
l10n_be_intrastat_product and adapt the code for the specific needs of
your country.

- Declaration Object

Create a new class as follows:

.. code:: python

class L10nCcIntrastatProductDeclaration(models.Model):
_name = 'l10n.cc.intrastat.product.declaration'
_description = "Intrastat Product Declaration for YourCountry"
_inherit = ['intrastat.product.declaration', 'mail.thread']

whereby cc = your country code

- Computation & Declaration Lines

Create also new objects inheriting from the Computation and
Declaration Line Objects so that you can add methods or customise the
methods from the base modules (make a PR when the customization or
new method is required for multiple countries).

Adapt also the parent_id fields of the newly created objects (cf.
l10n_be_intrastat_product as example).

- XML Files: Menu, Action, Views

Cf. l10n_be_istrastat_product as example, replace "be" by your
Country Code.

**Other functionality added by this module:**

- Compute the Intrastat Lines in an invoice. For this, your user needs
to be in the "Technical / Invoice Intrastat Transaction Details"
group. Go to the "Intrastat transaction details" tab and press
**Compute**

Known issues / Roadmap
======================

The declaration is based upon the invoices of the corresponding tax
declaration period.

An option to generate the intrastat declaration based upon the dates of
the physical movements of goods is currently not available.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/intrastat-extrastat/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/intrastat-extrastat/issues/new?body=module:%20intrastat_product%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* ACSONE SA/NV
* brain-tec AG
* Akretion
* Noviat

Contributors
------------

- Alexis de Lattre, Akretion <alexis.delattre@akretion.com>

- Luc De Meyer, Noviat <info@noviat.com>

- Denis Roussel <denis.roussel@acsone.eu>

- Tecnativa <`www.tecnativa.com <http://www.tecnativa.com>`__>:

- João Marques
- Víctor Martínez

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/intrastat-extrastat <https://github.com/OCA/intrastat-extrastat/tree/17.0/intrastat_product>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions intrastat_product/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from . import models
from . import report
from . import wizards
from .hooks import pre_init_hook
49 changes: 49 additions & 0 deletions intrastat_product/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Copyright 2011-2020 Akretion (http://www.akretion.com)
# Copyright 2009-2020 Noviat (http://www.noviat.com)
# Copyright 2018-2020 brain-tec AG (http://www.braintec-group.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# @author Luc de Meyer <info@noviat.com>
# @author Kumar Aberer <kumar.aberer@braintec-group.com>

{
"name": "Intrastat Product",
"version": "17.0.1.0.0",
"category": "Intrastat",
"license": "AGPL-3",
"summary": "Base module for Intrastat Product",
"author": "ACSONE SA/NV, brain-tec AG, Akretion, Noviat, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/intrastat-extrastat",
"depends": [
"intrastat_base",
"product_harmonized_system",
"sale_stock",
"purchase_stock",
"report_xlsx_helper",
],
"excludes": ["account_intrastat"],
"external_dependencies": {"python": ["python-stdnum>=1.16"]},
"data": [
"security/intrastat_security.xml",
"security/ir.model.access.csv",
"report/report.xml",
"views/hs_code.xml",
"views/intrastat_region.xml",
"views/intrastat_unit.xml",
"views/intrastat_transaction.xml",
"views/intrastat_transport_mode.xml",
"views/intrastat_product_declaration.xml",
"views/res_config_settings.xml",
"views/res_partner_view.xml",
"views/account_move.xml",
"views/sale_order.xml",
"views/stock_warehouse.xml",
"views/report_invoice.xml",
"wizards/intrastat_result_view.xml",
"data/intrastat_transport_mode.xml",
"data/intrastat_unit.xml",
"data/intrastat_transaction.xml",
],
"demo": ["demo/intrastat_demo.xml"],
"installable": True,
"pre_init_hook": "pre_init_hook",
}
110 changes: 110 additions & 0 deletions intrastat_product/data/intrastat_transaction.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<!-- Source: https://eur-lex.europa.eu/legal-content/EN/TXT/HTML/?uri=CELEX:32020R1197&from=EN#d1e32-7-1
ANNEX I
Part C. Classifications
Table 1. Nature of transaction breakdown
-->
<record id="intrastat_transaction_11" model="intrastat.transaction">
<field name="code">11</field>
<field name="description">B2B sale/purchase</field>
</record>
<record id="intrastat_transaction_12" model="intrastat.transaction">
<field name="code">12</field>
<field name="description">B2C sale/purchase (incl. distance sale)</field>
</record>
<record id="intrastat_transaction_21" model="intrastat.transaction">
<field name="code">21</field>
<field name="description">Return of goods (free of charge)</field>
</record>
<record id="intrastat_transaction_22" model="intrastat.transaction">
<field name="code">22</field>
<field
name="description"
>Replacement for returned goods (free of charge)</field>
</record>
<record id="intrastat_transaction_23" model="intrastat.transaction">
<field name="code">23</field>
<field
name="description"
>Replacement (e.g. under warranty) for goods not being returned</field>
</record>
<record id="intrastat_transaction_31" model="intrastat.transaction">
<field name="code">31</field>
<field
name="description"
>Movements to/from a warehouse (excluding call-off and consignment stock)</field>
</record>
<record id="intrastat_transaction_32" model="intrastat.transaction">
<field name="code">32</field>
<field
name="description"
>Supply for sale on approval or after trial (including call-off and consignment stock)</field>
</record>
<record id="intrastat_transaction_33" model="intrastat.transaction">
<field name="code">33</field>
<field name="description">Financial leasing</field>
</record>
<record id="intrastat_transaction_34" model="intrastat.transaction">
<field name="code">34</field>
<field
name="description"
>Transactions involving transfer of ownership without financial compensation</field>
</record>
<record id="intrastat_transaction_41" model="intrastat.transaction">
<field name="code">41</field>
<field
name="description"
>Transactions with a view to processing under contract (no change of ownership). Goods expected to return to the initial Member State/country of export</field>
</record>
<record id="intrastat_transaction_42" model="intrastat.transaction">
<field name="code">42</field>
<field
name="description"
>Transactions with a view to processing under contract (no change of ownership). Goods not expected to return to the initial Member State/country of export</field>
</record>
<record id="intrastat_transaction_51" model="intrastat.transaction">
<field name="code">51</field>
<field
name="description"
>Transactions following processing under contract (not involving change of ownership). Goods returning to the initial Member State/country of export.</field>
</record>
<record id="intrastat_transaction_52" model="intrastat.transaction">
<field name="code">52</field>
<field
name="description"
>Transactions following processing under contract (not involving change of ownership). Goods not returning to the initial Member State/country of export.</field>
</record>
<!-- intrastat.transaction that start with "6" are
"Particular transactions recorded for national purposes"
so they should be supplied by coutry-specific modules -->
<record id="intrastat_transaction_71" model="intrastat.transaction">
<field name="code">71</field>
<field
name="description"
>Release of goods for free circulation in a Member State with a subsequent export to another Member State</field>
</record>
<record id="intrastat_transaction_72" model="intrastat.transaction">
<field name="code">72</field>
<field
name="description"
>Transportation of goods from one Member State to another Member State to place the goods under the export procedure</field>
</record>
<record id="intrastat_transaction_80" model="intrastat.transaction">
<field name="code">80</field>
<field
name="description"
>Transactions involving the supply of building materials and technical equipment under a general construction or civil engineering contract for which no separate invoicing of the goods is required and an invoice for the total contract is issued</field>
</record>
<record id="intrastat_transaction_91" model="intrastat.transaction">
<field name="code">91</field>
<field
name="description"
>Hire, loan, and operational leasing longer than 24 months</field>
</record>
<record id="intrastat_transaction_99" model="intrastat.transaction">
<field name="code">99</field>
<field name="description">Other</field>
</record>

</odoo>
Loading
Loading