Files
bank-payment/account_banking_sepa_direct_debit/account_invoice_view.xml
Alexis de Lattre d8c36c2cef Add the ability to cancel a mandate.
Add a field "SDD Mandate" on the customer invoice, to handle the scenario where one customer has multiple mandates with the company.
2013-11-09 15:05:07 +01:00

23 lines
764 B
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="invoice_form" model="ir.ui.view">
<field name="name">add.sdd.mandate.on.customer.invoice.form</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_form"/>
<field name="arch" type="xml">
<field name="partner_bank_id" position="after">
<field name="sdd_mandate_id" domain="[('partner_id', '=', partner_id), ('state', '=', 'valid')]" attrs="{'invisible': [('type', '=', 'out_refund')]}"/>
</field>
</field>
</record>
</data>
</openerp>