Add module account_payment_force_maturity_date

Better inherit in account_payment_hide_communication2 (invisible=1 instead of replace)
This commit is contained in:
Alexis de Lattre
2015-05-06 17:05:34 +02:00
parent ae0bd93403
commit 2a311b8cb8
7 changed files with 186 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 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_payment_order_form" model="ir.ui.view">
<field name="name">hide.communication2.on.payment.line.form</field>
<field name="model">payment.order</field>
<field name="inherit_id" ref="account_payment.view_payment_order_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='line_ids']/form//field[@name='ml_inv_ref']" position="after">
<field name="force_maturity_date"/>
</xpath>
</field>
</record>
</data>
</openerp>