===========================
CBS Export Intrahandel Sale
===========================

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

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

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

CBS = Dutch Bureau of Statistics (Centraal Bureau voor de statistiek)

When you export products within the EU you have to report those exports to the Dutch CBS.
This module will provide a export CSV file which you can upload on the CBS website. The CSV
file is automatically created every month trough a cron job.

**Table of contents**

.. contents::
   :local:

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

To install this module, you need to:

#. Install the module
#. This module depends on the Odoo module report_intrastat, for the intrastat code and countries for intrastat reporting

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

To configure this module, you need to:

#. Go to Sales > Configuration > Countries and check if all EU countries are checked as 'Intrastat member"
#. Set the Intrastat code on the products
#. Go to Technical Settings > Scheduled Actions and set the Cron "Generate CBS Export File" job on the monthly date you want to have the CSV file

Usage
=====

To use this module, you need to:

#. Go to Accounting > Reports > Export files > CBS Export (the user must belong to group "Accounting & Finance / Billing")
#. Download the created CSV file and upload in to the CBS website
#. The user belonging to group "Accounting & Finance / Adviser" can use the button "Manual CBS Export" to force a re-creation of the CSV file

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

* Only for export (sale invoices). Import (Vendor bills) is not implemented
* Only for "Intrahandel". That is export within the EU
* Field Transport "Vervoerwijze" is set hardcoded on 3. This is the most common used value.
* Field Statistic stelsel "Statistisch Stelsel" is set hardcoded on 00. This is the most common used value.
* Field Transaction "Transactie" is set hardcoded on 1. This is the most common used value.
* Field "Bijzondere maatstaf" is not yet implemented.

See documentation added to this module (doc folder) for further information about the layout and field values.

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

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

* Odoo Experts
* Onestein

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

* Erwin van der Ploeg <erwin@odooexperts.nl>
* Andrea Stirpe <a.stirpe@onestein.nl>

Other credits
~~~~~~~~~~~~~

Images
------

* Odoo Community Association: `Icon <https://odoo-community.org/logo.png>`_.

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/l10n-netherlands <https://github.com/OCA/l10n-netherlands/tree/11.0/l10n_nl_cbs_export>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
