mirror of
https://github.com/OCA/bank-statement-import.git
synced 2025-01-20 12:37:43 +02:00
@@ -95,6 +95,7 @@ msgstr ""
|
||||
|
||||
#. module: account_statement_import_online
|
||||
#: model_terms:ir.ui.view,arch_db:account_statement_import_online.online_bank_statement_provider_form
|
||||
#: model_terms:ir.ui.view,arch_db:account_statement_import_online.view_account_journal_form
|
||||
msgid "Configuration"
|
||||
msgstr ""
|
||||
|
||||
|
||||
@@ -98,6 +98,7 @@ msgstr "Compañía relacionada a este diario"
|
||||
|
||||
#. module: account_statement_import_online
|
||||
#: model_terms:ir.ui.view,arch_db:account_statement_import_online.online_bank_statement_provider_form
|
||||
#: model_terms:ir.ui.view,arch_db:account_statement_import_online.view_account_journal_form
|
||||
msgid "Configuration"
|
||||
msgstr "Configuración"
|
||||
|
||||
|
||||
@@ -95,3 +95,13 @@ class AccountJournal(models.Model):
|
||||
self.ensure_one()
|
||||
provider = self.online_bank_statement_provider_id
|
||||
return provider.action_online_bank_statements_pull_wizard()
|
||||
|
||||
def action_open_online_bank_statement_provider(self):
|
||||
return {
|
||||
"type": "ir.actions.act_window",
|
||||
"name": "Statement Provider",
|
||||
"view_mode": "form",
|
||||
"res_model": "online.bank.statement.provider",
|
||||
"res_id": self.online_bank_statement_provider_id.id,
|
||||
"target": "current",
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
groups="account.group_account_user"
|
||||
attrs="{'invisible': [('bank_statements_source', '!=', 'online')]}"
|
||||
>
|
||||
|
||||
<label
|
||||
for="online_bank_statement_provider"
|
||||
string="Provider"
|
||||
@@ -28,25 +29,22 @@
|
||||
class="oe_edit_only"
|
||||
groups="account.group_account_user"
|
||||
/>
|
||||
<field
|
||||
name="online_bank_statement_provider"
|
||||
nolabel="1"
|
||||
attrs="{'required': [('bank_statements_source', '=', 'online')]}"
|
||||
class="oe_edit_only"
|
||||
groups="account.group_account_user"
|
||||
/>
|
||||
<label
|
||||
for="online_bank_statement_provider_id"
|
||||
string="Provider"
|
||||
attrs="{'invisible': [('online_bank_statement_provider_id', '=', False)]}"
|
||||
class="oe_read_only"
|
||||
/>
|
||||
<field
|
||||
name="online_bank_statement_provider_id"
|
||||
nolabel="1"
|
||||
attrs="{'invisible': [('online_bank_statement_provider_id', '=', False)]}"
|
||||
class="oe_read_only"
|
||||
/>
|
||||
<div>
|
||||
<field
|
||||
name="online_bank_statement_provider"
|
||||
nolabel="1"
|
||||
attrs="{'required': [('bank_statements_source', '=', 'online')]}"
|
||||
class="oe_inline"
|
||||
groups="account.group_account_user"
|
||||
/>
|
||||
<field name="online_bank_statement_provider_id" invisible="1" />
|
||||
<button
|
||||
name="action_open_online_bank_statement_provider"
|
||||
type="object"
|
||||
string="Configuration"
|
||||
attrs="{'invisible': [('online_bank_statement_provider_id', '=', False)]}"
|
||||
/>
|
||||
</div>
|
||||
</group>
|
||||
</xpath>
|
||||
<xpath expr="//div[@name='button_box']" position="inside">
|
||||
|
||||
Reference in New Issue
Block a user