account_statement_import_online: usability improvement on form view of online.bank.statement.provider: avoid speading the information on 3 tabs. As there are just a few fields, let's keep all the information directly visible.

Fix warning on search view of online.bank.statement.provider
Fix some tests
Button on journal form view to access the wizard
The wizard now returns the bank statements of the journal(s)
Fix wired strings
This commit is contained in:
Alexis de Lattre
2021-06-16 23:40:52 +02:00
committed by manu
parent f726b84980
commit 1acdd20905
9 changed files with 112 additions and 94 deletions

View File

@@ -76,17 +76,3 @@ class AccountJournal(models.Model):
if "bank_statements_source" in vals or "online_bank_statement_provider" in vals:
self._update_online_bank_statement_provider_id()
return res
def action_online_bank_statements_pull_wizard(self):
provider_ids = self.mapped("online_bank_statement_provider_id").ids
return {
"name": _("Online Bank Statement Pull Wizard"),
"type": "ir.actions.act_window",
"res_model": "online.bank.statement.pull.wizard",
"views": [[False, "form"]],
"target": "new",
"context": {
"default_provider_ids": [(6, False, provider_ids)],
"active_test": False,
},
}