Add date_confirm in sale order view !

Add onchange on important sale.order fields
This commit is contained in:
Alexis de Lattre
2015-07-30 10:09:10 +02:00
parent cdfbc427d1
commit 9a3fa8dbe0
3 changed files with 54 additions and 21 deletions

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2014 Akretion (http://www.akretion.com/)
Copyright (C) 2015 Akretion (http://www.akretion.com/)
@author: Alexis de Lattre <alexis.delattre@akretion.com>
The licence is in the file __openerp__.py
-->
@@ -21,6 +21,10 @@
<field name="invoice_ids" nolabel="1" context="{'form_view_ref': 'account.invoice_form'}"/>
</page>
</notebook>
<field name="date_order" position="after">
<field name="date_confirm"
attrs="{'invisible': [('state', 'in', ('draft', 'sent'))]}"/>
</field>
</field>
</record>
@@ -43,8 +47,16 @@
<field name="amount_total" position="after">
<field name="currency_id" groups="base.group_multi_currency"/>
</field>
<field name="date_order" position="attributes">
<attribute name="invisible">1</attribute>
</field>
<field name="date_order" position="after">
<field name="date_confirm"/>
</field>
</field>
</record>
<!-- TODO : handle date_confirm in search/graph views -->
</data>
</openerp>