-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by robinkeunen
- Loading branch information
Showing
22 changed files
with
1,119 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
================================= | ||
Belgium MIS Builder - XML exports | ||
================================= | ||
|
||
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |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/12.0/l10n_be_mis_reports_xml | ||
: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-12-0/l10n-belgium-12-0-l10n_be_mis_reports_xml | ||
:alt: Translate me on Weblate | ||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png | ||
:target: https://runbot.odoo-community.org/runbot/119/12.0 | ||
:alt: Try me on Runbot | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
This modules provides xml exports the Belgium VAT declaration according | ||
to the official models. | ||
|
||
The xml domain definitions (xsd files) can be found on | ||
`the administration website <https://finances.belgium.be/fr/E-services/Intervat/documentation-technique>`_. | ||
|
||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Installation | ||
============ | ||
|
||
The normal Odoo module installation procedure applies. | ||
|
||
Usage | ||
===== | ||
|
||
To use this module, you need to go to | ||
Accounting > Reporting > MIS Reports and use the buttons | ||
available on the previously configured reports such as preview, | ||
export, add to dashboard. | ||
|
||
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 smashing it by providing a detailed and welcomed | ||
`feedback <https://github.com/OCA/l10n-belgium/issues/new?body=module:%20l10n_be_mis_reports_xml%0Aversion:%2012.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 | ||
~~~~~~~ | ||
|
||
* Coop IT Easy SC | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* Robin Keunen <[email protected]> | ||
* Virgine Dewulf <[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. | ||
|
||
This module is part of the `OCA/l10n-belgium <https://github.com/OCA/l10n-belgium/tree/12.0/l10n_be_mis_reports_xml>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from . import models | ||
from . import wizards |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Copyright 2021 Coop IT Easy SC | ||
# Robin Keunen <[email protected]> | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). | ||
{ | ||
"name": "Belgium MIS Builder - XML exports", | ||
"summary": """ | ||
Exports MIS Builder templates VAT Declaration as XML | ||
to load on the administration websites.""", | ||
"author": "Coop IT Easy SC, Odoo Community Association (OCA)", | ||
"website": "https://github.com/OCA/l10n-belgium", | ||
"category": "Reporting", | ||
"version": "16.0.1.0.0", | ||
"license": "AGPL-3", | ||
"depends": [ | ||
"l10n_be_mis_reports", | ||
"report_xml", | ||
], | ||
"data": [ | ||
"security/ir.model.access.csv", | ||
"data/data.xml", | ||
"reports/be_vat_declaration.xml", | ||
"views/mis_report_instance.xml", | ||
"wizards/be_vat_declaration_wizard.xml", | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- | ||
Copyright 2021 Coop IT Easy SC | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
--> | ||
<odoo> | ||
<record id="be_vat_declaration_declarant_sequence" model="ir.sequence"> | ||
<field name="name">BE VAT Declaration Declarant Sequence</field> | ||
<field name="code">be.vat.declaration.declarant</field> | ||
<field name="prefix">%(year)s%(month)s%(day)s</field> | ||
<field eval="1" name="number_next" /> | ||
<field eval="1" name="number_increment" /> | ||
<field eval="True" name="use_date_range" /> | ||
<field eval="False" name="company_id" /> | ||
<field name="padding">6</field> | ||
</record> | ||
</odoo> |
161 changes: 161 additions & 0 deletions
161
l10n_be_mis_reports_xml/i18n/l10n_be_mis_reports_xml.pot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,161 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * l10n_be_mis_reports_xml | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 12.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_mis_reports_xml | ||
#: model:ir.model.fields,field_description:l10n_be_mis_reports_xml.field_mis_report_instance___is_be_vat_declaration | ||
msgid " Is Be Vat Declaration" | ||
msgstr "" | ||
|
||
#. module: l10n_be_mis_reports_xml | ||
#: model:ir.model.fields,field_description:l10n_be_mis_reports_xml.field_be_vat_declaration_wizard__ask_payment | ||
msgid "Ask payment form" | ||
msgstr "" | ||
|
||
#. module: l10n_be_mis_reports_xml | ||
#: model:ir.model.fields,field_description:l10n_be_mis_reports_xml.field_be_vat_declaration_wizard__ask_restitution | ||
msgid "Ask restitution" | ||
msgstr "" | ||
|
||
#. module: l10n_be_mis_reports_xml | ||
#: model_terms:ir.ui.view,arch_db:l10n_be_mis_reports_xml.be_vat_declaration_wizard_view | ||
msgid "BE VAT Declaration" | ||
msgstr "" | ||
|
||
#. module: l10n_be_mis_reports_xml | ||
#: model_terms:ir.ui.view,arch_db:l10n_be_mis_reports_xml.be_vat_declaration_wizard_view | ||
msgid "Cancel" | ||
msgstr "" | ||
|
||
#. module: l10n_be_mis_reports_xml | ||
#: model:ir.model.fields,field_description:l10n_be_mis_reports_xml.field_be_vat_declaration_wizard__client_listing_nihil | ||
msgid "Client Listing Nihil" | ||
msgstr "" | ||
|
||
#. module: l10n_be_mis_reports_xml | ||
#: model:ir.model.fields,field_description:l10n_be_mis_reports_xml.field_be_vat_declaration_wizard__create_uid | ||
msgid "Created by" | ||
msgstr "" | ||
|
||
#. module: l10n_be_mis_reports_xml | ||
#: model:ir.model.fields,field_description:l10n_be_mis_reports_xml.field_be_vat_declaration_wizard__create_date | ||
msgid "Created on" | ||
msgstr "" | ||
|
||
#. module: l10n_be_mis_reports_xml | ||
#: model:ir.model.fields,field_description:l10n_be_mis_reports_xml.field_be_vat_declaration_wizard__declarant_phone | ||
msgid "Declarant Phone" | ||
msgstr "" | ||
|
||
#. module: l10n_be_mis_reports_xml | ||
#: model:ir.model.fields,field_description:l10n_be_mis_reports_xml.field_be_vat_declaration_wizard__declarant_vat | ||
msgid "Declarant Tax ID" | ||
msgstr "" | ||
|
||
#. module: l10n_be_mis_reports_xml | ||
#: model:ir.model.fields,field_description:l10n_be_mis_reports_xml.field_be_vat_declaration_wizard__display_name | ||
msgid "Display Name" | ||
msgstr "" | ||
|
||
#. module: l10n_be_mis_reports_xml | ||
#: model_terms:ir.ui.view,arch_db:l10n_be_mis_reports_xml.be_vat_declaration_wizard_view | ||
msgid "Download XML" | ||
msgstr "" | ||
|
||
#. module: l10n_be_mis_reports_xml | ||
#: model_terms:ir.ui.view,arch_db:l10n_be_mis_reports_xml.mis_report_instance_view_form | ||
#: model_terms:ir.ui.view,arch_db:l10n_be_mis_reports_xml.mis_report_instance_view_tree | ||
msgid "Export XML" | ||
msgstr "" | ||
|
||
#. module: l10n_be_mis_reports_xml | ||
#: model:ir.model.fields,field_description:l10n_be_mis_reports_xml.field_be_vat_declaration_wizard__grid_91 | ||
msgid "Grid 91" | ||
msgstr "" | ||
|
||
#. module: l10n_be_mis_reports_xml | ||
#: model:ir.model.fields,field_description:l10n_be_mis_reports_xml.field_be_vat_declaration_wizard__id | ||
msgid "ID" | ||
msgstr "" | ||
|
||
#. module: l10n_be_mis_reports_xml | ||
#: model:ir.model.fields,field_description:l10n_be_mis_reports_xml.field_be_vat_declaration_wizard____last_update | ||
msgid "Last Modified on" | ||
msgstr "" | ||
|
||
#. module: l10n_be_mis_reports_xml | ||
#: model:ir.model.fields,field_description:l10n_be_mis_reports_xml.field_be_vat_declaration_wizard__write_uid | ||
msgid "Last Updated by" | ||
msgstr "" | ||
|
||
#. module: l10n_be_mis_reports_xml | ||
#: model:ir.model.fields,field_description:l10n_be_mis_reports_xml.field_be_vat_declaration_wizard__write_date | ||
msgid "Last Updated on" | ||
msgstr "" | ||
|
||
#. module: l10n_be_mis_reports_xml | ||
#: model:ir.model,name:l10n_be_mis_reports_xml.model_mis_report_instance | ||
msgid "MIS Report Instance" | ||
msgstr "" | ||
|
||
#. module: l10n_be_mis_reports_xml | ||
#: model:ir.model.fields,field_description:l10n_be_mis_reports_xml.field_be_vat_declaration_wizard__mr_instance_id | ||
msgid "Mis Report Instance" | ||
msgstr "" | ||
|
||
#. module: l10n_be_mis_reports_xml | ||
#: selection:be.vat.declaration.wizard,period:0 | ||
msgid "Month" | ||
msgstr "" | ||
|
||
#. module: l10n_be_mis_reports_xml | ||
#: model:ir.model.fields,help:l10n_be_mis_reports_xml.field_be_vat_declaration_wizard__period | ||
msgid "Month or Quarter value is compute from the report start date." | ||
msgstr "" | ||
|
||
#. module: l10n_be_mis_reports_xml | ||
#: model:ir.model.fields,help:l10n_be_mis_reports_xml.field_be_vat_declaration_wizard__grid_91 | ||
msgid "Only applies to december monthly declaration: Amount declared for grid 91: VAT due from due for the period from the 1st to the 20th of december" | ||
msgstr "" | ||
|
||
#. module: l10n_be_mis_reports_xml | ||
#: model:ir.model.fields,help:l10n_be_mis_reports_xml.field_be_vat_declaration_wizard__client_listing_nihil | ||
msgid "Only applies to the last civil declaration or the declaration linked to the cessaction of activity: no customer to list in the customer listing" | ||
msgstr "" | ||
|
||
#. module: l10n_be_mis_reports_xml | ||
#: model:ir.model.fields,field_description:l10n_be_mis_reports_xml.field_be_vat_declaration_wizard__period | ||
msgid "Period" | ||
msgstr "" | ||
|
||
#. module: l10n_be_mis_reports_xml | ||
#: model:ir.model.fields,field_description:l10n_be_mis_reports_xml.field_be_vat_declaration_wizard__period_value | ||
msgid "Period Value" | ||
msgstr "" | ||
|
||
#. module: l10n_be_mis_reports_xml | ||
#: model:ir.actions.report,name:l10n_be_mis_reports_xml.l10n_be_vat_declaration_xml_report | ||
msgid "Periodical VAT Declaration - XML" | ||
msgstr "" | ||
|
||
#. module: l10n_be_mis_reports_xml | ||
#: selection:be.vat.declaration.wizard,period:0 | ||
msgid "Quarter" | ||
msgstr "" | ||
|
||
#. module: l10n_be_mis_reports_xml | ||
#: model:ir.model,name:l10n_be_mis_reports_xml.model_be_vat_declaration_wizard | ||
msgid "Wizard to get values needed in xml vat declaration" | ||
msgstr "" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import mis_report_instance |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Copyright 2021 Coop IT Easy SC | ||
# Robin Keunen <[email protected]> | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). | ||
|
||
|
||
from odoo import fields, models | ||
|
||
|
||
class MisReportInstance(models.Model): | ||
_inherit = "mis.report.instance" | ||
|
||
_is_be_vat_declaration = fields.Boolean(compute="_compute_is_be_vat_declaration") | ||
|
||
def _compute_is_be_vat_declaration(self): | ||
mr_template = self.env.ref("l10n_be_mis_reports.mis_report_vat") | ||
for instance in self: | ||
instance._is_be_vat_declaration = instance.report_id == mr_template | ||
|
||
def export_xml(self): | ||
self.ensure_one() | ||
return { | ||
"type": "ir.actions.act_window", | ||
"view_type": "form", | ||
"view_mode": "form", | ||
"res_model": "be.vat.declaration.wizard", | ||
"target": "new", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
* `Coop IT Easy SC <https://coopiteasy.be>`_: | ||
|
||
* Robin Keunen | ||
* Virgine Dewulf | ||
* hugues de keyzer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
This module allows to export Belgian VAT declaration as an XML file that | ||
follows the official definition and can be submitted to the administration's | ||
online services. | ||
|
||
The XML domain definitions (XSD files) can be found on | ||
`the administration website <https://finances.belgium.be/fr/E-services/Intervat/documentation-technique>`_. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
To use this module, you need to go to | ||
Accounting > Reporting > MIS Reports and use the buttons | ||
available on the previously configured reports such as preview, | ||
export, add to dashboard. |
Oops, something went wrong.