Skip to content

Commit

Permalink
Merge 1b4bd4c into c9c941d
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexis de Lattre committed Dec 9, 2015
2 parents c9c941d + 1b4bd4c commit a057f2d
Show file tree
Hide file tree
Showing 65 changed files with 4,756 additions and 0 deletions.
75 changes: 75 additions & 0 deletions intrastat_base/README.rst
@@ -0,0 +1,75 @@
.. 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 Base Module
=====================

This module contains common functions for the Intrastat reporting and
should be used in combination with country-specific reporting modules
such as:

- *l10n_fr_intrastat_service*:
the module for the *Déclaration Européenne des Services* (DES) for France
- *l10n_fr_intrastat_product*:
the module for the *Déclaration d'Echange de Biens* (DEB) for France
- *l10n_be_intrastat_product*:
the module for the Intrastat Declaration for Belgium.


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

WARNING:

This module conflicts with the module *report_intrastat* from the official addons.
If you have already installed the module *report_intrastat*,
you should uninstall it first before installing this module.

Usage
=====

To create H.S. codes, go to the menu *Sales > Configuration > Product Categories and Attributes > H.S. Codes*.

Then you will be able to set the H.S. code on an product (under the *Information* tab) or on a product category. On the product form, you will also be able to set the *Country of Origin* of a product (for example, if the product is *made in China*, select *China* as *Country of Origin*).

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


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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-financial-reporting/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed feedback `here <https://github.com/OCA/
account-financial-reporting/issues/new?body=module:%20
intrastat_base%0Aversion:%20
8.0.1.2%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.


Credits
=======

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

* Alexis de Lattre, Akretion <alexis.delattre@akretion.com>
* Luc De Meyer, Noviat <info@noviat.com>

Maintainer
----------
.. image:: http://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: http://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 http://odoo-community.org.
23 changes: 23 additions & 0 deletions intrastat_base/__init__.py
@@ -0,0 +1,23 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
# Report intrastat base module for Odoo
# Copyright (C) 2011-2014 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################

from . import models
46 changes: 46 additions & 0 deletions intrastat_base/__openerp__.py
@@ -0,0 +1,46 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
# Intrastat base module for Odoo
# Copyright (C) 2011-2015 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################

{
'name': 'Intrastat Reporting Base',
'version': '1.2',
'category': 'Intrastat',
'license': 'AGPL-3',
'summary': 'Base module for Intrastat reporting',
'author': 'Akretion,Odoo Community Association (OCA)',
'website': 'http://www.akretion.com',
'depends': ['base_vat'],
'conflicts': ['report_intrastat'],
'data': [
'data/country_data.xml',
'views/product_template.xml',
'views/res_partner.xml',
'views/res_country.xml',
'views/account_tax.xml',
'views/res_company.xml',
'views/intrastat.xml',
],
'demo': [
'demo/intrastat_demo.xml',
],
'installable': True,
}
90 changes: 90 additions & 0 deletions intrastat_base/data/country_data.xml
@@ -0,0 +1,90 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>

<data noupdate="1">
<record id="base.fr" model="res.country">
<field name="intrastat" eval="True"/>
</record>
<record id="base.de" model="res.country">
<field name="intrastat" eval="True"/>
</record>
<record id="base.at" model="res.country">
<field name="intrastat" eval="True"/>
</record>
<record id="base.cy" model="res.country">
<field name="intrastat" eval="True"/>
</record>
<record id="base.dk" model="res.country">
<field name="intrastat" eval="True"/>
</record>
<record id="base.es" model="res.country">
<field name="intrastat" eval="True"/>
</record>
<record id="base.ee" model="res.country">
<field name="intrastat" eval="True"/>
</record>
<record id="base.fi" model="res.country">
<field name="intrastat" eval="True"/>
</record>
<record id="base.gr" model="res.country">
<field name="intrastat" eval="True"/>
</record>
<record id="base.hu" model="res.country">
<field name="intrastat" eval="True"/>
</record>
<record id="base.ie" model="res.country">
<field name="intrastat" eval="True"/>
</record>
<record id="base.it" model="res.country">
<field name="intrastat" eval="True"/>
</record>
<record id="base.lv" model="res.country">
<field name="intrastat" eval="True"/>
</record>
<record id="base.lt" model="res.country">
<field name="intrastat" eval="True"/>
</record>
<record id="base.lu" model="res.country">
<field name="intrastat" eval="True"/>
</record>
<record id="base.mt" model="res.country">
<field name="intrastat" eval="True"/>
</record>
<record id="base.nl" model="res.country">
<field name="intrastat" eval="True"/>
</record>
<record id="base.pl" model="res.country">
<field name="intrastat" eval="True"/>
</record>
<record id="base.pt" model="res.country">
<field name="intrastat" eval="True"/>
</record>
<record id="base.sk" model="res.country">
<field name="intrastat" eval="True"/>
</record>
<record id="base.cz" model="res.country">
<field name="intrastat" eval="True"/>
</record>
<record id="base.uk" model="res.country">
<field name="intrastat" eval="True"/>
</record>
<record id="base.si" model="res.country">
<field name="intrastat" eval="True"/>
</record>
<record id="base.se" model="res.country">
<field name="intrastat" eval="True"/>
</record>
<record id="base.ro" model="res.country">
<field name="intrastat" eval="True"/>
</record>
<record id="base.bg" model="res.country">
<field name="intrastat" eval="True"/>
</record>
<record id="base.be" model="res.country">
<field name="intrastat" eval="True"/>
</record>
<record id="base.hr" model="res.country">
<field name="intrastat" eval="True"/>
</record>
</data>
</openerp>
57 changes: 57 additions & 0 deletions intrastat_base/demo/intrastat_demo.xml
@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="utf-8"?>

<!--
Copyright (C) 2011-2014 Akretion (http://www.akretion.com/)
@author Alexis de Lattre <alexis.delattre@akretion.com>
The licence is in the file __openerp__.py
-->

<openerp>
<data noupdate="1">

<record id="base.main_partner" model="res.partner">
<field name="vat">FR58441019213</field>
</record>

<record id="base.res_partner_8" model="res.partner"> <!-- MediaPole -->
<field name="vat">BE0828696437</field>
<field name="supplier">True</field>
</record>

<record id="base.res_partner_5" model="res.partner"> <!-- Ecole de Commerce de Liege -->
<field name="vat">BE0443167858</field>
<field name="supplier">True</field>
</record>

<record id="base.res_partner_2" model="res.partner"> <!-- Agrolait -->
<field name="vat">BE0884025633</field>
<field name="supplier">True</field>
</record>

<record id="account.sales_journal" model="account.journal">
<field name="update_posted">True</field>
</record>

<record id="account.refund_sales_journal" model="account.journal">
<field name="update_posted">True</field>
</record>

<record id="account.expenses_journal" model="account.journal">
<field name="update_posted">True</field>
</record>

<record id="account.refund_expenses_journal" model="account.journal">
<field name="update_posted">True</field>
</record>

<record id="shipping_costs_exclude" model="product.product">
<field name="name">Shipping costs</field>
<field name="code">SHIP</field>
<field name="type">service</field>
<field name="categ_id" ref="product.product_category_all"/>
<field name="list_price">30</field>
<field name="is_accessory_cost">True</field>
</record>

</data>
</openerp>

0 comments on commit a057f2d

Please sign in to comment.