From 25db274d2d892acda94cb98ebfc54faaef079582 Mon Sep 17 00:00:00 2001 From: Frederik Jaeckel Date: Tue, 6 Sep 2022 17:26:53 +0200 Subject: [PATCH] wizard: buchungseingabe begonnen --- __init__.py | 3 + locale/de.po | 85 +++++++++++++++++++++++++ menu.xml | 17 ++++- tryton.cfg | 1 + view/enterbooking_start_form.xml | 20 ++++++ wizard_booking.py | 106 +++++++++++++++++++++++++++++++ wizard_booking.xml | 21 ++++++ 7 files changed, 251 insertions(+), 2 deletions(-) create mode 100644 view/enterbooking_start_form.xml create mode 100644 wizard_booking.py create mode 100644 wizard_booking.xml diff --git a/__init__.py b/__init__.py index cb57d15..6115d74 100644 --- a/__init__.py +++ b/__init__.py @@ -10,6 +10,7 @@ from .line import Line, LineContext from .splitline import SplitLine from .wizard_openline import OpenCashBook, OpenCashBookStart from .wizard_runreport import RunCbReport, RunCbReportStart +from .wizard_booking import EnterBookingWizard, EnterBookingStart from .configuration import Configuration, UserConfiguration from .category import Category from .reconciliation import Reconciliation @@ -28,6 +29,7 @@ def register(): Reconciliation, OpenCashBookStart, RunCbReportStart, + EnterBookingStart, module='cashbook', type_='model') Pool.register( ReconciliationReport, @@ -35,4 +37,5 @@ def register(): Pool.register( OpenCashBook, RunCbReport, + EnterBookingWizard, module='cashbook', type_='wizard') diff --git a/locale/de.po b/locale/de.po index 0cb9bdb..069bc80 100644 --- a/locale/de.po +++ b/locale/de.po @@ -278,6 +278,10 @@ msgctxt "model:ir.ui.menu,name:act_category_view" msgid "Category" msgstr "Kategorie" +msgctxt "model:ir.ui.menu,name:menu_enter_booking" +msgid "Enter Booking" +msgstr "Buchung eingeben" + ############# # ir.action # @@ -306,6 +310,10 @@ msgctxt "model:ir.action,name:act_wizard_report" msgid "Cashbook Report" msgstr "Kassenbuch Bericht" +msgctxt "model:ir.action,name:act_enterbooking_wiz" +msgid "Enter Booking" +msgstr "Buchung eingeben" + ############################### # ir.action.act_window.domain # @@ -1253,3 +1261,80 @@ msgstr "Gesamt" msgctxt "report:cashbook.reprecon:" msgid "Payee" msgstr "Empfänger" + + +############################### +# cashbook.enterbooking.start # +############################### +msgctxt "model:cashbook.enterbooking.start,name:" +msgid "Enter Booking" +msgstr "Buchung eingeben" + +msgctxt "field:cashbook.enterbooking.start,cashbook:" +msgid "Cashbook" +msgstr "Kassenbuch" + +msgctxt "field:cashbook.enterbooking.start,cashbooks:" +msgid "Cashbooks" +msgstr "Kassenbücher" + +msgctxt "field:cashbook.enterbooking.start,balance:" +msgid "Balance" +msgstr "Saldo" + +msgctxt "field:cashbook.enterbooking.start,currency_digits:" +msgid "Currency Digits" +msgstr "Nachkommastellen Währung" + +msgctxt "field:cashbook.enterbooking.start,currency:" +msgid "Currency" +msgstr "Währung" + +msgctxt "field:cashbook.enterbooking.start,bookingtype:" +msgid "Type" +msgstr "Typ" + +msgctxt "selection:cashbook.enterbooking.start,bookingtype:" +msgid "Revenue" +msgstr "Einnahme" + +msgctxt "selection:cashbook.enterbooking.start,bookingtype:" +msgid "Revenue Splitbooking" +msgstr "Einnahme Splitbuchung" + +msgctxt "selection:cashbook.enterbooking.start,bookingtype:" +msgid "Expense" +msgstr "Ausgabe" + +msgctxt "selection:cashbook.enterbooking.start,bookingtype:" +msgid "Expense Splitbooking" +msgstr "Ausgabe Splitbuchung" + +msgctxt "selection:cashbook.enterbooking.start,bookingtype:" +msgid "Transfer from" +msgstr "Umbuchung von" + +msgctxt "selection:cashbook.enterbooking.start,bookingtype:" +msgid "Transfer to" +msgstr "Umbuchung nach" + +msgctxt "field:cashbook.enterbooking.start,amount:" +msgid "Amount" +msgstr "Betrag" + + + +######################### +# cashbook.enterbooking # +######################### +msgctxt "model:cashbook.enterbooking,name:" +msgid "Enter Booking" +msgstr "Buchung eingeben" + +msgctxt "wizard_button:cashbook.enterbooking,start,end:" +msgid "Cancel" +msgstr "Abbruch" + +msgctxt "wizard_button:cashbook.enterbooking,start,save_:" +msgid "Save" +msgstr "Speichern" diff --git a/menu.xml b/menu.xml index c37eb13..d4c8a1b 100644 --- a/menu.xml +++ b/menu.xml @@ -56,10 +56,23 @@ full copyright notices and license terms. --> + + + + + + + + + + + + parent="menu_cashbook" sequence="30"/> @@ -72,7 +85,7 @@ full copyright notices and license terms. --> + parent="menu_cashbook" sequence="40"/> diff --git a/tryton.cfg b/tryton.cfg index 9e260f4..1073d3d 100644 --- a/tryton.cfg +++ b/tryton.cfg @@ -19,4 +19,5 @@ xml: splitline.xml wizard_openline.xml wizard_runreport.xml + wizard_booking.xml menu.xml diff --git a/view/enterbooking_start_form.xml b/view/enterbooking_start_form.xml new file mode 100644 index 0000000..8d9337c --- /dev/null +++ b/view/enterbooking_start_form.xml @@ -0,0 +1,20 @@ + + +
+