Skip to content

Commit

Permalink
Merge e96ca17 into 6dbded7
Browse files Browse the repository at this point in the history
  • Loading branch information
astirpe committed Apr 12, 2017
2 parents 6dbded7 + e96ca17 commit 8669dac
Show file tree
Hide file tree
Showing 16 changed files with 1,029 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ sudo: false
cache: pip

addons:
postgresql: "9.2" # minimal postgresql version for the daterange method
apt:
packages:
- expect-dev # provides unbuffer utility
Expand Down
88 changes: 88 additions & 0 deletions l10n_nl_intrastat/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3

=============================================
Intrastat reporting (ICP) for the Netherlands
=============================================

Based on the OCA Intrastat framework, this module provides an
intrastat report for the Netherlands. Only generating the required data
for a manual declaration is supported. Message communication with the
tax authority has not yet been implemented.

The intrastat base module requires the country field required on
partner addresses. Selected countries are marked for inclusion in this report.

Amounts for products and services are reported separately. All services
are reported, regardless of the 'Accessory cost setting' which is used in
the French version of this report.

To exclude specific lines from the report, you can mark specific taxes
as such. If such a tax is applied to the line, the line will not be
included in the reported amounts.

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

To configure this module, you need to:

#. Configure the country of your company (NL)

Usage
=====

To use this module, you need to:

#. Have invoices to some partners in other EU countries
#. Go to Invoicing - Financial Reports - Intrastat - ICP report
#. Create a report, define a date range, press Update
#. Watch the ICP report values for this date range appear
#. Manually copy the values into your ICP tax entry

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/176/10.0

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

* The Dutch tax authority accepts an XML format, generate this to avoid manual processing.

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 smash it by providing detailed and welcomed feedback.

Credits
=======

Images
------

* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.

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

* Therp BV
* Sunflower IT
* Andrea Stirpe <a.stirpe@onestein.nl>

Maintainer
----------

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

This module is maintained by the OCA.

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.

To contribute to this module, please visit https://odoo-community.org.
3 changes: 3 additions & 0 deletions l10n_nl_intrastat/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-

from . import models
25 changes: 25 additions & 0 deletions l10n_nl_intrastat/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
# Copyright 2010-2011 Akretion (http://www.akretion.com).
# Modifications Copyright 2012-2016 Therp BV <http://therp.nl>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
'name': 'Intrastat reporting (ICP) for the Netherlands',
'version': '10.0.1.0.0',
'category': 'Localisation/Report Intrastat',
'license': 'AGPL-3',
'summary': 'Intrastat report for the Netherlands',
'author': 'Therp BV, Odoo Community Association (OCA)',
'website': 'https://github.com/OCA/intrastat',
'depends': [
'intrastat_base',
'date_range'
],
'data': [
'security/ir.model.access.csv',
'data/report_layouts.xml',
'report/reports.xml',
'report/l10n_nl_intrastat.xml',
'views/l10n_nl_intrastat.xml',
],
}
39 changes: 39 additions & 0 deletions l10n_nl_intrastat/data/report_layouts.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="assets_specific" inherit_id="report.assets_common">
<xpath expr="." position="inside">
<link href="/l10n_nl_intrastat/static/src/css/report.css" rel="stylesheet"/>
</xpath>
</template>

<template id="l10n_nl_intrastat.internal_layout">
<div class="header">
<div class="row">
<div class="col-xs-6">
<span t-esc="title"/>
</div>
<div class="col-xs-6 text-right">
<span t-esc="company_name"/>
</div>
</div>
</div>
<t t-raw="0" />
<div class="footer">
<div class="row">
<div class="col-xs-6 custom_footer">
<span>Printed: </span>
<span t-esc="context_timestamp(datetime.datetime.now()).strftime('%Y-%m-%d %H:%M')"/>
</div>
<div class="col-xs-6 text-right custom_footer">
<ul class="list-inline">
<li><span class="page"/></li>
<li>/</li>
<li><span class="topage"/></li>
</ul>
</div>
</div>
</div>
</template>

</odoo>
172 changes: 172 additions & 0 deletions l10n_nl_intrastat/i18n/nl.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
# Translation of OpenERP Server.
# This file contains the translation of the following modules:
# * l10n_nl_intrastat
#
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 6.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-12-04 11:31+0000\n"
"PO-Revision-Date: 2012-12-04 11:31+0000\n"
"Last-Translator: <stefan@therp.nl>\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_nl_intrastat
#: model:ir.model,name:l10n_nl_intrastat.model_l10n_nl_report_intrastat
msgid "Declaration of intracommunautary transactions (ICP)"
msgstr "Opgaaf Intracommunautaire Prestaties (ICP)"

#. module: l10n_nl_intrastat
#: field:l10n_nl.report.intrastat.line,amount_service:0
msgid "Amount services"
msgstr "Totaalbedrag diensten"

#. module: l10n_nl_intrastat
#: field:l10n_nl.report.intrastat,state:0
msgid "State"
msgstr "Status"

#. module: l10n_nl_intrastat
#: selection:l10n_nl.report.intrastat,state:0
msgid "Draft"
msgstr "Concept"

#. module: l10n_nl_intrastat
#: field:l10n_nl.report.intrastat.line,amount_product:0
msgid "Amount products"
msgstr "Totaalbedrag leveringen"

#. module: l10n_nl_intrastat
#: code:addons/l10n_nl_intrastat/model/l10n_nl_intrastat.py:144
#, python-format
msgid "Missing country on the invoice addresses of the following partners:\n"
"%s"
msgstr "Ontbrekend land op het factuuradresvan de volgende partner:\n"
"%s"

#. module: l10n_nl_intrastat
#: help:l10n_nl.report.intrastat,notes:0
msgid "You can add some comments here if you want."
msgstr "Hier kunnen eventuele aantekeningen geplaatst worden."

#. module: l10n_nl_intrastat
#: help:l10n_nl.report.intrastat,company_id:0
msgid "Related company."
msgstr "Bedrijf van deze aangifte."

#. module: l10n_nl_intrastat
#: help:l10n_nl.report.intrastat,date_done:0
msgid "Last date when the intrastat declaration was converted to 'Done' state."
msgstr "Datum van de laatste statuswijziging naar 'Gereed'."

#. module: l10n_nl_intrastat
#: field:l10n_nl.report.intrastat,company_id:0
msgid "Company"
msgstr "Bedrijf"

#. module: l10n_nl_intrastat
#: field:l10n_nl.report.intrastat.line,vat:0
msgid "VAT"
msgstr "BTW-nummer"

#. module: l10n_nl_intrastat
#: field:l10n_nl.report.intrastat,total_amount:0
msgid "Total amount"
msgstr "Totaalbedrag"

#. module: l10n_nl_intrastat
#: field:l10n_nl.report.intrastat.line,country_code:0
msgid "Country Code"
msgstr "Landcode"

#. module: l10n_nl_intrastat
#: view:l10n_nl.report.intrastat:0
#: field:l10n_nl.report.intrastat,notes:0
msgid "Notes"
msgstr "Aantekeningen"

#. module: l10n_nl_intrastat
#: model:ir.model,name:l10n_nl_intrastat.model_l10n_nl_report_intrastat_line
msgid "ICP report line"
msgstr "ICP aangifteregel"

#. module: l10n_nl_intrastat
#: code:addons/l10n_nl_intrastat/model/l10n_nl_intrastat.py:219
#, python-format
msgid "Cannot remove IPC reports in a non-draft state"
msgstr "Alleen aangiften in concept-status kunnen worden verwijderd"

#. module: l10n_nl_intrastat
#: code:addons/l10n_nl_intrastat/model/l10n_nl_intrastat.py:119
#: code:addons/l10n_nl_intrastat/model/l10n_nl_intrastat.py:143
#: code:addons/l10n_nl_intrastat/model/l10n_nl_intrastat.py:218
#, python-format
msgid "Error"
msgstr "Fout"

#. module: l10n_nl_intrastat
#: help:l10n_nl.report.intrastat,state:0
msgid "State of the declaration. When the state is set to 'Done', the parameters become read-only."
msgstr "Status van de aangifte. Wanneer de status op 'Gereed' staat, worden de gegevens alleen-lezen."

#. module: l10n_nl_intrastat
#: field:l10n_nl.report.intrastat.line,report_id:0
msgid "ICP report"
msgstr "Aangifte ICP"

#. module: l10n_nl_intrastat
#: field:l10n_nl.report.intrastat,line_ids:0
msgid "ICP line"
msgstr "ICP-regel"

#. module: l10n_nl_intrastat
#: help:l10n_nl.report.intrastat,total_amount:0
msgid "Total amount in company currency of the declaration."
msgstr "Totaalbedrag van de aangifte in de bedrijfsvaluta"

#. module: l10n_nl_intrastat
#: code:addons/l10n_nl_intrastat/model/l10n_nl_intrastat.py:120
#, python-format
msgid "Cannot generate reports lines in a non-draft state"
msgstr "Kan alleen regels genereren voor een aangifte in concept-status"

#. module: l10n_nl_intrastat
#: field:l10n_nl.report.intrastat,period_id:0
msgid "Period"
msgstr "Periode"

#. module: l10n_nl_intrastat
#: view:l10n_nl.report.intrastat:0
msgid "Generate lines"
msgstr "Regels aanmaken"

#. module: l10n_nl_intrastat
#: selection:l10n_nl.report.intrastat,state:0
msgid "Done"
msgstr "Gereed"

#. module: l10n_nl_intrastat
#: view:l10n_nl.report.intrastat:0
msgid "Cancel"
msgstr "Annuleer"

#. module: l10n_nl_intrastat
#: field:l10n_nl.report.intrastat.line,partner_id:0
msgid "Partner"
msgstr "Relatie"

#. module: l10n_nl_intrastat
#: model:ir.actions.act_window,name:l10n_nl_intrastat.l10n_nl_intrastat_tree_action
#: model:ir.ui.menu,name:l10n_nl_intrastat.l10n_nl_intrastat_report_menu
msgid "ICP Report"
msgstr "Aangifte ICP"

#. module: l10n_nl_intrastat
#: field:l10n_nl.report.intrastat,date_done:0
msgid "Date done"
msgstr "Datum gereed"

3 changes: 3 additions & 0 deletions l10n_nl_intrastat/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-

from . import l10n_nl_intrastat
Loading

0 comments on commit 8669dac

Please sign in to comment.