vendor_batch_payment_merge/views/account_batch_payment_views.xml
2025-09-20 12:02:42 +07:00

28 lines
1.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_batch_payment_form_inherit" model="ir.ui.view">
<field name="name">account.batch.payment.form.inherit</field>
<field name="model">account.batch.payment</field>
<field name="inherit_id" ref="account_batch_payment.view_batch_payment_form"/>
<field name="arch" type="xml">
<xpath expr="//page[@name='batch_content']" position="after">
<page string="Direct Payment Lines" name="direct_payment_lines">
<field name="direct_payment_line_ids">
<tree editable="bottom">
<field name="partner_id" domain="parent.batch_type == 'outbound' and [('supplier_rank', '>', 0)] or [('customer_rank', '>', 0)]" options="{'no_create': True}"/>
<field name="amount" sum="Total"/>
<field name="expense_account_id"/>
<field name="memo"/>
<field name="date"/>
<field name="payment_id" readonly="1"/>
</tree>
</field>
</page>
</xpath>
<xpath expr="//header" position="inside">
<button name="generate_payments_from_lines" string="Generate Payments" type="object"
class="oe_highlight" invisible="state != 'draft'"/>
</xpath>
</field>
</record>
</odoo>