Compare commits

..

40 commits

Author SHA1 Message Date
Frederik Jaeckel
0607d4c079 Version 6.8.13 2025-01-28 13:00:50 +01:00
Frederik Jaeckel
7f092befca Merge branch 'main' into 6.8 2025-01-28 12:55:05 +01:00
Frederik Jaeckel
135ad4a9be Version 6.8.12 2025-01-09 12:09:14 +01:00
Frederik Jaeckel
d327b999cf Merge branch 'main' into 6.8 2025-01-09 12:07:30 +01:00
Frederik Jaeckel
e0eec130e5 Version 6.8.11 2024-12-19 11:57:59 +01:00
Frederik Jaeckel
e97cd71d11 add docs 2024-12-19 11:55:01 +01:00
Mathias Behrle
bbe56c578d Improve the help text of xrechnung_routeid. 2024-12-19 11:54:57 +01:00
Mathias Behrle
454087226e Lookup parent taxes for unece tax codes.
In the same way as for categories the unece tax codes must be searched
on parents.
2024-12-19 11:54:53 +01:00
Mathias Behrle
188074e025 Correct a translation. 2024-12-19 11:54:43 +01:00
Frederik Jaeckel
0af2c94942 Version 6.8.10 2024-12-18 12:04:34 +01:00
Frederik Jaeckel
78cb4dfbf2 add folder 'view' to setup.py 2024-12-18 11:55:43 +01:00
Mathias Behrle
a01aa12cc0 Remove arguments in super() calls.
They are no more needed in Python3 and usually result in unexpected
behavior when wrongly used (like e.g. the one introduced in
764cacc091 and solved meanwhile by
refactorization).
2024-12-18 11:55:32 +01:00
Frederik Jaeckel
93a60873f6 Version 6.8.9 2024-12-11 17:09:45 +01:00
Frederik Jaeckel
7dd47e6b2a fix name of party in error message 2024-12-11 17:08:38 +01:00
Frederik Jaeckel
679d4b0b67 Version 6.8.7 2024-12-10 14:16:43 +01:00
Frederik Jaeckel
aa5f3e6814 fix code 2024-12-10 14:09:49 +01:00
Frederik Jaeckel
6f6de9ffb4 add bank account number to xml-export 2024-12-10 14:09:45 +01:00
Frederik Jaeckel
32ef5159d2 fix typo 2024-12-10 14:09:40 +01:00
Frederik Jaeckel
5d0032880c configuration: add setting for used bank nuumbers 2024-12-10 14:09:35 +01:00
Frederik Jaeckel
0165d56115 bank accont number: add field 'company_owned' 2024-12-10 14:09:31 +01:00
Frederik Jaeckel
9bff1f142b doks 2024-12-10 14:09:26 +01:00
Frederik Jaeckel
b3e6133dac check for valid address data 2024-12-10 14:09:21 +01:00
Frederik Jaeckel
bdd0c36483 facturx: check unece codes at tax 2024-12-10 14:09:15 +01:00
Frederik Jaeckel
70f079a0dc update setup.py 2024-12-10 14:09:08 +01:00
Frederik Jaeckel
bdc98f25fb export: add factur-x 1.07.2 2024-12-10 14:09:03 +01:00
Frederik Jaeckel
fc29a63969 add xsd for factur-x 2024-12-10 14:08:57 +01:00
Frederik Jaeckel
e3335655c9 allow route-id to be optional 2024-12-10 14:08:42 +01:00
Frederik Jaeckel
39da264fbe update docs 2024-12-10 14:07:49 +01:00
Frederik Jaeckel
5b72056598 export: add xrechnung 2.3 + 3.0 + tests against xsd 2024-12-10 14:07:44 +01:00
Frederik Jaeckel
82c70c68d5 add xsd UBL-2.1 2024-12-10 14:07:37 +01:00
Frederik Jaeckel
52d9b14da8 add docs 2024-12-10 14:07:27 +01:00
Frederik Jaeckel
45fae1ed1c formatting 2024-12-10 14:07:22 +01:00
Frederik Jaeckel
b1364cf7a2 file info 2024-12-10 14:07:09 +01:00
Frederik Jaeckel
1d99114b2e update gitignore 2024-12-10 14:06:54 +01:00
Frederik Jaeckel
bd04215c76 update gitignore 2024-12-10 14:06:49 +01:00
Mathias Behrle
1acd251ed9 Lookup parent taxes for unece tax codes.
Child taxes do not respect the setting of the parent 'Override
tmeplate', thus can not be configured for unece codes. It is anyway
better to allow the code definition on the parent tax.
2024-12-10 14:06:35 +01:00
Frederik Jaeckel
580f74a84b remove code from tests 2024-12-10 14:05:34 +01:00
Frederik Jaeckel
ebd925f5e8 add license, fix fileinfo 2024-12-10 14:04:06 +01:00
Frederik Jaeckel
7c2e56072a Etikett ver 6.8.2 zum Änderungssatz e242c1388074 hinzugefügt 2023-06-30 15:44:01 +02:00
Frederik Jaeckel
69b7678f02 Version 6.8.2 2023-06-30 15:43:49 +02:00
5 changed files with 37 additions and 31 deletions

View file

@ -1,5 +1,7 @@
Copyright (C) 2021-2025 martin-data services. Copyright (C) 2015-2023 Cédric Krier.
Copyright (C) 2024-2025 Mathias Behrle Copyright (C) 2015-2023 B2CK SPRL.
Copyright (C) 2021-2024 martin-data services.
Copyright (C) 2024 Mathias Behrle
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by

View file

@ -9,37 +9,39 @@ pip install mds-edocument-xrechnung
Requires Requires
======== ========
- Tryton 7.0 - Tryton 6.8
Changes Changes
======= =======
*7.0.10 - 12.12.2024* *6.8.13 - 28.01.2025*
- fix: rounding of unit_price at invoice-line
*6.8.12 - 09.01.2025*
- handle tax childs (Jan Grasnick <jan@mittelwind.de>)
*6.8.11 - 19.12.2024*
- Lookup parent taxes for unece tax codes.
- Improve the help text of xrechnung_routeid. Correct a translation.
(Mathias Behrle <mathiasb@m9s.biz>)
*6.8.10 - 18.12.2024*
- fix missing views - fix missing views
- Remove arguments in super() calls. (Mathias Behrle) - Remove arguments in super() calls. (Mathias Behrle)
*7.0.9 - 11.12.2024* *6.8.9 - 11.12.2024*
- fix name of party in exceptions - fix name of party in exceptions
*7.0.7 - 10.12.2024* *6.8.7 - 10.12.2024*
- add iban to xml-export - add: export of factur-x 1.07.2, XRechnung 2.3 + 3.0
*7.0.6 - 09.12.2024* *6.8.2 - 30.06.2023*
- add: check for valid data to generate xml - add credit-note
- compatibility to Tryton 6.8
*7.0.5 - 05.12.2024*
- add: export Factur-X 1.07.2
*7.0.4 - 05.12.2024*
- add: export XRechnung 2.3 + 3.0
- updt: xrechnung-route-id optional
*7.0.3 - 22.12.2023*
- compatibility to Tryton 7.0

View file

@ -4,13 +4,13 @@
# full copyright notices and license terms. # full copyright notices and license terms.
from decimal import Decimal from decimal import Decimal, ROUND_HALF_EVEN
import html import html
from trytond.exceptions import UserError from trytond.exceptions import UserError
from trytond.i18n import gettext from trytond.i18n import gettext
from trytond.tools import cached_property from trytond.tools import cached_property
from trytond.pool import Pool from trytond.pool import Pool
from trytond.modules.product import round_price from trytond.modules.product import price_digits
class EdocumentMixin(object): class EdocumentMixin(object):
@ -193,8 +193,10 @@ class EdocumentMixin(object):
Returns: Returns:
Decimal: rounded value Decimal: rounded value
""" """
if value is not None: if isinstance(value, Decimal):
return round_price(value) return value.quantize(
Decimal(str(1/10 ** price_digits[1])),
ROUND_HALF_EVEN)
return value return value
def quote_text(self, text): def quote_text(self, text):

View file

@ -13,9 +13,11 @@ here = path.abspath(path.dirname(__file__))
MODULE = 'edocument_xrechnung' MODULE = 'edocument_xrechnung'
PREFIX = 'mds' PREFIX = 'mds'
# Get the long description from the README file
with open(path.join(here, 'README.rst'), encoding='utf-8') as f: with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read() long_description = f.read()
# tryton.cfg einlesen
config = ConfigParser() config = ConfigParser()
config.readfp(open('tryton.cfg')) config.readfp(open('tryton.cfg'))
info = dict(config.items('tryton')) info = dict(config.items('tryton'))
@ -34,8 +36,8 @@ with open(path.join(here, 'versiondep.txt'), encoding='utf-8') as f:
modversion[l2[0]] = {'min': l2[1], 'max': l2[2], 'prefix': l2[3]} modversion[l2[0]] = {'min': l2[1], 'max': l2[2], 'prefix': l2[3]}
# tryton-version # tryton-version
major_version = 7 major_version = 6
minor_version = 0 minor_version = 8
requires = [] requires = []
for dep in info.get('depends', []): for dep in info.get('depends', []):
@ -85,8 +87,6 @@ setup(
'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
], ],
keywords='tryton xrechnung edcoument', keywords='tryton xrechnung edcoument',

View file

@ -1,5 +1,5 @@
[tryton] [tryton]
version=7.0.10 version=6.8.13
depends: depends:
edocument_uncefact edocument_uncefact
party party