hms_bak/bross_bank_management/wizard/add_payments_view.xml
mgite 36b2a3fab6
Some checks failed
Update odoo 18 / update (push) Failing after 1m32s
maaaany changes
2024-11-16 02:07:15 +04:00

49 lines
3.0 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<data>
<record id="add_payments_wizard_view_form" model="ir.ui.view">
<field name="name">add.payments.wizard.form</field>
<field name="model">add.payments.wizard</field>
<field name="arch" type="xml">
<form string="Add Payments">
<group>
<group>
<field name="payment_type" required="1" options="{'no_open': True, 'no_create': True, 'no_create_edit': True, 'no_quick_create': True}"/>
<field name="pending_transcation" widget="boolean_toggle" invisible="payment_type == 1" readonly="payment_type == 2" force_save="1"/>
<field name="transaction_id" required="payment_type == 3 and pending_transcation == False" invisible="payment_type in (1,2) or pending_transcation == True" options="{'no_open': True, 'no_create': True, 'no_create_edit': True, 'no_quick_create': True}"/>
<field name="amount_gel" invisible="show_amount_gel != True" readonly="1" force_save="1"/>
<field name="gel_currency_id" invisible="1" options="{'no_open': True, 'no_create': True, 'no_create_edit': True, 'no_quick_create': True}"/>
<field name="show_amount_gel" invisible="1"/>
<field name="amount" required="payment_type == 1"/>
<field name="currency_id" required="1" readonly="payment_type == 3 and pending_transcation == False" force_save="1" options="{'no_open': True, 'no_create': True, 'no_create_edit': True, 'no_quick_create': True}"/>
<field name="exchange_rate" required="1" invisible="hide_exchange_rate == True" force_save="1"/>
<field name="hide_exchange_rate" invisible="1"/>
</group>
<group>
<field name="pos_terminal_code" invisible="payment_type != 2"/>
<field name="wire_transfer_code" invisible="payment_type != 3"/>
</group>
</group>
<group>
<group>
</group>
<group>
<field name="expected_payment" readonly="1" force_save="1"/>
<field name="expected_payment_currency" invisible="1"/>
</group>
</group>
<footer>
<button string="Add Payment" name="add_payments" type="object" class="oe_highlight" data-hotkey="q"/>
<button string="Cancel" class="btn btn-secondary" special="cancel" data-hotkey="x"/>
</footer>
</form>
</field>
</record>
</data>
</odoo>