Compare commits
2 commits
ver-6.8.13
...
main
Author | SHA1 | Date | |
---|---|---|---|
![]() |
a5bf930e55 | ||
![]() |
ea5a83d7c1 |
5 changed files with 31 additions and 37 deletions
|
@ -1,7 +1,5 @@
|
|||
Copyright (C) 2015-2023 Cédric Krier.
|
||||
Copyright (C) 2015-2023 B2CK SPRL.
|
||||
Copyright (C) 2021-2024 martin-data services.
|
||||
Copyright (C) 2024 Mathias Behrle
|
||||
Copyright (C) 2021-2025 martin-data services.
|
||||
Copyright (C) 2024-2025 Mathias Behrle
|
||||
|
||||
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
|
||||
|
|
42
README.rst
42
README.rst
|
@ -9,39 +9,37 @@ pip install mds-edocument-xrechnung
|
|||
|
||||
Requires
|
||||
========
|
||||
- Tryton 6.8
|
||||
- Tryton 7.0
|
||||
|
||||
Changes
|
||||
=======
|
||||
|
||||
*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*
|
||||
*7.0.10 - 12.12.2024*
|
||||
|
||||
- fix missing views
|
||||
- Remove arguments in super() calls. (Mathias Behrle)
|
||||
|
||||
*6.8.9 - 11.12.2024*
|
||||
*7.0.9 - 11.12.2024*
|
||||
|
||||
- fix name of party in exceptions
|
||||
|
||||
*6.8.7 - 10.12.2024*
|
||||
*7.0.7 - 10.12.2024*
|
||||
|
||||
- add: export of factur-x 1.07.2, XRechnung 2.3 + 3.0
|
||||
- add iban to xml-export
|
||||
|
||||
*6.8.2 - 30.06.2023*
|
||||
*7.0.6 - 09.12.2024*
|
||||
|
||||
- add credit-note
|
||||
- compatibility to Tryton 6.8
|
||||
- add: check for valid data to generate xml
|
||||
|
||||
*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
|
||||
|
|
10
mixin.py
10
mixin.py
|
@ -4,13 +4,13 @@
|
|||
# full copyright notices and license terms.
|
||||
|
||||
|
||||
from decimal import Decimal, ROUND_HALF_EVEN
|
||||
from decimal import Decimal
|
||||
import html
|
||||
from trytond.exceptions import UserError
|
||||
from trytond.i18n import gettext
|
||||
from trytond.tools import cached_property
|
||||
from trytond.pool import Pool
|
||||
from trytond.modules.product import price_digits
|
||||
from trytond.modules.product import round_price
|
||||
|
||||
|
||||
class EdocumentMixin(object):
|
||||
|
@ -193,10 +193,8 @@ class EdocumentMixin(object):
|
|||
Returns:
|
||||
Decimal: rounded value
|
||||
"""
|
||||
if isinstance(value, Decimal):
|
||||
return value.quantize(
|
||||
Decimal(str(1/10 ** price_digits[1])),
|
||||
ROUND_HALF_EVEN)
|
||||
if value is not None:
|
||||
return round_price(value)
|
||||
return value
|
||||
|
||||
def quote_text(self, text):
|
||||
|
|
8
setup.py
8
setup.py
|
@ -13,11 +13,9 @@ here = path.abspath(path.dirname(__file__))
|
|||
MODULE = 'edocument_xrechnung'
|
||||
PREFIX = 'mds'
|
||||
|
||||
# Get the long description from the README file
|
||||
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
|
||||
long_description = f.read()
|
||||
|
||||
# tryton.cfg einlesen
|
||||
config = ConfigParser()
|
||||
config.readfp(open('tryton.cfg'))
|
||||
info = dict(config.items('tryton'))
|
||||
|
@ -36,8 +34,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]}
|
||||
|
||||
# tryton-version
|
||||
major_version = 6
|
||||
minor_version = 8
|
||||
major_version = 7
|
||||
minor_version = 0
|
||||
|
||||
requires = []
|
||||
for dep in info.get('depends', []):
|
||||
|
@ -87,6 +85,8 @@ setup(
|
|||
'Programming Language :: Python :: 3.8',
|
||||
'Programming Language :: Python :: 3.9',
|
||||
'Programming Language :: Python :: 3.10',
|
||||
'Programming Language :: Python :: 3.11',
|
||||
'Programming Language :: Python :: 3.12',
|
||||
],
|
||||
|
||||
keywords='tryton xrechnung edcoument',
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[tryton]
|
||||
version=6.8.13
|
||||
version=7.0.10
|
||||
depends:
|
||||
edocument_uncefact
|
||||
party
|
||||
|
|
Loading…
Reference in a new issue