[FIX] account_statement_import_online: Change pull button visibility

You may have an old value on online_bank_statement_provider, but
switched to another source, and thus, the button is still visible,
which is not correct.

Let's use the source selection as the invisible modifier.
This commit is contained in:
Pedro M. Baeza
2023-11-14 13:54:28 +01:00
committed by Carolina Fernandez
parent 5f9e44d54b
commit de81bf0f34

View File

@@ -53,7 +53,7 @@
<button
type="action"
name="%(action_online_bank_statements_pull_wizard)d"
attrs="{'invisible': [('online_bank_statement_provider', '=', False)]}"
attrs="{'invisible': [('bank_statements_source', '!=', 'online')]}"
string="Pull Online Bank Statement"
groups="account.group_account_user"
/>