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

[18.0][MIG] l10n_fr_intrastat_product #616

Draft
wants to merge 217 commits into
base: 18.0
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
217 commits
Select commit Hold shift + click to select a range
057e7f9
Started work on l10n_fr_intrastat_product
Mar 31, 2011
87db892
First alpha version of the new module "l10n_fr_intrastat_product". Fi…
Apr 1, 2011
435767f
More work on full DEB+DES implementation. Added full support for "tra…
Apr 3, 2011
d435319
Converted some fields on report_intrastat_product/service to many2one…
Apr 4, 2011
5563910
In report_intrastat_product_line, remplace the 2 country fields from …
Apr 4, 2011
0f1b764
Complete change of design for intrastat_type ! Now that report_intras…
Apr 4, 2011
c8a6bab
Renamed some fields Now manages the specifications of the different p…
Apr 5, 2011
15e3c81
"Date done" converted to date + time. Re-order fields in intrastat_se…
Apr 6, 2011
b35aa68
Better interface when entering DEB lines manually. Commit before I br…
Apr 6, 2011
5161c82
Brand new XML view for intrastat_product, for better usability (dynam…
Apr 6, 2011
5cead5c
Move the check on weight higher in the code to avoid a crash when wei…
Apr 7, 2011
2b72c6f
Removed from prints (not all yet)
Apr 7, 2011
e3a3f27
Error in the inherit of view, which can cause a crash in the product …
Apr 8, 2011
c5937f4
Desactivate a check temporaryly.
Apr 8, 2011
8f7d3db
Add pricelist on res_company to compute the stat value Ability to fac…
Apr 9, 2011
181a74e
- demo data : Add department on warehouse - removed the use of "user"…
Apr 9, 2011
ee09aa4
Removed unused code in SQL query (this "id" field was required when i…
Apr 9, 2011
8da0666
- For "generate lines from picking", exclude picking from sale orders…
Apr 13, 2011
4324190
Full re-design of intrastat types : probably requires deleting the re…
Apr 18, 2011
045a14a
New important feature : ability to exlude invoice lines that have a s…
Apr 20, 2011
9109d7b
Label updated.
Apr 20, 2011
85009c3
Bug when opening picking.
Apr 20, 2011
9f37a7e
Support for some triangular operations (not all yet) [FIX] an issue w…
Apr 21, 2011
3cfeba2
Moved some demo data from l10n_fr_intrastat_product to intrastat_base…
Apr 26, 2011
b5f8e4d
Moved the field exclude_from_intrastat_if_present of account.tax from…
May 9, 2011
e0c1b34
User interface enhancements.
May 9, 2011
45c1bb9
Remove check that would block the manual creation of intrastat produc…
May 9, 2011
653a7c5
More fixes in manual creation of DEB lines (more to come...)
May 9, 2011
a6e43a3
partner VAT is now saved when entering the DEB line manually.
May 9, 2011
0f8cf12
It is now possible to set the H.S. code on the product category. Some…
May 15, 2011
8ca4ad4
. Implemented the fiscal representative : for example, when you ship …
Jun 6, 2011
73ccdf8
Update of some strings before translation. Started translation work.
Jun 10, 2011
893c0a7
Better error message when fiscal rep is missing.
Jun 10, 2011
eab20ab
Some fixes in strings. Finished translation to French.
Jul 8, 2011
735737e
Add missing import
Jul 8, 2011
d0bbe4a
Modify demo data.
Jul 8, 2011
0340169
Translation and strings update. Add demo data.
Aug 16, 2011
a8f710f
Port to OpenERP v6 Add seach views for Intrastat product and Intrasta…
Aug 16, 2011
4117e49
Remove select="2", which is useless in v6
Aug 17, 2011
9390cb1
l10n_fr_intrastat_service : Moved the raise if the Partner VAT number…
Sep 5, 2011
4b6ff1d
Same modification as my previous commit for DEB : when we sell to a p…
Sep 7, 2011
621bf5d
Update translations.
Sep 9, 2011
78cc446
Updated licence pointer.
Jan 30, 2012
195fc22
Copy-paste comment error fixed !
Jan 30, 2012
6793ee6
Now manage UoM other than PCE. If the UoM required by the H.S. code i…
Feb 27, 2012
b964f4a
Longer description for HS code.
Mar 14, 2012
0b8ba93
Now support weight computation when UoM category is "Unit" and UoM !=…
Mar 14, 2012
8309df6
Fixes bug 955065 : don't declare DEB lines with value = 0
Mar 14, 2012
1697b03
l10n_fr_intrastat_product - SaleOrder's method action_invoice_create …
yvaucher May 10, 2012
9cd33fe
Add option "is_accessory_cost" on product.template : If the invoice h…
Jun 5, 2012
fed4168
Update FR translation.
Jun 5, 2012
b32805d
Add demo value for department.
Jun 7, 2012
efddd31
Do not inherit action_invoice_create in sale.py and stock.py We now i…
Jun 7, 2012
66ff4d5
Use the new logger API of OpenERP 6.1 Move the "EU fiscal representat…
Jul 16, 2012
4d8a906
Rewrote the constraint of product.supplierinfo, for better perfs. Tha…
Sep 24, 2012
2f9188d
Code clean-up : - context is not passed in constraints - don't use la…
Nov 27, 2012
8c69e5d
IMPORTANT CHANGE : - All EU countries should now be intrastat=True, i…
Apr 23, 2013
265712f
As stated in BOD dated 05/01/2012, mouvements for repairs are not req…
Apr 23, 2013
c761d8e
Initial port to v7.0. Not tested a lot for the moment.
Apr 24, 2013
0bc6add
Continue removal of mouvements for repairs (cf BOD dated 05/01/2012)
Apr 24, 2013
1a440d1
Fix wrong code.
May 1, 2013
01ac469
Introduce a big hack to make the fields added on stock.picking work R…
May 1, 2013
e340dd7
Adapt views to new v7.0 style. Replace "note" field by the mail.threa…
May 7, 2013
e97bfc0
Handle the case where an invoice has products with 0 value and access…
May 16, 2013
bb8fc08
Use the GREAT feature widget="monetary"
May 17, 2013
e07e03c
on picking, address_id -> partner_id
May 17, 2013
3a05172
Should now be compatible with both OCB and RS-OCB Add field import_ob…
Jun 3, 2013
9104151
Crash on intrastat_product.py line 334 reported by Frederic Clementi.
Jun 9, 2013
8eada18
Add an e-mail reminder for l10n_fr_intrastat_product and l10n_fr_intr…
Aug 26, 2013
8ec0835
Better form view of product category, courtesy of David Beal.
Aug 26, 2013
057b224
Add the H.S. code description in the display name of the H.S. code
Sep 27, 2013
d6b8ef9
Fix to make the module truly usable when user is not part of the grou…
Oct 23, 2013
189ff02
Remove irrelevant comment.
Dec 15, 2013
00278c8
Add ir.rule for multi-company. Better "OpenERP v7 style/ergonomy" for…
Feb 1, 2014
f81fba8
Only send reminder for French companies.
Mar 8, 2014
87dc22c
Use l10n_fr_* : use the method _company_default_get() intrastat_base …
Apr 14, 2014
88a320b
Add context in on_change (to be able to use web_context_tunnel) XSD f…
Apr 14, 2014
0d5dda8
Set fields country_id and intrastat_id invisible when type = service.
Apr 14, 2014
ef44524
l10n_fr_intrastat_service : update POT file and FR translation. l10n_…
Apr 14, 2014
dd2fad2
Continue the work on port to v8.0
Jul 3, 2014
dc55c8e
Add intrastat_type_data and update demo data accordingly Remove versi…
Jul 3, 2014
2d835d6
Update graph view for intrastat.product, to split between import and …
Jul 3, 2014
0a9b818
Inherit the new _prepare method that has been introduced in v8.0 for …
Jul 5, 2014
07b6da1
When the obligation level for import is none, the type of the DEB is …
Oct 30, 2014
00eae6e
Add module intrastat_product. Rename report.intrastat.product to l10n…
Nov 28, 2014
0f0bc49
Rename field country_id to origin_country_id (TODO : write mig script…
Dec 1, 2014
cddaa14
Take into accout the remarks of Guewen
Dec 12, 2014
b3536ca
Move intrastat_code and uom_id of report.intrastat.code from l10n_fr_…
Dec 13, 2014
fc93758
intrastat_base + l10n_fr_intrastat_service : port to new API
Dec 26, 2014
8345eab
Continue the move to the new API/flake8
Dec 29, 2014
7789328
Port intrastat.type to the new API
Dec 31, 2014
6d3208c
Make dutch ICP report workable on odoo 8.0 [FIX] Some small changes i…
NL66278 Feb 4, 2015
b442e05
Continue the port to the new API Access for intrastat report to accou…
Feb 7, 2015
13f10be
Continue port to new API + PEP8. First working version.
Feb 9, 2015
72e0ef3
FIX validation of department
Feb 10, 2015
bc75c0d
Fix a crash in Import DEB Update strings
May 10, 2015
a979fc7
Update translation and adapt a few strings
May 11, 2015
04affa4
PEP8 compliant Port a line of code that was commented with a TODO
May 11, 2015
5a97077
Remove comment
May 11, 2015
04d456e
Update FR intrastat module for intrastat v3 !
alexis-via Nov 13, 2015
bb4e593
Update views following changes in intrastat_product
alexis-via Nov 17, 2015
1e90343
FIX XML export for introductions
alexis-via Dec 9, 2015
8288742
Take into accout negative lines in total fiscal amount (régime = 25)
alexis-via Dec 12, 2015
00646f1
Add migration script for DES
alexis-via Dec 15, 2015
63d370d
FIX crash on generate computation lines on arrivals
alexis-via Jan 8, 2016
1826de9
Add warning when country of origin is missing on arrivals/extended
alexis-via Jan 8, 2016
aa3ab6b
Adapt to latest changes in module intrastat_product
alexis-via Jan 10, 2016
f1ceac0
Adapt to latest changes in intrastat_product
alexis-via Apr 10, 2016
688e67b
Remove unused files
alexis-via Apr 28, 2016
43c944b
Fix bug in a constraint in intrastat_transaction.py
alexis-via Jun 13, 2016
9c9f4fa
Remove dead files stock_view.xml and invoice_view.xml
alexis-via Jan 17, 2017
9d9eb29
Pylint fixes
alexis-via Jan 17, 2017
0ed97c9
Port l10n_fr_intrastat_service to v10
alexis-via Jan 18, 2017
5aee289
Port DEB to v10
alexis-via Mar 8, 2017
153b264
Update README for DEB and DES
alexis-via Mar 8, 2017
b284044
Put DEB menu before DES menu
alexis-via Mar 8, 2017
54ea4c6
FIX XML file generation for DEB
alexis-via Mar 8, 2017
c05542d
Add post_install script for easier configuration
alexis-via Mar 8, 2017
77b74b3
Add auto-configuration of taxes in post_install script
alexis-via Mar 9, 2017
df84d6c
Update README for DES
alexis-via Apr 25, 2017
e713131
OCA Transbot updated translations from Transifex
oca-transbot May 1, 2017
e5a4c46
OCA Transbot updated translations from Transifex
oca-transbot Dec 2, 2017
4c23638
Type of invoice in search of DEB lines
alexis-via May 14, 2018
560e2f1
Pylint fixes
alexis-via May 15, 2018
b5e832c
OCA Transbot updated translations from Transifex
oca-transbot May 19, 2018
9cf10c1
remove obsolete .pot files [ci skip]
sbidoul Jun 15, 2018
e9da6fd
Update l10n_fr_intrastat_product.pot
oca-travis Jun 22, 2018
ccac858
Restore fields for report (they were dropped during v8 to v10 migration)
alexis-via Jun 22, 2018
eb556a2
Update l10n_fr_intrastat_product.pot
oca-travis Jul 12, 2018
9cf346c
Source department on arrival DEB
alexis-via Jul 14, 2018
868ae7a
Update l10n_fr_intrastat_product.pot
oca-travis Jul 27, 2018
cbd500c
l10n_fr_intrastat_product: Migration to 11.0
rvalyi Oct 21, 2018
687f5a3
Auto-configure account.tax.template
alexis-via Dec 6, 2018
45e6272
FIX email reminder
alexis-via Dec 6, 2018
2276771
DEB reminder
alexis-via Dec 17, 2018
e47070e
l10n_fr_intrastat_product: Update FR translation
alexis-via Dec 29, 2018
6c7b3c1
Add button "Goto Prodou@ne"
alexis-via Dec 29, 2018
6c75350
Update translation files
oca-transbot Mar 3, 2019
01f3660
icon.png
OCA-git-bot Apr 3, 2019
33ac01a
[MIG] l10n_fr_intrastat_product to v12
alexis-via May 28, 2019
086c533
l10n_fr_intrastat_product: inherit XLSX reports to add FR-specific cols
alexis-via May 29, 2019
13c0cf6
[UPD] README.rst
OCA-git-bot Jun 3, 2019
25c2074
[IMP] Remove l10n_fr_siret dependency
Jun 4, 2019
7d1bdb0
[UPD] README.rst
OCA-git-bot Jul 29, 2019
c87f935
[UPD] Update l10n_fr_intrastat_product.pot
oca-travis Jul 29, 2019
5188c3b
Update translation files
oca-transbot Jul 29, 2019
655f272
ADD fr_partner_vat to xls report
Jun 24, 2019
09615a3
[UPD] Update l10n_fr_intrastat_product.pot
oca-travis Feb 1, 2020
b23792b
Update translation files
oca-transbot Feb 1, 2020
744679e
FIX non compliant code with oca rules
bealdav Feb 18, 2020
0f9b587
[MIG] DEB to v13
alexis-via Jun 8, 2020
9647aeb
DEB: black, isort, ...
alexis-via Jun 8, 2020
91e5ae1
[UPD] README.rst
OCA-git-bot Jun 23, 2020
f155d61
Update translation files
oca-transbot Aug 16, 2020
d42c35f
[MIG] l10n_fr_intrastat_product to v14
alexis-via Jan 5, 2021
0b88ac1
DEB: Add support for Brexit
alexis-via Jan 22, 2021
1ce23c3
[UPD] README.rst
OCA-git-bot Mar 30, 2021
bd73779
[REF] Fix pre-commit ignoring modules
legalsylvain Aug 10, 2021
f7aba66
[UPD] README.rst
OCA-git-bot Aug 10, 2021
c26441c
l10n_fr_intrastat_product 14.0.1.0.1
OCA-git-bot Aug 10, 2021
76e2ca0
Restore tests and remove Alpha status
alexis-via Sep 1, 2021
0d915ae
[UPD] Update l10n_fr_intrastat_product.pot
oca-travis Sep 2, 2021
28234ef
[UPD] README.rst
OCA-git-bot Sep 2, 2021
97be13f
l10n_fr_intrastat_product 14.0.1.0.2
OCA-git-bot Sep 2, 2021
24165be
Update translation files
oca-transbot Sep 2, 2021
0e38b1e
Fix travis for SIRET validation
alexis-via Oct 18, 2021
f4efe62
l10n_fr_intrastat_product 14.0.1.1.0
OCA-git-bot Oct 24, 2021
3cb74e4
[FIX] Crash in DEB XML generation
alexis-via Dec 11, 2021
03b3cbc
l10n_fr_intrastat_product 14.0.1.2.0
OCA-git-bot Dec 12, 2021
ca322ac
DEB: adapt for January 1st 2022 reform
alexis-via Dec 12, 2021
6974304
intrastat: adapt to changes in OCA/intrastat-extrastat
alexis-via Dec 15, 2021
101346e
[UPD] Update l10n_fr_intrastat_product.pot
oca-travis Jan 11, 2022
2314382
l10n_fr_intrastat_product 14.0.2.0.0
OCA-git-bot Jan 11, 2022
7d4686a
Update translation files
oca-transbot Jan 11, 2022
a13349b
Translated using Weblate (Italian)
francesco-ooops May 18, 2022
f595e5f
[UPD] Update l10n_fr_intrastat_product.pot
Jun 28, 2022
2a6677d
Update translation files
oca-transbot Jun 28, 2022
22a50d2
l10n_fr_intrastat_product: add mig script type -> declaration_type
alexis-via Jul 11, 2022
23a3356
l10n_fr_intrastat_* : update, improve and simplify
alexis-via Nov 4, 2022
8c700ff
emebi: adapt to new warn msg code
alexis-via Jan 24, 2023
2605b2e
emebi: Adapt post-install script
alexis-via Jan 24, 2023
497197f
[MIG] l10n_fr_intrastat_product to v16
alexis-via Feb 8, 2023
0193130
emebi: add the new 'regime' field in XLSX export
alexis-via Feb 9, 2023
43d0f15
[FIX] l10n_fr_intrastat_product: crash caused by rename of field depa…
alexis-via May 2, 2023
c352062
[UPD] Update l10n_fr_intrastat_product.pot
Jun 9, 2023
c1e5a44
[UPD] README.rst
OCA-git-bot Jun 9, 2023
8fdcb43
Update translation files
weblate Jun 9, 2023
3d551a0
Update translation files
weblate Jun 9, 2023
2b424a2
[FIX] EMEBI/DES: update mail templates
alexis-via Jun 20, 2023
53757b8
[UPD] Update l10n_fr_intrastat_product.pot
Jun 20, 2023
95c4939
l10n_fr_intrastat_product 16.0.1.1.0
OCA-git-bot Jun 20, 2023
db4b749
Update translation files
weblate Jun 20, 2023
b985f42
[UPD] Update l10n_fr_intrastat_product.pot
Jun 20, 2023
652dc2b
Update translation files
weblate Jun 20, 2023
19f6d09
EMEBI: improve reminder mail template
alexis-via Jun 20, 2023
40838c4
[UPD] Update l10n_fr_intrastat_product.pot
Jun 20, 2023
332e09f
l10n_fr_intrastat_product 16.0.1.2.0
OCA-git-bot Jun 20, 2023
2d3d054
Update translation files
weblate Jun 20, 2023
beb0ed2
intrastat: set lang in mail template
alexis-via Jun 20, 2023
a1da214
Translated using Weblate (French)
Jun 20, 2023
4872c46
Translated using Weblate (Italian)
mymage Jun 21, 2023
8242a92
[UPD] README.rst
OCA-git-bot Sep 3, 2023
9aec6f3
Translated using Weblate (Spanish)
Ivorra78 Aug 21, 2023
204bbb0
Translated using Weblate (Spanish)
Ivorra78 Sep 15, 2023
caa68c2
Update translation files
weblate Oct 10, 2023
ccab9e6
[BOT] post-merge updates
OCA-git-bot Oct 31, 2023
d571f00
l10n_fr_intrastat_product: use lxml/objectify to generate XML
alexis-via Nov 24, 2023
8e25765
l10n_fr_intrastat_product: no regime 29 for standard reporting level
alexis-via Nov 24, 2023
a80bb9f
l10n_fr_intrastat_product: use new line_number field on declaration l…
alexis-via Jan 23, 2024
fb9179b
[IMP] l10n_fr_intrastat_product: pre-commit auto fixes
alexis-via Jan 24, 2024
7d3637b
[MIG] l10n_fr_intrastat_product to v17
alexis-via Jan 24, 2024
241c96c
[UPD] Update l10n_fr_intrastat_product.pot
Sep 28, 2024
8e7809a
[BOT] post-merge updates
OCA-git-bot Sep 28, 2024
58f43cb
Update translation files
weblate Sep 28, 2024
27845a8
Translated using Weblate (French)
epanisset Nov 8, 2024
7d3ff33
[IMP] l10n_fr_intrastat_product: pre-commit auto fixes
alexis-via Jan 31, 2025
50d8821
[MIG] l10n_fr_intrastat_product: migrate to v18
alexis-via Feb 1, 2025
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
120 changes: 120 additions & 0 deletions l10n_fr_intrastat_product/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
=====
EMEBI
=====

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

.. |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%2Fl10n--france-lightgray.png?logo=github
:target: https://github.com/OCA/l10n-france/tree/18.0/l10n_fr_intrastat_product
:alt: OCA/l10n-france
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/l10n-france-18-0/l10n-france-18-0-l10n_fr_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/l10n-france&target_branch=18.0
:alt: Try me on Runboat

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

This module adds support for the *Enquête mensuelle statistique sur les
échanges de biens intra-UE* (EMEBI), for France. Before 2022, this
declaration was called Déclaration d'Échange de Biens (DEB).

More information about the EMEBI is available on this `official web
page <https://www.douane.gouv.fr/fiche/reglementation-sur-la-reponse-lenquete-mensuelle-statistique-sur-les-echanges-de-biens-intra>`__.

**Table of contents**

.. contents::
:local:

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

To configure this module, you need to:

- go to the menu Invoicing > Configuration > Intrastat > Transaction
Types to create/verify the Transaction Types
- go to the menu Invoicing > Settings and go to the *Intrastat*
section

Make sure that you have already configured the other modules
*intrastat_base* and *intrastat_product* on which this module depends.

WARNING: there are A LOT of settings for DEB and all these settings need
to be configured properly to generate DEBs with Odoo.

Usage
=====

To use this module, you need to go to the menu Invoicing > Reports >
Intrastat > EMEBI and create a new EMEBI. Depending on your obligation
levels, you may have to create 2 EMEBIs: one for departures
(Expéditions) and one for arrivals (Introductions). Then, click on the
button *Generate lines from invoices* to automatically generate the
computation lines of EMEBI. After checking the lines that have been
automatically generated, click on the button *Confirm* to generate the
declaration lines, create the XML file and set the declaration readonly.
Eventually, connect to your account on
`douane.gouv.fr <https://www.douane.gouv.fr/>`__ and upload the EMEBI
XML file.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-france/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/l10n-france/issues/new?body=module:%20l10n_fr_intrastat_product%0Aversion:%2018.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
-------

* Akretion

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

- Alexis de Lattre <[email protected]>

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.

.. |maintainer-alexis-via| image:: https://github.com/alexis-via.png?size=40px
:target: https://github.com/alexis-via
:alt: alexis-via

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-alexis-via|

This module is part of the `OCA/l10n-france <https://github.com/OCA/l10n-france/tree/18.0/l10n_fr_intrastat_product>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions l10n_fr_intrastat_product/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from . import models
from . import wizards
from .post_install import set_fr_company_intrastat
33 changes: 33 additions & 0 deletions l10n_fr_intrastat_product/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Copyright 2010-2022 Akretion France (http://www.akretion.com)
# @author Alexis de Lattre <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "EMEBI",
"version": "18.0.1.0.0",
"category": "Localisation/Report Intrastat",
"license": "AGPL-3",
"summary": "EMEBI (ex-DEB) for France",
"author": "Akretion,Odoo Community Association (OCA)",
"maintainers": ["alexis-via"],
"website": "https://github.com/OCA/l10n-france",
"depends": [
"l10n_fr",
"intrastat_product",
"l10n_fr_department",
],
"data": [
"security/ir.model.access.csv",
"data/intrastat_fr_regime.xml",
"views/intrastat_product_declaration.xml",
"views/intrastat_fr_regime.xml",
"views/intrastat_unit.xml",
"data/intrastat_product_reminder.xml",
"views/res_config_settings.xml",
"views/product_template.xml",
],
"post_init_hook": "set_fr_company_intrastat",
"demo": ["demo/intrastat_demo.xml"],
"installable": True,
"application": True,
}
139 changes: 139 additions & 0 deletions l10n_fr_intrastat_product/data/deb.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="INSTAT">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="Envelope"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Envelope">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="envelopeId"/>
<xsd:element ref="DateTime"/>
<xsd:element ref="Party"/>
<xsd:element ref="softwareUsed" minOccurs="0"/>
<xsd:element ref="Declaration" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="envelopeId" type="xsd:string"/>
<xsd:element name="DateTime">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="date"/>
<xsd:element ref="time" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Party">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="partyId"/>
<xsd:element ref="partyName"/>
</xsd:sequence>
<xsd:attribute name="partyType" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:NMTOKEN">
<xsd:enumeration value="PSI"/>
<xsd:enumeration value="TDP"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="partyRole" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:NMTOKEN">
<xsd:enumeration value="sender"/>
<xsd:enumeration value="PSI"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:complexType>
</xsd:element>
<xsd:element name="partyId" type="xsd:string"/>
<xsd:element name="partyName" type="xsd:string"/>
<xsd:element name="softwareUsed" type="xsd:string"/>
<xsd:element name="Declaration">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="declarationId"/>
<xsd:element ref="referencePeriod"/>
<xsd:element ref="PSIId"/>
<xsd:element ref="Function"/>
<xsd:element ref="declarationTypeCode"/>
<xsd:element ref="flowCode"/>
<xsd:element ref="currencyCode"/>
<xsd:element ref="Item" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="declarationId" type="xsd:string"/>
<xsd:element name="referencePeriod" type="xsd:string"/>
<xsd:element name="PSIId" type="xsd:string"/>
<xsd:element name="Function">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="functionCode"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="functionCode" type="xsd:string"/>
<xsd:element name="declarationTypeCode" type="xsd:string"/>
<xsd:element name="flowCode" type="xsd:string"/>
<xsd:element name="currencyCode" type="xsd:string"/>
<xsd:element name="Item">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="itemNumber"/>
<xsd:element ref="CN8" minOccurs="0"/>
<xsd:element ref="MSConsDestCode" minOccurs="0"/>
<xsd:element ref="countryOfOriginCode" minOccurs="0"/>
<xsd:element ref="netMass" minOccurs="0"/>
<xsd:element ref="quantityInSU" minOccurs="0"/>
<xsd:element ref="invoicedAmount"/>
<xsd:element ref="partnerId" minOccurs="0"/>
<xsd:element ref="invoicedNumber" minOccurs="0"/>
<xsd:element ref="statisticalProcedureCode" />
<xsd:element ref="NatureOfTransaction" minOccurs="0"/>
<xsd:element ref="modeOfTransportCode" minOccurs="0"/>
<xsd:element ref="regionCode" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="itemNumber" type="xsd:integer"/>
<xsd:element name="CN8">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="CN8Code" minOccurs="0"/>
<xsd:element ref="SUCode" minOccurs="0"/>
<xsd:element ref="additionalGoodsCode" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="CN8Code" type="xsd:string"/>
<xsd:element name="SUCode" type="xsd:string"/>
<xsd:element name="additionalGoodsCode" type="xsd:string"/>
<xsd:element name="MSConsDestCode" type="xsd:string"/>
<xsd:element name="countryOfOriginCode" type="xsd:string"/>
<xsd:element name="netMass" type="xsd:integer"/>
<xsd:element name="quantityInSU" type="xsd:integer"/>
<xsd:element name="invoicedAmount" type="xsd:integer"/>
<xsd:element name="partnerId" type="xsd:string"/>
<xsd:element name="invoicedNumber" type="xsd:string"/>
<xsd:element name="statisticalProcedureCode" type="xsd:integer"/>
<xsd:element name="NatureOfTransaction">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="natureOfTransactionACode"/>
<xsd:element ref="natureOfTransactionBCode" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="natureOfTransactionACode" type="xsd:string"/>
<xsd:element name="natureOfTransactionBCode" type="xsd:string"/>
<xsd:element name="modeOfTransportCode" type="xsd:string"/>
<xsd:element name="regionCode" type="xsd:string"/>
<xsd:element name="date" type="xsd:date"/>
<xsd:element name="time" type="xsd:time"/>
</xsd:schema>
94 changes: 94 additions & 0 deletions l10n_fr_intrastat_product/data/intrastat_fr_regime.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright 2023 Akretion France (http://www.akretion.com/)
@author: Alexis de Lattre <[email protected]>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-->
<odoo noupdate="0">
<record id="fr_regime_11" model="intrastat.fr.regime">
<field name="code">11</field>
<field name="name">Acquisitions taxables en France</field>
<field name="is_fiscal_only" eval="False" />
<field name="fiscal_value_multiplier">1</field>
<field name="declaration_type">arrivals</field>
</record>
<record id="fr_regime_19" model="intrastat.fr.regime">
<field name="code">19</field>
<field name="name">Autres introductions</field>
<field
name="description"
>Ensemble des introductions qui ne constituent pas des acquisitions intracommunautaires de biens au sens de l'article 256 bis du code général des impôts :
- introductions de biens en vue d'une prestation de services (travail à façon…) ;
- réintroductions de biens en suite d'une prestation de services (travail à façon…) ;
- placements sous un régime suspensif, y compris le placement de marchandises en provenance d'un État membre sous l'un des cinq types d'entrepôts fiscaux prévus par les textes nationaux ;
- introductions de biens destinés à un montage ou une installation ;
- introductions de biens d'occasion, d'oeuvres d'art, d'objets de collection et d'antiquité ;
- introduction de biens par des assujettis non établis en France pour y réaliser des exportations ;
- achats effectués par un assujetti français en franchise de TVA ;
- achats de biens exonérés de TVA (organes, sang et lait humains…) en vertu de l'article 291 du code général des impôts ;
- dons, cadeaux.</field>
<field name="is_fiscal_only" eval="False" />
<field name="fiscal_value_multiplier">0</field>
<field name="declaration_type">arrivals</field>
</record>

<record id="fr_regime_21" model="intrastat.fr.regime">
<field name="code">21</field>
<field
name="name"
>Livraison exonérée en France et taxable dans l'Etat membre d'arrivée</field>
<field name="is_fiscal_only" eval="False" />
<field name="fiscal_value_multiplier">1</field>
<field name="declaration_type">dispatches</field>
</record>
<record id="fr_regime_29" model="intrastat.fr.regime">
<field name="code">29</field>
<field name="name">Autres expéditions (vente à distance B2C…)</field>
<field
name="description"
>- Éxpéditions de biens en vue d'une prestation de services (travail à façon…) ;
- Réexpéditions de biens en suite d'une prestation de services (travail à façon…) ;
- Éxpéditions de biens destinés à faire l'objet d'un montage ou d'une installation ;
- Éxpéditions de biens dans le cadre de ventes à distance B2C ;
- Éxpéditions de biens d'occasion, d'oeuvres d'art, d'objets de collection et d'antiquité ;
- Livraisons aux forces armées étrangères, aux organismes internationaux et aux ambassades
étrangères établis dans un autre État membre ;
- Livraisons de moyens de transport neufs à des particuliers ;
- Éxpéditions en vue de l'accomplissement des formalités d'exportation dans un autre État
membre ;
- Dons, cadeaux.</field>
<field name="is_fiscal_only" eval="False" />
<field name="fiscal_value_multiplier">0</field>
<field name="declaration_type">dispatches</field>
</record>
<record id="fr_regime_25" model="intrastat.fr.regime">
<field name="code">25</field>
<field
name="name"
>Régularisation commerciale entraînant une minoration de valeur</field>
<field name="description">Rabais, remise, ristourne</field>
<field name="is_fiscal_only" eval="True" />
<field name="fiscal_value_multiplier">-1</field>
<field name="declaration_type">dispatches</field>
</record>
<record id="fr_regime_26" model="intrastat.fr.regime">
<field name="code">26</field>
<field
name="name"
>Régularisation commerciale entraînant une majoration de valeur</field>
<field name="is_fiscal_only" eval="True" />
<field name="fiscal_value_multiplier">1</field>
<field name="declaration_type">dispatches</field>
</record>
<record id="fr_regime_31" model="intrastat.fr.regime">
<field name="code">31</field>
<field name="name">Opérations particulières</field>
<field
name="description"
>Refacturation dans le cadre d'une opération triangulaire, ou facturation de matériaux à un donneur d'ouvrage établi dans un autre État membre, les
matériaux faisant l'objet d'une prestation de services en France</field>
<field name="is_fiscal_only" eval="True" />
<field name="fiscal_value_multiplier">1</field>
<field name="declaration_type">dispatches</field>
</record>
</odoo>
Loading
Loading