From 5449d452e936c48b4dee22f2726450ff2b06eba3 Mon Sep 17 00:00:00 2001 From: Frederik Jaeckel Date: Thu, 12 Jan 2023 23:36:55 +0100 Subject: [PATCH] mixin: unbenutzten code entfernt --- mixin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mixin.py b/mixin.py index 973e8b5..a124dc6 100644 --- a/mixin.py +++ b/mixin.py @@ -1,9 +1,9 @@ # -*- coding: utf-8 -*- -# This file is part of the cashbook-module from m-ds for Tryton. +# This file is part of the cashbook-module from m-ds.de for Tryton. # The COPYRIGHT file at the top level of this repository contains the # full copyright notices and license terms. -from trytond.model import ModelView, ModelSQL, fields +from trytond.model import fields from trytond.pyson import Eval, Bool, Or from trytond.pool import Pool from trytond.modules.currency.ir import rate_decimal @@ -179,7 +179,7 @@ class SecondCurrencyMixin: if self.currency.id != self.booktransf.currency.id: return self.booktransf.currency.id - @fields.depends('currency', 'booktransf', '_parent_booktransf.currency') + @fields.depends('booktransf', '_parent_booktransf.currency') def on_change_with_currency2nd_digits(self, name=None): """ currency of transfer-target """