Skip to content

Commit

Permalink
[FIX] account_statement_import_online: Change pull button visibility
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pedrobaeza committed Nov 14, 2023
1 parent cad068b commit 4e0073c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion account_statement_import_online/views/account_journal.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
/>
</header>
Expand Down

0 comments on commit 4e0073c

Please sign in to comment.