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 15, 2023
1 parent 5644b6e commit b4b1c4d
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"
groups="account.group_account_user"
/>
Expand Down

0 comments on commit b4b1c4d

Please sign in to comment.