You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<?xml version="1.0" encoding="utf-8"?> <!--
Copyright 2019-2020 Brainbean Apps (https://brainbeanapps.com) Copyright 2019-2020 Dataplug (https://dataplug.io) License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> <odoo>
<record model="ir.ui.view" id="view_account_journal_form"> <field name="name">account.journal.form</field> <field name="model">account.journal</field> <field name="inherit_id" ref="account.view_account_journal_form"/> <field name="arch" type="xml"> <page name="bank_account"> <group name="online_bank_statements" string="Online Bank Statements (OCA)" groups="account.group_account_user" attrs="{'invisible': [('bank_statements_source', '!=', 'online')]}" > <label for="online_bank_statement_provider" string="Provider" attrs="{'required': [('bank_statements_source', '=', 'online')]}" 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" widget="dynamic_dropdown" values="values_online_bank_statement_provider" /> <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" /> </group> </page> </field> </record>
<record model="ir.ui.view" id="view_account_bank_journal_form"> <field name="name">account.journal.form</field> <field name="model">account.journal</field> <field name="inherit_id" ref="account.view_account_bank_journal_form"/> <field name="arch" type="xml"> <group name="bank_statement" position="after"> <group name="online_bank_statements" string="Online Bank Statements (OCA)" groups="account.group_account_user" attrs="{'invisible': [('bank_statements_source', '!=', 'online')]}" > <label for="online_bank_statement_provider" string="Provider" attrs="{'required': [('bank_statements_source', '=', 'online')]}" 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" widget="dynamic_dropdown" values="values_online_bank_statement_provider" /> <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" /> </group> </group> </field> </record>
<record id="journal_dashboard_view_inherit" model="ir.ui.view"> <field name="name">account.journal.dashboard.kanban</field> <field name="model">account.journal</field> <field name="inherit_id" ref="account_bank_statement_import.journal_dashboard_view_inherit"/> <field name="arch" type="xml"> <div name="bank_statement_create_button" position="attributes"> <attribute name="t-if">dashboard.bank_statements_source != 'online_sync' and dashboard.bank_statements_source != 'online'</attribute> </div> <xpath expr="//a[@name='create_bank_statement']" position="attributes"> <attribute name="t-if">dashboard.bank_statements_source != 'online_sync' and dashboard.bank_statements_source != 'online'</attribute> </xpath> <xpath expr="//a[@name='import_statement']" position="attributes"> <attribute name="t-if">dashboard.bank_statements_source != 'online_sync' and dashboard.bank_statements_source != 'online'</attribute> </xpath> </field> </record>
<record id="action_online_bank_statements_pull_wizard" model="ir.actions.server"> <field name="name">Online Bank Statements Pull Wizard</field> <field name="type">ir.actions.server</field> <field name="model_id" ref="account.model_account_journal"/> <field name="binding_model_id" ref="account.model_account_journal"/> <field name="state">code</field> <field name="code"> if records: action = records.action_online_bank_statements_pull_wizard() </field> </record>
</odoo>
|