5.0: compatibility to Tryton 5.0
This commit is contained in:
parent
6b33fdfd2f
commit
da12aac254
8 changed files with 15 additions and 41 deletions
2
.env
2
.env
|
@ -1 +1 @@
|
|||
PYTHONPATH=~/Projekte/tr70/lib/python3.10/site-packages
|
||||
PYTHONPATH=~/Projekte/tr50/lib/python3.10/site-packages
|
27
README.rst
27
README.rst
|
@ -9,32 +9,11 @@ pip install mds-account-invoice-xrechnung
|
|||
|
||||
Requires
|
||||
========
|
||||
- Tryton 6.0
|
||||
- Tryton 5.0
|
||||
|
||||
Changes
|
||||
=======
|
||||
|
||||
*6.0.6 - 11.12.2024*
|
||||
*5.0.6 - 11.12.2024*
|
||||
|
||||
- re-create invoice-report if not pdf and zugferd-export
|
||||
|
||||
*6.0.5 - 10.12.2024*
|
||||
|
||||
- update tests for iban in xml-export
|
||||
- add: export formats: factur-x, ZUGFeRD, XRechnung 2.3 + 3.0
|
||||
|
||||
*6.0.3 - 30.06.2023*
|
||||
|
||||
- add: credit-note
|
||||
|
||||
*6.0.2 - 20.10.2022*
|
||||
|
||||
- add: msg if invoice is not posted
|
||||
|
||||
*6.0.1 - 20.10.2022*
|
||||
|
||||
- works
|
||||
|
||||
*6.0.0 - 18.10.2022*
|
||||
|
||||
- init
|
||||
- compatiblitiy to Tryton 5.0
|
||||
|
|
|
@ -18,16 +18,10 @@ from .xml_data import xml_from_pdf
|
|||
def set_invoice_sequences(fiscalyear):
|
||||
pool = Pool()
|
||||
Sequence = pool.get('ir.sequence.strict')
|
||||
SequenceType = pool.get('ir.sequence.type')
|
||||
InvoiceSequence = pool.get('account.fiscalyear.invoice_sequence')
|
||||
ModelData = pool.get('ir.model.data')
|
||||
|
||||
sequence = Sequence(
|
||||
name=fiscalyear.name,
|
||||
sequence_type=SequenceType(ModelData.get_id(
|
||||
'account_invoice', 'sequence_type_account_invoice')),
|
||||
company=fiscalyear.company,
|
||||
)
|
||||
sequence = Sequence(name=fiscalyear.name, code='account.invoice')
|
||||
sequence.company = fiscalyear.company
|
||||
sequence.save()
|
||||
fiscalyear.invoice_sequences = []
|
||||
invoice_sequence = InvoiceSequence()
|
||||
|
@ -132,7 +126,7 @@ class InvoiceTestCase(ModuleTestCase):
|
|||
'addresses': [('create', [{
|
||||
'invoice': True,
|
||||
'street': 'Applicant Street 1',
|
||||
'postal_code': '12345',
|
||||
'zip': '12345',
|
||||
'city': 'Usertown',
|
||||
'country': country_de.id,
|
||||
}])],
|
||||
|
@ -199,7 +193,7 @@ class InvoiceTestCase(ModuleTestCase):
|
|||
self.assertEqual(
|
||||
list(result['view']['defaults'].keys()), [
|
||||
'as_zip', 'edocument', 'invoice', 'state',
|
||||
'invoice.'])
|
||||
'invoice.rec_name'])
|
||||
|
||||
data = {}
|
||||
for x in result['view']['defaults'].keys():
|
||||
|
@ -225,7 +219,6 @@ class InvoiceTestCase(ModuleTestCase):
|
|||
action['report_name'],
|
||||
'account_invoice_xrechnung.export')
|
||||
self.assertEqual(action['type'], 'ir.action.report')
|
||||
self.assertEqual(action['records'], 'selected')
|
||||
|
||||
# 2nd step, wizard told us which report we must execute
|
||||
ReportExport = pool.get(
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
[tryton]
|
||||
version=6.0.6
|
||||
version=5.0.6
|
||||
depends:
|
||||
account_invoice
|
||||
bank
|
||||
edocument_xrechnung
|
||||
tryton6_backport
|
||||
xml:
|
||||
message.xml
|
||||
configuration.xml
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
edocument_xrechnung;6.0.9;6.0.999;mds
|
||||
edocument_xrechnung;5.0.9;5.0.999;mds
|
||||
tryton6_backport;5.0.3;5.0.999:mds
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
full copyright notices and license terms. -->
|
||||
<data>
|
||||
|
||||
<xpath expr="/form/separator[@id='move']" position="after">
|
||||
<xpath expr="/form/separator[@id='invoice']" position="before">
|
||||
|
||||
<separator id="xrechnung" colspan="4" string="ZUGFeRD - e-Invoice"/>
|
||||
<label name="xrechn_zugferd_report"/>
|
||||
|
|
|
@ -7,8 +7,8 @@ from trytond.model import ModelView, fields
|
|||
from trytond.wizard import Wizard, StateView, StateReport, Button
|
||||
from trytond.pool import Pool
|
||||
from trytond.exceptions import UserError
|
||||
from trytond.i18n import gettext
|
||||
from trytond.transaction import Transaction
|
||||
from trytond.modules.tryton6_backport import gettext
|
||||
|
||||
|
||||
sel_edocument = [
|
||||
|
|
|
@ -10,7 +10,7 @@ from slugify import slugify
|
|||
from trytond.report import Report
|
||||
from trytond.pool import Pool
|
||||
from trytond.exceptions import UserError
|
||||
from trytond.i18n import gettext
|
||||
from trytond.modules.tryton6_backport import gettext
|
||||
from .wizard_runreport import edoc_versions
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue