mirror of
https://gitlab.com/flectra-community/bank-payment.git
synced 2024-12-25 13:51:44 +00:00
115 lines
5.2 KiB
XML
115 lines
5.2 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<flectra>
|
|
<record id="account_payment_line_form" model="ir.ui.view">
|
|
<field name="name">account.payment.line.form</field>
|
|
<field name="model">account.payment.line</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Payment Lines">
|
|
<group name="main" col="2">
|
|
<group name="left">
|
|
<field name="state" invisible="1" />
|
|
<field name="company_id" invisible="1" />
|
|
<field
|
|
name="order_id"
|
|
invisible="not context.get('account_payment_line_main_view')"
|
|
/>
|
|
<field name="name" />
|
|
<field
|
|
name="move_line_id"
|
|
domain="[('reconciled','=', False), ('account_id.reconcile', '=', True)] "
|
|
/>
|
|
<!-- we removed the filter on amount_to_pay, because we want to be able to
|
|
select refunds -->
|
|
<field name="date" readonly="1" force_save="1" />
|
|
<field name="ml_maturity_date" readonly="1" />
|
|
<field name="amount_currency" />
|
|
<field name="currency_id" />
|
|
<field name="partner_id" />
|
|
<field
|
|
name="partner_bank_id"
|
|
context="{'default_partner_id': partner_id}"
|
|
domain="[('partner_id', '=', partner_id)]"
|
|
required="bank_account_required"
|
|
/>
|
|
<field name="bank_account_required" invisible="1" />
|
|
<field name="communication_type" />
|
|
<field name="communication" required="1" />
|
|
</group>
|
|
<group name="right">
|
|
<field
|
|
name="company_id"
|
|
widget="selection"
|
|
groups="base.group_multi_company"
|
|
/>
|
|
<field name="amount_company_currency" />
|
|
<field name="company_currency_id" invisible="1" />
|
|
<field name="payment_type" invisible="1" />
|
|
</group>
|
|
</group>
|
|
<group col="12" string="Payment Transaction">
|
|
<field name="payment_ids" colspan="12" nolabel="1" />
|
|
</group>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
<record id="account_payment_line_form_readonly" model="ir.ui.view">
|
|
<field name="name">account.payment.line.form.readonly</field>
|
|
<field name="model">account.payment.line</field>
|
|
<field
|
|
name="inherit_id"
|
|
ref="account_payment_order.account_payment_line_form"
|
|
/>
|
|
<field name="mode">primary</field>
|
|
<field name="arch" type="xml">
|
|
<form position="attributes">
|
|
<attribute name="create">0</attribute>
|
|
<attribute name="edit">0</attribute>
|
|
<attribute name="delete">0</attribute>
|
|
<attribute name="duplicate">0</attribute>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
<record id="account_payment_line_tree" model="ir.ui.view">
|
|
<field name="name">account.payment.line.tree</field>
|
|
<field name="model">account.payment.line</field>
|
|
<field name="arch" type="xml">
|
|
<tree>
|
|
<field
|
|
name="order_id"
|
|
invisible="not context.get('account_payment_line_main_view')"
|
|
/>
|
|
<field name="partner_id" />
|
|
<field name="communication" />
|
|
<field name="partner_bank_id" />
|
|
<field name="partner_bank_acc_type" optional="hide" />
|
|
<field name="move_line_id" optional="hide" />
|
|
<field name="ml_maturity_date" optional="show" />
|
|
<field name="date" />
|
|
<field name="amount_currency" string="Amount" />
|
|
<field name="currency_id" invisible="1" />
|
|
<field name="name" optional="show" />
|
|
<field name="company_currency_id" invisible="1" />
|
|
<field
|
|
name="amount_company_currency"
|
|
sum="Total in Company Currency"
|
|
invisible="1"
|
|
/>
|
|
<field name="payment_type" invisible="1" />
|
|
<button
|
|
name="action_open_business_doc"
|
|
type="object"
|
|
string="View"
|
|
class="btn btn-secondary"
|
|
invisible="not move_line_id"
|
|
/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
<record id="account_payment_line_action" model="ir.actions.act_window">
|
|
<field name="name">Payment Lines</field>
|
|
<field name="res_model">account.payment.line</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="context">{'account_payment_line_main_view': True}</field>
|
|
</record>
|
|
</flectra>
|