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

[16.0][WIP] l10n_de_tax_statement: Migration to 16.0 #130

Closed
wants to merge 60 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
b3b24d5
module with german vat tax declaration report
tv-openbig Feb 25, 2019
a9b6894
removal of unnecessary lines
tv-openbig Feb 27, 2019
7fc74ac
removal of unnecessary lines
tv-openbig Feb 27, 2019
a68510b
mainly fixes to correct pylint and flake errors
tv-openbig Feb 27, 2019
bc2c575
further pylint flake fixes
tv-openbig Feb 27, 2019
4936821
fix of a missing state, removal of unnecessary test files, fix in con…
tv-openbig Mar 1, 2019
9e18489
Fix of a missing dependency, flake8, testing cases fix
tv-openbig Mar 8, 2019
536b6cc
fix of indention issue
tv-openbig Mar 8, 2019
aa7154c
further fixes and readme documents
tv-openbig Mar 13, 2019
13a078d
some changes in tests
tv-openbig Mar 13, 2019
0bccbcd
change of python formula
tv-openbig Mar 13, 2019
67a069d
View past invoices moves when country is not Germany
astirpe Mar 14, 2019
2cfc92a
Sort past invoices by date
astirpe Mar 14, 2019
b9f3c29
[UPD] README.rst
OCA-git-bot Mar 22, 2019
0db1743
[UPD] Update l10n_de_tax_statement.pot
oca-travis Mar 22, 2019
3e7020a
[12.0][MIG] l10n_de_tax_statement
astirpe Mar 25, 2019
89eac01
Add version
astirpe Aug 13, 2019
e956514
Fix
astirpe Aug 13, 2019
c12da74
adoption to UStVA Report 2019
tv-openbig Aug 13, 2019
e5cdfca
Configuration of tags
astirpe Aug 13, 2019
2aa5123
Fix tests
astirpe Aug 13, 2019
db8d92d
changes of tax mappings to tags for the year 2019
tv-openbig Aug 13, 2019
ee3a1a8
tags mapping is still required
tv-openbig Aug 13, 2019
b68d87d
Code review
astirpe Aug 14, 2019
2b9c79a
Fix total + coverage
astirpe Aug 14, 2019
0f9280d
[UPD] README.rst
OCA-git-bot Aug 17, 2019
afecc7d
[UPD] Update l10n_de_tax_statement.pot
oca-travis Aug 17, 2019
40632c4
[FIX] l10n_de_tax_statement: format of tax lines
astirpe Aug 20, 2019
1707fa5
tiny modification of display formats
tv-openbig Aug 21, 2019
3a2ca29
[UPD] Update l10n_de_tax_statement.pot
oca-travis Aug 21, 2019
12a43d7
[FIX] singleton
astirpe Sep 13, 2019
cb024ee
Pre-commit
astirpe Apr 17, 2020
9a856f0
[13.0][MIG] l10n_de_tax_statement
astirpe Apr 17, 2020
2a80ef9
Remove obsolete filter
astirpe Jan 25, 2021
fb7ca0f
Fix cache miss error
astirpe Feb 1, 2021
f1b3c04
[IMP] l10n_de_tax_statement: Isort, black, prettier.
dsolanki-initos Apr 12, 2021
2607e70
[MIG] l10n_de_tax_statement: Migration to 14.0
dsolanki-initos Nov 19, 2021
7f806c2
[MIG] l10n_de_tax_statement: Migration to 14.0
dsolanki-initos Nov 19, 2021
8a29a46
[MIG] l10n_de_tax_statement: Migration to 14.0
ortlam Jan 14, 2022
3c7b575
[MIG] l10n_de_tax_statement: Migration to 14.0
ortlam Jan 19, 2022
60edb35
[MIG] l10n_de_tax_statement: Migration to 14.0
ortlam Jan 20, 2022
7e490f8
Add 2021/2022 tax format
tv-openbig Jan 21, 2022
53501a4
[IMP] l10n_de_tax_statement : add chatter in form view
chandni300 Oct 19, 2021
2b162bd
Re-add removed check for open tax statements
ortlam Jan 28, 2022
43dc4a2
Fix permission problem with view base/tax line buttons
ortlam Feb 3, 2022
13a601c
Fix black
ortlam Feb 3, 2022
ae2f991
Fix tax statement line 40 mapping to tax codes 46 and 47
ortlam Feb 10, 2022
b4c756d
Fix tax statement line 57
ortlam Feb 10, 2022
3d37e1b
Add workarounds for tax tags 84 and 85 missing suffix
ortlam Feb 18, 2022
9d7723b
Fix bug in unit test
ortlam Mar 18, 2022
0343951
Add basic unit test for 2021 template
ortlam Mar 23, 2022
28adec0
Relying on the related fields make it hard to optimize the query with…
fkantelberg May 4, 2022
8395d5c
Add further unit tests to increase coverage
ortlam Dec 14, 2022
dbd69c4
Remove tax tag in test case to improve coverage
ortlam Dec 15, 2022
4368c7a
Add further tax tags to unit tests
ortlam Dec 19, 2022
96e7f5b
Improve unit tests to include refund values
ortlam Dec 19, 2022
708bd40
[UPD] Update l10n_de_tax_statement.pot
oca-travis Dec 20, 2022
a7a7d73
[UPD] README.rst
OCA-git-bot Dec 20, 2022
6b1de5a
[IMP] l10n_de_tax_statement: pre-commit stuff
dsolanki-initos Jul 18, 2023
336bf55
[WIP] l10n_de_tax_statement: Migration to 16.0
dsolanki-initos Jul 31, 2023
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
125 changes: 125 additions & 0 deletions l10n_de_tax_statement/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
====================
German VAT Statement
====================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! 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--germany-lightgray.png?logo=github
:target: https://github.com/OCA/l10n-germany/tree/14.0/l10n_de_tax_statement
:alt: OCA/l10n-germany
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/l10n-germany-14-0/l10n-germany-14-0-l10n_de_tax_statement
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/175/14.0
:alt: Try me on Runbot

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

This module provides the *German VAT Statement* (Umsatzsteuervoranmeldung).
You can use the *German VAT Statement* report to declare your taxes on www.elster.de.

**Table of contents**

.. contents::
:local:

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

This module makes use of the tax tags (eg.: 81, 86, 91, 89, 93 ...) as prescribed by the German tax laws and represented by the tax declaration form "Umsatzsteuervoranmeldung".

If the default Odoo German chart of accounts is installed (module l10n_de) you are able to select in the settings if you want to use the skr03 or skr04 chart variant.
By installing and configuring your favored german account chart the tax tags from the module l10n_de are automatically present in the database.

If a non-standard chart of accounts is installed, you have to manually create the tax tags and properly set them into the tax definition. If you create another german account chart (f.e. l10n_de_ikr) you can still depend on l10n_de module in order to benefit from the generic tax tags for germany. If you won't use l10n_de as a base module you have to configure at first your own tax tags. After that, go to go to menu: Invoicing -> Configuration -> Accounting -> German Tax Tags, and manually set the tags in the configuration form; click Apply to confirm (for more information about the installation and configuration of that module, check the README file).
The name of the tags must be formatted this way: "+81 base", "+81 tax", "-81 base", "-81 tax", "+41", "-41", etc...

The user must belong to the *Show Full Accounting Features* group, to be able to access the `Invoicing -> Configuration -> Accounting -> German Tax Tags` menu.

Usage
=====

To create a statement you need to:

#. Verify that you have enough permits. You need to belong to the *Show Full Accounting Features* group.
#. Go to the menu: `Invoicing -> Reporting > German Tax Statement`
#. Create a statement, providing a name and specifying start date and end date
#. Press the Update button to calculate the report: the report lines will be displayed in the tab `Statement`
#. Eventually you have to manually enter the tax base amounts of lines '20', '21', '22', '23', '24','26', '27', '28', '29', '30','32', '33', '34', '35', '36','38', '39', '40', '41', '42','48', '49', '50', '51', '52','64', '65', '67') if you want to change the values from float format to integer (in Edit mode, click on the amount of the line to be able to change the value).
#. Press the Post button to set the status of the statement to Posted; the statements set to this state cannot be modified

To add past undeclared invoices:

#. Open the tab `Past Undeclared Invoices`, available when the statement is in status Draft.
#. Set an initial date (field From Date) from which the past undeclared invoices will be displayed.
#. One by one, add the displayed undeclared invoices, by clicking on the `Add Invoice` button present in each line.
#. Press the Update button in order to recompute the statement lines.

Extra info about the workflow:

#. If you need to recalculate or modify or delete a statement already set to Posted status you need first to set it back to Draft status: press the button Reset to Draft
#. Instead, if you send the statement to the Tax Authority, you may want to avoid that the statement is set back to Draft: to avoid this, press the button Final. If you then confirm, it will be not possible to modify this Statement or reset it back to draft anymore.

Printing a PDF report:

#. If you need to print the report in PDF, open a statement form and click: `Print -> German Tax Statement`

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

* Add checks to avoid errors in the report, e.g. no VAT code, tax-code not matching fiscal position, etc..
* Re-formatting of tax base values from float format to integer. Currently in the official tax forms we need to enter integer format for some of the base tax values (f.e. instead of 250,52 € -> 251 €). The non writable tax calculation is based on the integer format. We propose to do that change manually in the www.elster.de tax declaration forms. It should be easy to adopt.
* Report in .xml format in order to import the vat statement on www.elster.de portal in order to avoid manual transmission of the values.

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

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

* Onestein

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

* Andrea Stirpe <[email protected]>
* Thorsten Vocks <[email protected]>
* Helly kapatel <[email protected]>
* Dhara Solanki <[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-germany <https://github.com/OCA/l10n-germany/tree/14.0/l10n_de_tax_statement>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions l10n_de_tax_statement/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

from . import models
28 changes: 28 additions & 0 deletions l10n_de_tax_statement/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright 2019-2020 Onestein (<https://www.onestein.eu>)
# Copyright 2019 BIG-Consulting GmbH(<http://www.openbig.org>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

{
"name": "German VAT Statement",
"version": "16.0.1.0.0",
"category": "Localization",
"license": "AGPL-3",
"author": "Onestein, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-germany",
"depends": ["account", "date_range", "l10n_de_skr03"],
"data": [
"security/ir.model.access.csv",
"security/tax_statement_security_rule.xml",
"data/paperformat.xml",
"views/l10n_de_tax_statement_view.xml",
"views/report_tax_statement.xml",
"views/res_config_settings.xml",
"report/report_tax_statement.xml",
],
"assets": {
"web.qunit_suite_tests": [
"/l10n_de_tax_statement/static/src/css/report.css",
],
},
"installable": True,
}
21 changes: 21 additions & 0 deletions l10n_de_tax_statement/data/paperformat.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2019 Onestein (<http://www.onestein.eu>)
Copyright 2019 BIG-Consulting GmbH (<http://www.openbig.org>)
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="paperformat_de_tax_statement" model="report.paperformat">
<field name="name">German Tax Statement qweb paperformat</field>
<field name="default" eval="True" />
<field name="format">A4</field>
<field name="page_height">0</field>
<field name="page_width">0</field>
<field name="orientation">Portrait</field>
<field name="margin_top">12</field>
<field name="margin_bottom">20</field>
<field name="margin_left">7</field>
<field name="margin_right">7</field>
<field name="header_line" eval="False" />
<field name="header_spacing">10</field>
<field name="dpi">110</field>
</record>
</odoo>
Loading
Loading