diff --git a/locale/de.po b/locale/de.po index 71403b9..020d46f 100644 --- a/locale/de.po +++ b/locale/de.po @@ -1294,6 +1294,10 @@ msgctxt "view:cashbook.enterbooking.start:" msgid "Description" msgstr "Beschreibung" +msgctxt "view:cashbook.enterbooking.start:" +msgid "Booking" +msgstr "Buchung" + msgctxt "field:cashbook.enterbooking.start,cashbook:" msgid "Cashbook" msgstr "Kassenbuch" @@ -1302,10 +1306,6 @@ 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" diff --git a/view/enterbooking_start_form.xml b/view/enterbooking_start_form.xml index 3ab0a1b..9b16ddc 100644 --- a/view/enterbooking_start_form.xml +++ b/view/enterbooking_start_form.xml @@ -5,27 +5,28 @@ full copyright notices and license terms. -->
diff --git a/wizard_booking.py b/wizard_booking.py index fc85987..0c84545 100644 --- a/wizard_booking.py +++ b/wizard_booking.py @@ -28,9 +28,6 @@ class EnterBookingStart(ModelView): owner_cashbook = fields.Function(fields.Many2One(string='Owner', readonly=True, states={'invisible': True}, model_name='res.user'), 'on_change_with_owner_cashbook') - balance = fields.Numeric(string='Balance', readonly=True, - digits=(16, Eval('currency_digits', 2)), - depends=['currency_digits']) currency = fields.Function(fields.Many2One(string='Currency', model_name='currency.currency', states={'invisible': True}), 'on_change_with_currency') @@ -88,15 +85,6 @@ class EnterBookingStart(ModelView): if not self.bookingtype in types.get(self.category.cattype, ''): self.category = None - @fields.depends('cashbook', 'balance') - def on_change_cashbook(self): - """ get balance of selected cashbook - """ - if self.cashbook: - self.balance = self.cashbook.balance - else : - self.balance = None - @fields.depends('cashbook', '_parent_cashbook.owner') def on_change_with_owner_cashbook(self, name=None): """ get current owner