mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
31 lines
1.2 KiB
XML
31 lines
1.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2013 Akretion (http://www.akretion.com)
|
|
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
|
The licence is in the file __openerp__.py
|
|
-->
|
|
<openerp>
|
|
<data>
|
|
|
|
<record id="view_mandate_payment_order_form" model="ir.ui.view">
|
|
<field name="name">mandate.payment.order.form</field>
|
|
<field name="model">payment.order</field>
|
|
<field name="inherit_id" ref="account_banking_payment_export.view_payment_order_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='line_ids']/form//field[@name='bank_id']" position="after">
|
|
<field name="mandate_id"
|
|
domain="[('partner_bank_id', '=', bank_id), ('state', '=', 'valid')]"
|
|
invisible="context.get('search_payment_order_type')!='debit'"
|
|
context="{'default_partner_bank_id': bank_id}"/>
|
|
<newline />
|
|
</xpath>
|
|
<xpath expr="//field[@name='line_ids']/tree/field[@name='bank_id']" position="after">
|
|
<field name="mandate_id" string="Mandate"
|
|
invisible="context.get('search_payment_order_type')!='debit'"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
</data>
|
|
</openerp>
|