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

[MIG] l10n_be_intrastat_product: Migration to 17.0 #225

Open
wants to merge 21 commits into
base: 17.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
db8cf27
[14.0]add l10n_be_intrastat_product
luc-demeyer Oct 14, 2022
b553703
l10n_be_intrastat_product - add maintainer
luc-demeyer Oct 15, 2022
a785349
l10n_be_intrastat_product - add unit test for refunds
luc-demeyer Oct 15, 2022
3adac76
l10n_be_intrastat_product - refund handling
luc-demeyer Oct 31, 2022
f11e713
[UPD] Update l10n_be_intrastat_product.pot
Nov 3, 2022
02e6f43
use README.rst from maintainer tools templates
luc-demeyer Nov 11, 2022
083f85e
intrastat readme
luc-demeyer Nov 11, 2022
92b177f
[UPD] README.rst
OCA-git-bot Nov 12, 2022
498e08d
[IMP] l10n_be_intrastat_product: pre-commit execution
jdidderen-noviat Nov 11, 2023
a81b2de
[MIG] l10n_be_intrastat_product: Migration to 15.0
jdidderen-noviat Nov 13, 2023
63a5ab6
[UPD] Update l10n_be_intrastat_product.pot
Nov 13, 2023
a756f24
[BOT] post-merge updates
OCA-git-bot Nov 13, 2023
fafa6b2
[MIG] l10n_be_intrastat_product: Migration to 16.0
jdidderen-noviat Nov 12, 2023
cba171e
[FIX]l10n_be_intrastat_product_declaration - remove obsolete code
luc-demeyer Apr 29, 2024
18743de
[IMP]l10n_be_intrastat_product - update readme
luc-demeyer Apr 29, 2024
ca909af
[FIX]l10n_be_intrastat_product fix unit tests
luc-demeyer Apr 29, 2024
76b65ff
[UPD] Update l10n_be_intrastat_product.pot
May 2, 2024
7224a12
[IMP] l10n_be_intrastat_product: pre-commit auto fixes
luc-demeyer Sep 30, 2024
0ffca14
[MIG] l10n_be_intrastat_product: Migration to 17.0
luc-demeyer Sep 30, 2024
8197a86
[MIG] l10n_be_intrastat_product: Migration to 17.0 - fix unit tests
luc-demeyer Sep 30, 2024
3ef773a
[IMP] l10n_be_intrastat_product - remove no longer used code
luc-demeyer Sep 30, 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
202 changes: 202 additions & 0 deletions l10n_be_intrastat_product/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,202 @@
=========================================
Intrastat Product Declaration for Belgium
=========================================

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

.. |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/17.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-17-0/l10n-belgium-17-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=17.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 *account_intrastat* and
*l10n_be_intrastat* modules from the Odoo Enterprise 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.

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

- Accounting -> Configuration -> Settings

Section Intrastat:

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

Section Customer Invoices:

- Default Incoterm

- 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 do
not recommend to change these settings.

A configuration wizard (part of the **intrastat_product** module)
also allows to update the Intrastat Codes so that you can easily
synchronise your Odoo instance with the latest list of codes supplied
by the configuration wizard. (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' field for
transactions that must be included in the intrastat declaration. We
recommend to set the 'VAT required' flag on the 'Intra Community
Regime' Fiscal Position for B2B customers.

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' field is set to B2C 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.

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:%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
-------

* 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/17.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
22 changes: 22 additions & 0 deletions l10n_be_intrastat_product/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2009-2022 Noviat.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Intrastat Product Declaration for Belgium",
"version": "17.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", "base_view_inheritance_extension"],
"conflicts": ["l10n_be_intrastat", "report_intrastat"],
"data": [
"security/intrastat_security.xml",
"data/intrastat_region.xml",
"views/account_move_views.xml",
"views/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>
Binary file not shown.
100 changes: 100 additions & 0 deletions l10n_be_intrastat_product/i18n/l10n_be_intrastat_product.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_be_intrastat_product
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: l10n_be_intrastat_product
#: model:ir.actions.act_window,name:l10n_be_intrastat_product.l10n_be_intrastat_product_declaration_action
#: model:ir.ui.menu,name:l10n_be_intrastat_product.l10n_be_intrastat_product_declaration_menu
#: model:res.groups,name:l10n_be_intrastat_product.group_l10n_be_intrastat_product
msgid "Belgian Intrastat Product Declaration"
msgstr ""

#. module: l10n_be_intrastat_product
#: model:intrastat.region,name:l10n_be_intrastat_product.intrastat_region_3
msgid "Brussels region"
msgstr ""

#. module: l10n_be_intrastat_product
#. odoo-python
#: code:addons/l10n_be_intrastat_product/models/intrastat_product_declaration.py:0
#, python-format
msgid ""
"Error while processing %(line)s:\n"
"Missing '%(line_field)s'."
msgstr ""

#. module: l10n_be_intrastat_product
#: model:intrastat.region,name:l10n_be_intrastat_product.intrastat_region_1
msgid "Flemish region"
msgstr ""

#. module: l10n_be_intrastat_product
#. odoo-python
#: code:addons/l10n_be_intrastat_product/models/intrastat_product_declaration.py:0
#, python-format
msgid ""
"Intrastat Code '%s' not found. \n"
"You can update your codes via the module intrastat_product_hscodes_import."
msgstr ""

#. module: l10n_be_intrastat_product
#: model:ir.model,name:l10n_be_intrastat_product.model_intrastat_product_computation_line
msgid "Intrastat Product Computation Lines for Belgium"
msgstr ""

#. module: l10n_be_intrastat_product
#: model:ir.model,name:l10n_be_intrastat_product.model_intrastat_product_declaration
msgid "Intrastat Product Declaration"
msgstr ""

#. module: l10n_be_intrastat_product
#: model:ir.model,name:l10n_be_intrastat_product.model_account_move
msgid "Journal Entry"
msgstr ""

#. module: l10n_be_intrastat_product
#. odoo-python
#: code:addons/l10n_be_intrastat_product/models/account_move.py:0
#, python-format
msgid "Select a 1 digit intrastat transaction code."
msgstr ""

#. module: l10n_be_intrastat_product
#. odoo-python
#: code:addons/l10n_be_intrastat_product/models/account_move.py:0
#, python-format
msgid "Select a 2 digit intrastat transaction code."
msgstr ""

#. module: l10n_be_intrastat_product
#. odoo-python
#: code:addons/l10n_be_intrastat_product/models/intrastat_product_declaration.py:0
#, python-format
msgid ""
"The Intrastat Region of the Company is not set, please configure it first."
msgstr ""

#. module: l10n_be_intrastat_product
#. odoo-python
#: code:addons/l10n_be_intrastat_product/models/intrastat_product_declaration.py:0
#, python-format
msgid ""
"Unable to determine the correct handling of Refund. Please check/set the "
"Intrastat Transaction Code on the Refund."
msgstr ""

#. module: l10n_be_intrastat_product
#: model:intrastat.region,name:l10n_be_intrastat_product.intrastat_region_2
msgid "Walloon region"
msgstr ""
1 change: 1 addition & 0 deletions l10n_be_intrastat_product/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import intrastat_product_declaration
Loading
Loading