mixin: unbenutzten code entfernt
This commit is contained in:
parent
1c14b0134b
commit
5449d452e9
1 changed files with 3 additions and 3 deletions
6
mixin.py
6
mixin.py
|
@ -1,9 +1,9 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- 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
|
# The COPYRIGHT file at the top level of this repository contains the
|
||||||
# full copyright notices and license terms.
|
# 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.pyson import Eval, Bool, Or
|
||||||
from trytond.pool import Pool
|
from trytond.pool import Pool
|
||||||
from trytond.modules.currency.ir import rate_decimal
|
from trytond.modules.currency.ir import rate_decimal
|
||||||
|
@ -179,7 +179,7 @@ class SecondCurrencyMixin:
|
||||||
if self.currency.id != self.booktransf.currency.id:
|
if self.currency.id != self.booktransf.currency.id:
|
||||||
return 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):
|
def on_change_with_currency2nd_digits(self, name=None):
|
||||||
""" currency of transfer-target
|
""" currency of transfer-target
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue