mirror of
https://gitlab.com/flectra-community/l10n-switzerland-flectra.git
synced 2024-11-16 19:12:04 +00:00
🐛 wrong and/or check
->l10n_ch_base_bank
This commit is contained in:
parent
3adf99fff4
commit
ffb828337e
@ -87,14 +87,13 @@ class AccountMove(models.Model):
|
|||||||
)
|
)
|
||||||
if (
|
if (
|
||||||
bank_acc.acc_type not in ["qr-iban", 'iban']
|
bank_acc.acc_type not in ["qr-iban", 'iban']
|
||||||
and (
|
and ((
|
||||||
move.currency_id.name == "CHF"
|
move.currency_id.name == "CHF"
|
||||||
and not bank_acc.l10n_ch_isr_subscription_chf
|
and not bank_acc.l10n_ch_isr_subscription_chf
|
||||||
)
|
) or (
|
||||||
or (
|
|
||||||
move.currency_id.name == "EUR"
|
move.currency_id.name == "EUR"
|
||||||
and not bank_acc.l10n_ch_isr_subscription_eur
|
and not bank_acc.l10n_ch_isr_subscription_eur
|
||||||
)
|
))
|
||||||
):
|
):
|
||||||
raise exceptions.ValidationError(
|
raise exceptions.ValidationError(
|
||||||
_(
|
_(
|
||||||
|
Loading…
Reference in New Issue
Block a user