~akretion-team/banking-addons/70-sepa-direct-debit

« back to all changes in this revision

Viewing changes to account_banking_sepa_direct_debit/account_payment_view.xml

  • Committer: Alexis de Lattre
  • Date: 2013-10-15 21:29:28 UTC
  • Revision ID: alexis@via.ecp.fr-20131015212928-7wj0xxftxv613rhi
First implementation of mandates, but I still have a lot of hesitation about the data model so it may change.
Manage different sequence types in the same file ; we just have to separate them in different payment info blocks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
<!--
 
3
  Copyright (C) 2013 Akretion (http://www.akretion.com)
 
4
  @author: Alexis de Lattre <alexis.delattre@akretion.com>
 
5
  The licence is in the file __openerp__.py
 
6
-->
 
7
<openerp>
 
8
<data>
 
9
 
 
10
<record id="sdd_view_payment_order_form" model="ir.ui.view">
 
11
    <field name="name">sdd.payment.order.form</field>
 
12
    <field name="model">payment.order</field>
 
13
    <field name="inherit_id" ref="account_payment.view_payment_order_form"/>
 
14
    <field name="arch" type="xml">
 
15
        <xpath expr="//field[@name='line_ids']/form/notebook/page/group/field[@name='bank_id']" position="after">
 
16
            <field name="sdd_mandate_id" domain="[('partner_bank_id', '=', bank_id), ('state', '=', 'valid')]" invisible="context.get('default_payment_order_type')!='debit'" />
 
17
            <newline />
 
18
        </xpath>
 
19
        <xpath expr="//field[@name='line_ids']/tree/field[@name='bank_id']" position="after">
 
20
            <field name="sdd_mandate_id" string="SDD Mandate" invisible="context.get('default_payment_order_type')!='debit'"/>
 
21
        </xpath>
 
22
    </field>
 
23
</record>
 
24
 
 
25
</data>
 
26
</openerp>