diff --git a/__init__.py b/__init__.py index f5712e6..8e0f27b 100644 --- a/__init__.py +++ b/__init__.py @@ -8,6 +8,7 @@ from .wizard_runreport import RunXRechnungReport, RunXRechnungReportStart from .invoice import InvoiceLine from .xreport import XReport from .configuration import ConfigurationXRechnungexport, Configuration +from .wizard_import import ImportXmlStart, ImportXml, ImportXmlShowcontent def register(): @@ -16,9 +17,12 @@ def register(): ConfigurationXRechnungexport, InvoiceLine, RunXRechnungReportStart, + ImportXmlStart, + ImportXmlShowcontent, module='account_invoice_xrechnung', type_='model') Pool.register( RunXRechnungReport, + ImportXml, module='account_invoice_xrechnung', type_='wizard') Pool.register( XReport, diff --git a/locale/de.po b/locale/de.po index c09de26..1d5dc89 100644 --- a/locale/de.po +++ b/locale/de.po @@ -30,6 +30,10 @@ msgctxt "model:ir.action,name:report_edocument" msgid "eDocument Export" msgstr "eDocument Export" +msgctxt "model:ir.action,name:act_import_wiz" +msgid "eDocument Import" +msgstr "eDocument Import" + ########################################## # account_invoice_xrechnung.runrep.start # @@ -193,3 +197,83 @@ msgstr "ZUGFeRD 2.3.2" msgctxt "selection:account_invoice_xrechnung.configuration,xrechn_default:" msgid "CII CrossIndustryInvoice D16B" msgstr "CII CrossIndustryInvoice D16B" + + +########################################## +# account_invoice_xrechnung.import.start # +########################################## +msgctxt "model:account_invoice_xrechnung.import.start,name:" +msgid "eDocument Import" +msgstr "eDocument Import" + +msgctxt "field:account_invoice_xrechnung.import.start,company:" +msgid "Company" +msgstr "Unternehmen" + +msgctxt "field:account_invoice_xrechnung.import.start,invoice_type:" +msgid "Invoice Type" +msgstr "Rechnungstyp" + +msgctxt "selection:account_invoice_xrechnung.import.start,invoice_type:" +msgid "Customer Invoice" +msgstr "Kundenrechnung" + +msgctxt "selection:account_invoice_xrechnung.import.start,invoice_type:" +msgid "Supplier Invoice" +msgstr "Lieferantenrechnung" + +msgctxt "field:account_invoice_xrechnung.import.start,file_:" +msgid "ZIP or XML-File" +msgstr "ZIP oder XML-Datei" + + +################################################ +# account_invoice_xrechnung.import.showcontent # +################################################ +msgctxt "model:account_invoice_xrechnung.import.showcontent,name:" +msgid "eDocument Import" +msgstr "eDocument Import" + +msgctxt "field:account_invoice_xrechnung.import.showcontent,company:" +msgid "Company" +msgstr "Unternehmen" + +msgctxt "field:account_invoice_xrechnung.import.showcontent,invoice_type:" +msgid "Invoice Type" +msgstr "Rechnungstyp" + +msgctxt "selection:account_invoice_xrechnung.import.showcontent,invoice_type:" +msgid "Customer Invoice" +msgstr "Kundenrechnung" + +msgctxt "selection:account_invoice_xrechnung.import.showcontent,invoice_type:" +msgid "Supplier Invoice" +msgstr "Lieferantenrechnung" + + +#################################### +# account_invoice_xrechnung.import # +#################################### +msgctxt "model:account_invoice_xrechnung.import,name:" +msgid "eDocument Import" +msgstr "eDocument Import" + +msgctxt "wizard_button:account_invoice_xrechnung.import,start,end:" +msgid "Cancel" +msgstr "Abbruch" + +msgctxt "wizard_button:account_invoice_xrechnung.import,start,doupload:" +msgid "Upload" +msgstr "Hochladen" + +msgctxt "wizard_button:account_invoice_xrechnung.import,showcontent,end:" +msgid "Cancel" +msgstr "Abbruch" + +msgctxt "wizard_button:account_invoice_xrechnung.import,showcontent,start:" +msgid "Back" +msgstr "Zurück" + +msgctxt "wizard_button:account_invoice_xrechnung.import,showcontent,doimport:" +msgid "Import" +msgstr "Import" diff --git a/locale/en.po b/locale/en.po index d6ec74c..07a080d 100644 --- a/locale/en.po +++ b/locale/en.po @@ -22,6 +22,10 @@ msgctxt "model:ir.action,name:report_edocument" msgid "eDocument Export" msgstr "eDocument Export" +msgctxt "model:ir.action,name:act_import_wiz" +msgid "eDocument Import" +msgstr "eDocument Import" + msgctxt "model:account_invoice_xrechnung.runrep.start,name:" msgid "eDocument Export" msgstr "eDocument Export" @@ -165,3 +169,72 @@ msgstr "ZUGFeRD 2.3.2" msgctxt "selection:account_invoice_xrechnung.configuration,xrechn_default:" msgid "CII CrossIndustryInvoice D16B" msgstr "CII CrossIndustryInvoice D16B" + +msgctxt "model:account_invoice_xrechnung.import.start,name:" +msgid "eDocument Import" +msgstr "eDocument Import" + +msgctxt "field:account_invoice_xrechnung.import.start,company:" +msgid "Company" +msgstr "Company" + +msgctxt "field:account_invoice_xrechnung.import.start,invoice_type:" +msgid "Invoice Type" +msgstr "Invoice Type" + +msgctxt "selection:account_invoice_xrechnung.import.start,invoice_type:" +msgid "Customer Invoice" +msgstr "Customer Invoice" + +msgctxt "selection:account_invoice_xrechnung.import.start,invoice_type:" +msgid "Supplier Invoice" +msgstr "Supplier Invoice" + +msgctxt "field:account_invoice_xrechnung.import.start,file_:" +msgid "ZIP or XML-File" +msgstr "ZIP or XML-File" + +msgctxt "model:account_invoice_xrechnung.import.showcontent,name:" +msgid "eDocument Import" +msgstr "eDocument Import" + +msgctxt "field:account_invoice_xrechnung.import.showcontent,company:" +msgid "Company" +msgstr "Company" + +msgctxt "field:account_invoice_xrechnung.import.showcontent,invoice_type:" +msgid "Invoice Type" +msgstr "Invoice Type" + +msgctxt "selection:account_invoice_xrechnung.import.showcontent,invoice_type:" +msgid "Customer Invoice" +msgstr "Customer Invoice" + +msgctxt "selection:account_invoice_xrechnung.import.showcontent,invoice_type:" +msgid "Supplier Invoice" +msgstr "Supplier Invoice" + +msgctxt "model:account_invoice_xrechnung.import,name:" +msgid "eDocument Import" +msgstr "eDocument Import" + +msgctxt "wizard_button:account_invoice_xrechnung.import,start,end:" +msgid "Cancel" +msgstr "Cancel" + +msgctxt "wizard_button:account_invoice_xrechnung.import,start,doupload:" +msgid "Upload" +msgstr "Upload" + +msgctxt "wizard_button:account_invoice_xrechnung.import,showcontent,end:" +msgid "Cancel" +msgstr "Cancel" + +msgctxt "wizard_button:account_invoice_xrechnung.import,showcontent,start:" +msgid "Back" +msgstr "Back" + +msgctxt "wizard_button:account_invoice_xrechnung.import,showcontent,doimport:" +msgid "Import" +msgstr "Import" + diff --git a/menu.xml b/menu.xml new file mode 100644 index 0000000..186e980 --- /dev/null +++ b/menu.xml @@ -0,0 +1,13 @@ + + + + + + + + + diff --git a/tryton.cfg b/tryton.cfg index 272e243..1c134fd 100644 --- a/tryton.cfg +++ b/tryton.cfg @@ -8,4 +8,6 @@ xml: message.xml configuration.xml wizard_runreport.xml + wizard_import.xml xreport.xml + menu.xml diff --git a/view/import_content_form.xml b/view/import_content_form.xml new file mode 100644 index 0000000..e4b28e7 --- /dev/null +++ b/view/import_content_form.xml @@ -0,0 +1,11 @@ + + +
+