vendor_payment_diff_amount/views/account_payment_views.xml
2025-11-19 17:05:58 +07:00

38 lines
1.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_account_payment_form_inherit" model="ir.ui.view">
<field name="name">account.payment.form.inherit</field>
<field name="model">account.payment</field>
<field name="inherit_id" ref="account.view_account_payment_form"/>
<field name="arch" type="xml">
<div name="amount_div" position="after">
<label for="amount_substract" string="Amount Substract"
invisible="payment_type != 'outbound'"/>
<div class="o_row" invisible="payment_type != 'outbound'">
<field name="amount_substract"
widget="monetary"
options="{'currency_field': 'currency_id'}"
readonly="state != 'draft'"
force_save="1"/>
</div>
<label for="substract_account_id" string="Substract Account"
invisible="payment_type != 'outbound'"/>
<div class="o_row" invisible="payment_type != 'outbound'">
<field name="substract_account_id"
readonly="state != 'draft'"
force_save="1"/>
</div>
<label for="final_payment_amount" string="Final Payment Amount"
invisible="payment_type != 'outbound'"/>
<div class="o_row" invisible="payment_type != 'outbound'">
<field name="final_payment_amount"
widget="monetary"
options="{'currency_field': 'currency_id'}"
readonly="1"
force_save="1"/>
</div>
</div>
</field>
</record>
</odoo>