Skip to content

Commit

Permalink
Merge PR #208 into 15.0
Browse files Browse the repository at this point in the history
Signed-off-by luc-demeyer
  • Loading branch information
OCA-git-bot committed Nov 11, 2023
2 parents ce1460a + 0300bb0 commit bea8876
Show file tree
Hide file tree
Showing 38 changed files with 42,515 additions and 4 deletions.
2 changes: 1 addition & 1 deletion companyweb_base/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Companyweb
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:168b0c27e275cc0464faeec7aedcf51f91f2915b684f60ad9bfcc479bfbb53b8
!! source digest: sha256:f840303f10e7bd3fe7848ded701859ffb3c83c57a64ecf5035c984b115f0dad8
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
Expand Down
2 changes: 1 addition & 1 deletion companyweb_payment_info/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Companyweb Payment Info
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:c54816e96a58ce487542131cd55830b335ffa8caba87820af9809c47acba54c9
!! source digest: sha256:a3abe879d486ce6beeffc5cf336e5db0a9c449f2feec5dcdfd99362d894e2d20
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
Expand Down
212 changes: 212 additions & 0 deletions l10n_be_intrastat_product/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,212 @@
=========================================
Intrastat Product Declaration for Belgium
=========================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:035b9ad10d46e56d2d74c61be47e3f95566553feb694e6ea2449a9f92d535d0f
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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--belgium-lightgray.png?logo=github
:target: https://github.com/OCA/l10n-belgium/tree/15.0/l10n_be_intrastat_product
:alt: OCA/l10n-belgium
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/l10n-belgium-15-0/l10n-belgium-15-0-l10n_be_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-belgium&target_branch=15.0
:alt: Try me on Runboat

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

This module implements the Belgian Intrastat reporting.

The report can be reviewed and corrected where needed before
the creation of the XML file for the online declaration (ONEGATE).

More information can be found on the National Bank website:
https://www.nbb.be/en/statistics/foreign-trade

**Table of contents**

.. contents::
:local:

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

Conflicting modules
~~~~~~~~~~~~~~~~~~~

This module conflicts with the module *report_intrastat* and *l10n_be_intrastat*
from the official addons.
If you have already installed these modules,
you should uninstall them before installing this module.

Refund handling
~~~~~~~~~~~~~~~

We recommend to also install the OCA stock_picking_invoice_link module,
cf. https://github.com/OCA/stock-logistics-workflow.
This modules establishes a link between invoice lines and stock pickings.
When this module is installed the declaration will take into account refunds created via return pickings.

Multi-company setup
~~~~~~~~~~~~~~~~~~~

Please ensure to set the Default Company of the OdooBot user to the company
for which you are installing this localization module.
Not doing so may result in a conflict with other localization modules (e.g. l10n_fr_intrastat_product).


Configuration wizard to load intrastat codes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The module comes with a configuration wizard that allows you to load the intrastat codes into the database.
The intrastat codes are available in 4 languages : english, dutch, french, german.

If your databases has been configured to support multiple languages, you should execute the wizard
for each language that you want to offer to the users.

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

* Accounting -> Configuration -> Settings

- Arrivals : Exempt, Standard or Extended
- Dispatches : Exempt, Standard or Extended
- Default Intrastat Region
- Default Intrastat Transaction
- Default Intrastat Transport Mode (Extended Declaration)
- Default Intrastat Incoterm (Extended Declaration)

* Warehouse

Intrastat Region to cope with warehouses in different regions

* Inrastat Codes, Supplementary Units, Transaction Tyoes, Transport Modes, Regions

Cf. menu Accounting / Configuration / Intrastat

The configuration data is loaded when installing the module.
We recommend no to change these settings.

A configuration wizard also allows to update the Intrastat Codes so that you can easily
synchronise your Odoo instance with the latest list of codes supplied with this module
(an update is published on an annual basis by the Belgian National Bank).

* Product

You can define a default Intrastat Code on the Product or the Product Category.

* Fiscal Positions

Check your Fiscal Positions and set the 'Intrastat' flag for transactations that
must be included in the intrastat declaration.
We recommend to set the 'VAT required' flag on the 'Intra Community Regime' Fiscal Position.

If you have B2C customers or B2B customers which are not subject to VAT you can create a
'Intra Community Regime NA' Fiscal Position on which the 'Intrastat' flag is set while the 'VAT required'
flag has been turned off.

* Partner

Ensure that your B2B Customer records have a valid VAT Number.

Consider the use of the OCA **account_fiscal_position_vat_check module** to enforce the correct setting.
Cf. https://github.com/OCA/account-financial-tools.

If you have not set the 'Detect Automatically' flan on your Intra Community Fiscal Position(s) than you should
set the 'Intra Community Regime NA' Fiscal Position on B2B customer records who are not subject to VAT.
Alternatively you can also set 'NA' in the VAT number field of such a customer.

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

* The current version of the Belgian Intrastat reporting module is only based on invoices.
Since associated stock moves are not taken into consideration, it is possible that manual
corrections are required, e.g.
Product movements without invoices are not included in the current version
of this module and must be added manually to the report lines
before generating the ONEGATE XML declaration.

* Refunds on invoices within the same reporting period are deducted from the declaration lines.
No controls are executed on Refunds that are not linked to an invoice
in the same reporting period.
Such Refunds are reported under the default transaction code for refunds.
It is recommend to manually set the correct transaction code while Credit Notes
are created.

* The current version of the Belgian Intrastat reporting module does not perform a
cross-check with the VAT declaration.

Changelog
=========

This module is also available for olders Odoo versions:

- Odoo 12.0 - 13.0: cf. https://github.com/Noviat/noviat-apps

- Odoo 7.0 - 11.0: cf. https://github.com/luc-demeyer/noviat-apps

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

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

* Noviat

Contributors
~~~~~~~~~~~~

* Noviat <https://noviat.com>
* Luc De Meyer <[email protected]>
* Jérémy Didderen <[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-luc-demeyer| image:: https://github.com/luc-demeyer.png?size=40px
:target: https://github.com/luc-demeyer
:alt: luc-demeyer
.. |maintainer-jdidderen-noviat| image:: https://github.com/jdidderen-noviat.png?size=40px
:target: https://github.com/jdidderen-noviat
:alt: jdidderen-noviat

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

|maintainer-luc-demeyer| |maintainer-jdidderen-noviat|

This module is part of the `OCA/l10n-belgium <https://github.com/OCA/l10n-belgium/tree/15.0/l10n_be_intrastat_product>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions l10n_be_intrastat_product/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
24 changes: 24 additions & 0 deletions l10n_be_intrastat_product/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright 2009-2022 Noviat.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Intrastat Product Declaration for Belgium",
"version": "15.0.1.0.0",
"category": "Intrastat",
"license": "AGPL-3",
"summary": "Intrastat Product Declaration for Belgium",
"author": "Noviat,Odoo Community Association (OCA)",
"maintainers": ["luc-demeyer", "jdidderen-noviat"],
"website": "https://github.com/OCA/l10n-belgium",
"depends": ["intrastat_product"],
"conflicts": ["l10n_be_intrastat", "report_intrastat"],
"data": [
"security/intrastat_security.xml",
"security/ir.model.access.csv",
"data/intrastat_region.xml",
"data/intrastat_transaction.xml",
"views/account_move_views.xml",
"views/l10n_be_intrastat_product_views.xml",
],
"installable": True,
}
29 changes: 29 additions & 0 deletions l10n_be_intrastat_product/data/intrastat_region.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">

<record id="intrastat_region_1" model="intrastat.region">
<field name="code">1</field>
<field name="name">Flemish region</field>
<field name="country_id" ref="base.be" />
<field
name="description"
>Includes Antwerp, Flemish Brabant, West Flanders, East Flanders and Limburg provinces
</field>
</record>
<record id="intrastat_region_2" model="intrastat.region">
<field name="code">2</field>
<field name="name">Walloon region</field>
<field name="country_id" ref="base.be" />
<field
name="description"
>Includes Walloon Brabant, Hainaut, Liège, Luxembourg and Namur provinces
</field>
</record>
<record id="intrastat_region_3" model="intrastat.region">
<field name="code">3</field>
<field name="name">Brussels region</field>
<field name="country_id" ref="base.be" />
<field name="description">Includes 19 districts</field>
</record>

</odoo>
Loading

0 comments on commit bea8876

Please sign in to comment.