Files
bank-payment/account_banking_aggregate_payment/view/payment_mode.xml
Stefan Rijnhart 7bfc51b2d5 [IMP] Module description
[ADD] Translation
2013-06-13 21:56:28 +02:00

53 lines
2.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="view_payment_mode_form" model="ir.ui.view">
<field name="name">Adaptations for aggregate payment modes</field>
<field name="model">payment.mode</field>
<field name="inherit_id"
ref="account_direct_debit.view_payment_mode_form"/>
<field name="type">form</field>
<field name="arch" type="xml">
<field name="payment_term_ids" position="after">
<group colspan="2" col="2" string="Aggregate payment"
attrs="{
'invisible': [
('type', '!=',
%(account_banking_aggregate_payment.type_aggregate)d
)]}">
<field name="aggregate_partner_id"
attrs="{'required': [
('type', '=',
%(account_banking_aggregate_payment.type_aggregate)d
)]}"
/>
<field name="chained_mode_id"
attrs="{'required': [
('type', '=',
%(account_banking_aggregate_payment.type_aggregate)d
)]}"
/>
</group>
</field>
<field name="transfer_account_id" position="attributes">
<attribute name="attrs">{
'required': [
('type', '=',
%(account_banking_aggregate_payment.type_aggregate)d
)]}</attribute>
</field>
<field name="transfer_journal_id" position="attributes">
<attribute name="attrs">{
'required': [
('type', '=',
%(account_banking_aggregate_payment.type_aggregate)d
)]}</attribute>
</field>
</field>
</record>
</data>
</openerp>