54 lines
3.2 KiB
XML
54 lines
3.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data>
|
|
<record id="action_open_accounting_settings" model="ir.actions.act_window">
|
|
<field name="name">Settings</field>
|
|
<field name="res_model">res.config.settings</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="context">{'module': 'account', 'bin_size': False}</field>
|
|
</record>
|
|
|
|
<record id="account_journal_dashboard_inherit_l10n_be_codabox" model="ir.ui.view">
|
|
<field name="name">account.journal.dashboard.inherit.l10n_be_codabox</field>
|
|
<field name="model">account.journal</field>
|
|
<field name="inherit_id" ref="account.account_journal_dashboard_kanban_view"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr='//div[@id="dashboard_bank_cash_left"]' position='inside'>
|
|
<t t-if="journal_type == 'bank' and dashboard.bank_statements_source == 'l10n_be_codabox'">
|
|
<t t-if="dashboard.l10n_be_codabox_is_connected">
|
|
<a type="object" name="l10n_be_codabox_manually_fetch_coda_transactions" class="btn btn-link" groups="account.group_account_manager" role="button">Fetch from CodaBox</a>
|
|
</t>
|
|
<t t-else="">
|
|
<a name="%(l10n_be_codabox.action_open_accounting_settings)d" type="action" class="text-warning">
|
|
<i class="fa fa-exclamation-triangle me4"/>
|
|
CodaBox disconnected
|
|
</a>
|
|
</t>
|
|
</t>
|
|
</xpath>
|
|
<xpath expr='//div[@id="dashboard_misc_left"]' position='inside'>
|
|
<t t-if="journal_type == 'general' and dashboard.l10n_be_codabox_journal_is_soda">
|
|
<t t-if="dashboard.l10n_be_codabox_is_connected">
|
|
<a type="object" name="l10n_be_codabox_manually_fetch_soda_transactions" class="btn btn-link" groups="account.group_account_manager" role="button">Fetch from CodaBox</a>
|
|
</t>
|
|
<t t-else="">
|
|
<a name="%(l10n_be_codabox.action_open_accounting_settings)d" type="action" class="text-warning">
|
|
<i class="fa fa-exclamation-triangle me4"/>
|
|
CodaBox disconnected
|
|
</a>
|
|
</t>
|
|
</t>
|
|
</xpath>
|
|
<xpath expr='//t[@t-name="JournalMiscelaneous"]//div[@id="dashboard_general_right"]' position='inside'>
|
|
<t t-if="journal_type == 'general' and dashboard.l10n_be_codabox_journal_is_soda">
|
|
<a t-if="dashboard.l10n_be_codabox_number_draft" type="object" name="l10n_be_codabox_action_open_settings_open_draft_soda_entries"
|
|
class="oe_kanban_action float-end">
|
|
<t t-out="dashboard.l10n_be_codabox_number_draft"/> Drafts to Validate
|
|
</a>
|
|
</t>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</odoo>
|