Skip to content

Commit c3d4c99

Browse files
committed
[IMP] datev_export_dtvf: pre-commit auto fixes
1 parent e80c17d commit c3d4c99

File tree

17 files changed

+156
-143
lines changed

17 files changed

+156
-143
lines changed

datev_export_dtvf/README.rst

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
.. image:: https://odoo-community.org/readme-banner-image
2-
:target: https://odoo-community.org/get-involved?utm_source=readme
3-
:alt: Odoo Community Association
4-
51
=====
62
DATEV
73
=====
@@ -17,17 +13,17 @@ DATEV
1713
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
1814
:target: https://odoo-community.org/page/development-status
1915
:alt: Beta
20-
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
2117
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
2218
:alt: License: AGPL-3
2319
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--germany-lightgray.png?logo=github
24-
:target: https://github.com/OCA/l10n-germany/tree/15.0/datev_export_dtvf
20+
:target: https://github.com/OCA/l10n-germany/tree/18.0/datev_export_dtvf
2521
:alt: OCA/l10n-germany
2622
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
27-
:target: https://translation.odoo-community.org/projects/l10n-germany-15-0/l10n-germany-15-0-datev_export_dtvf
23+
:target: https://translation.odoo-community.org/projects/l10n-germany-18-0/l10n-germany-18-0-datev_export_dtvf
2824
:alt: Translate me on Weblate
2925
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
30-
:target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-germany&target_branch=15.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-germany&target_branch=18.0
3127
:alt: Try me on Runboat
3228

3329
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -44,52 +40,60 @@ Configuration
4440

4541
To configure this module, you need to:
4642

47-
#. Go to your company
48-
#. Fill in the fields in the `DATEV` tab
49-
#. For accounts where you want to suppress automatic calculations (for ie taxes), set the according flag
43+
1. Go to your company
44+
2. Fill in the fields in the DATEV tab
45+
3. For accounts where you want to suppress automatic calculations (for
46+
ie taxes), set the according flag
5047

51-
The module also contains an inactive cronjob and a mail template allowing you to send period DATEV export somewhere via email. It relies on finding exactly one date range for the previous month and one for the year of the previous month, otherwise you'll see an error message in your log when running the cronjob. Note that the data transmitted via email is not encrypted.
48+
The module also contains an inactive cronjob and a mail template
49+
allowing you to send period DATEV export somewhere via email. It relies
50+
on finding exactly one date range for the previous month and one for the
51+
year of the previous month, otherwise you'll see an error message in
52+
your log when running the cronjob. Note that the data transmitted via
53+
email is not encrypted.
5254

5355
Usage
5456
=====
5557

5658
To use this module, you need to:
5759

58-
#. Go to `Invoicing` / `Reporting` / `DATEV export`
59-
#. Create an export, choose a date range to use as fiscal year, and ranges to export
60-
#. Click ``Generate``
60+
1. Go to Invoicing / Reporting / DATEV export
61+
2. Create an export, choose a date range to use as fiscal year, and
62+
ranges to export
63+
3. Click ``Generate``
6164

6265
Known issues / Roadmap
6366
======================
6467

65-
* support missing formats
66-
* add empty fields
68+
- support missing formats
69+
- add empty fields
6770

6871
Bug Tracker
6972
===========
7073

7174
Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-germany/issues>`_.
7275
In case of trouble, please check there if your issue has already been reported.
7376
If you spotted it first, help us to smash it by providing a detailed and welcomed
74-
`feedback <https://github.com/OCA/l10n-germany/issues/new?body=module:%20datev_export_dtvf%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
77+
`feedback <https://github.com/OCA/l10n-germany/issues/new?body=module:%20datev_export_dtvf%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
7578

7679
Do not contact contributors directly about support or help with technical issues.
7780

7881
Credits
7982
=======
8083

8184
Authors
82-
~~~~~~~
85+
-------
8386

8487
* Hunki Enterprises BV
8588

8689
Contributors
87-
~~~~~~~~~~~~
90+
------------
8891

89-
* Holger Brunn <mail@hunki-enterprises.com> (https://hunki-enterprises.com)
92+
- Holger Brunn <mail@hunki-enterprises.com>
93+
(https://hunki-enterprises.com)
9094

9195
Maintainers
92-
~~~~~~~~~~~
96+
-----------
9397

9498
This module is maintained by the OCA.
9599

@@ -101,6 +105,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
101105
mission is to support the collaborative development of Odoo features and
102106
promote its widespread use.
103107

104-
This module is part of the `OCA/l10n-germany <https://github.com/OCA/l10n-germany/tree/15.0/datev_export_dtvf>`_ project on GitHub.
108+
This module is part of the `OCA/l10n-germany <https://github.com/OCA/l10n-germany/tree/18.0/datev_export_dtvf>`_ project on GitHub.
105109

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

datev_export_dtvf/data/mail_template.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
<h1>Dear recipient,</h1>
99
<p>
1010
please find attached the latest DATEV export from <t
11-
t-out="object.company_id.name"
12-
/>.
11+
t-out="object.company_id.name"
12+
/>.
1313
</p>
1414
</field>
1515
</record>

datev_export_dtvf/datev.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def __init__(self, name, length=None, quote=False, regex=".*"):
1616
self.regex = regex
1717

1818

19-
class DatevWriter(object):
19+
class DatevWriter:
2020
def __init__(
2121
self,
2222
data_type,
@@ -107,7 +107,9 @@ def __init__(
107107

108108
def writeheader(self):
109109
self.buffer.write(BOM_UTF8.decode("utf8"))
110-
for i, (field, value) in enumerate(zip(self.header_fields, self.header)):
110+
for i, (field, value) in enumerate(
111+
zip(self.header_fields, self.header, strict=False)
112+
):
111113
if i > 0:
112114
self.buffer.write(";")
113115
self.buffer.write(self._coerce_value(field, value))

datev_export_dtvf/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
To configure this module, you need to:
2+
3+
1. Go to your company
4+
2. Fill in the fields in the DATEV tab
5+
3. For accounts where you want to suppress automatic calculations (for
6+
ie taxes), set the according flag
7+
8+
The module also contains an inactive cronjob and a mail template
9+
allowing you to send period DATEV export somewhere via email. It relies
10+
on finding exactly one date range for the previous month and one for the
11+
year of the previous month, otherwise you'll see an error message in
12+
your log when running the cronjob. Note that the data transmitted via
13+
email is not encrypted.

datev_export_dtvf/readme/CONFIGURE.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- Holger Brunn \<<mail@hunki-enterprises.com>\>
2+
(<https://hunki-enterprises.com>)

datev_export_dtvf/readme/CONTRIBUTORS.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- support missing formats
2+
- add empty fields

0 commit comments

Comments
 (0)