1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/account_online_synchronization/views/account_journal_view.xml
2024-12-10 09:04:09 +07:00

34 lines
1.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="account_journal_form" model="ir.ui.view">
<field name="name">account.journal.form.online.sync</field>
<field name="model">account.journal</field>
<field name="inherit_id" ref="account.view_account_journal_form"/>
<field name="arch" type="xml">
<xpath expr="//group[@name='bank_account_number']" position="inside">
<field name="account_online_account_id" invisible="1"/>
<field name="renewal_contact_email" groups="account.group_account_readonly" invisible="not account_online_account_id"/>
<!-- Take one cell in order to have the button aligned with the field and not its label -->
<div class="o_cell flex-grow-1 flex-sm-grow-0" invisible="not account_online_account_id"/>
<button name="action_send_reminder" class="oe_link oe_inline ps-0 py-0" type="object"
invisible="not account_online_account_id">
<i class="oi oi-arrow-right me-2"/> Send Now
</button>
</xpath>
</field>
</record>
<record id="account_journal_action_fetch_missing_transactions" model="ir.actions.server">
<field name="name">Find Missing Transactions</field>
<field name="model_id" ref="model_account_journal" />
<field name="binding_model_id" ref="model_account_journal" />
<field name="binding_view_types">form</field>
<field name="state">code</field>
<field name="code">
if record:
action = record.action_open_missing_transaction_wizard()
</field>
</record>
</data>
</odoo>