diff --git a/.hgignore b/.hgignore index 201e288..796d378 100644 --- a/.hgignore +++ b/.hgignore @@ -3,3 +3,4 @@ build/* dist/* mds_account_invoice_xrechnung.egg-info/* __pycache__/* +locale/convert_de2en.py diff --git a/__init__.py b/__init__.py index 0c9d2d3..8676653 100644 --- a/__init__.py +++ b/__init__.py @@ -6,6 +6,7 @@ from trytond.pool import Pool from .wizard_runreport import RunXRechnungReport, RunXRechnungReportStart from .invoice import InvoiceLine +from .xreport import XReport def register(): Pool.register( @@ -15,3 +16,6 @@ def register(): Pool.register( RunXRechnungReport, module='account_invoice_xrechnung', type_='wizard') + Pool.register( + XReport, + module='account_invoice_xrechnung', type_='report') diff --git a/locale/de.po b/locale/de.po new file mode 100644 index 0000000..e877610 --- /dev/null +++ b/locale/de.po @@ -0,0 +1,59 @@ +# +msgid "" +msgstr "Content-Type: text/plain; charset=utf-8\n" + + +############# +# ir.action # +############# +msgctxt "model:ir.action,name:act_wizard_report" +msgid "eDocument Export" +msgstr "eDocument Export" + +msgctxt "model:ir.action,name:report_edocument" +msgid "eDocument Export" +msgstr "eDocument Export" + + +########################################## +# account_invoice_xrechnung.runrep.start # +########################################## +msgctxt "model:account_invoice_xrechnung.runrep.start,name:" +msgid "eDocument Export" +msgstr "eDocument Export" + +msgctxt "field:account_invoice_xrechnung.runrep.start,invoice:" +msgid "Invoice" +msgstr "Rechnung" + +msgctxt "field:account_invoice_xrechnung.runrep.start,edocument:" +msgid "Type" +msgstr "Typ" + +msgctxt "field:account_invoice_xrechnung.runrep.start,as_zip:" +msgid "ZIP-File" +msgstr "ZIP-Datei" + + +#################################### +# account_invoice_xrechnung.runrep # +#################################### +msgctxt "model:account_invoice_xrechnung.runrep,name:" +msgid "eDocument Export" +msgstr "eDocument Export" + +msgctxt "wizard_button:account_invoice_xrechnung.runrep,start,end:" +msgid "Cancel" +msgstr "Abbruch" + +msgctxt "wizard_button:account_invoice_xrechnung.runrep,start,export:" +msgid "Export" +msgstr "Export" + + +#################################### +# account_invoice_xrechnung.export # +#################################### +msgctxt "model:account_invoice_xrechnung.export,name:" +msgid "eDocument Export" +msgstr "eDocument Export" diff --git a/locale/en.po b/locale/en.po new file mode 100644 index 0000000..3e16682 --- /dev/null +++ b/locale/en.po @@ -0,0 +1,36 @@ +# +msgid "" +msgstr "Content-Type: text/plain; charset=utf-8\n" + +msgctxt "model:ir.action,name:act_wizard_report" +msgid "eDocument Export" +msgstr "eDocument Export" + +msgctxt "model:ir.action,name:report_edocument" +msgid "eDocument Export" +msgstr "eDocument Export" + +msgctxt "model:account_invoice_xrechnung.runrep.start,name:" +msgid "eDocument Export" +msgstr "eDocument Export" + +msgctxt "field:account_invoice_xrechnung.runrep.start,invoice:" +msgid "Invoice" +msgstr "Invoice" + +msgctxt "field:account_invoice_xrechnung.runrep.start,edocument:" +msgid "Type" +msgstr "Type" + +msgctxt "model:account_invoice_xrechnung.runrep,name:" +msgid "eDocument Export" +msgstr "eDocument Export" + +msgctxt "wizard_button:account_invoice_xrechnung.runrep,start,end:" +msgid "Cancel" +msgstr "Cancel" + +msgctxt "wizard_button:account_invoice_xrechnung.runrep,start,export:" +msgid "Export" +msgstr "Export" + diff --git a/report/export.fodt b/report/export.fodt new file mode 100644 index 0000000..f9df621 --- /dev/null +++ b/report/export.fodt @@ -0,0 +1,251 @@ + + + + 2017-10-20T23:40:51.940000000LibreOffice/6.0.7.3$Linux_X86_64 LibreOffice_project/00m0$Build-30P0D + + + 0 + 0 + 25058 + 20851 + true + false + + + view2 + 6720 + 2501 + 0 + 0 + 25056 + 20849 + 0 + 1 + false + 100 + false + false + + + + + false + + false + false + false + false + false + true + false + true + true + false + + true + + false + false + true + false + true + false + 3071 + false + false + true + false + false + true + true + true + true + true + true + false + false + 1 + false + false + false + + false + false + + false + false + false + + false + 0 + false + + 0 + true + false + true + false + false + false + true + false + false + false + true + 20402 + true + false + false + false + high-resolution + true + true + true + false + false + false + false + false + false + false + false + false + true + false + 0 + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + file is not used :-) + + + \ No newline at end of file diff --git a/setup.py b/setup.py index 046579a..d50543f 100644 --- a/setup.py +++ b/setup.py @@ -42,7 +42,7 @@ with open(path.join(here, 'versiondep.txt'), encoding='utf-8') as f: major_version = 6 minor_version = 0 -requires = [] +requires = ['python-slugify'] for dep in info.get('depends', []): if not re.match(r'(ir|res|webdav)(\W|$)', dep): if dep in modversion.keys(): @@ -89,7 +89,7 @@ setup(name='%s_%s' % (PREFIX, MODULE), 'Programming Language :: Python :: 3.8', ], - keywords='tryton account invoice xrechnung', + keywords='tryton account invoice xrechnung edocument', package_dir={'trytond.modules.%s' % MODULE: '.'}, packages=[ 'trytond.modules.%s' % MODULE, diff --git a/tryton.cfg b/tryton.cfg index f77a33b..ffc3e07 100644 --- a/tryton.cfg +++ b/tryton.cfg @@ -6,3 +6,4 @@ depends: edocument_xrechnung xml: wizard_runreport.xml + xreport.xml diff --git a/view/wizard_form.xml b/view/wizard_form.xml index d301445..10295d1 100644 --- a/view/wizard_form.xml +++ b/view/wizard_form.xml @@ -8,4 +8,7 @@ full copyright notices and license terms. -->