[FIX]Re-fixed the usability issues.

bzr revid: msh@openerp.com-20130211052302-ts83esshx1v419ll
This commit is contained in:
Mohammed Shekha 2013-02-11 10:53:02 +05:30
commit 58654387ff
2 changed files with 2 additions and 1 deletions

View File

@ -909,7 +909,7 @@
<field name="type"/>
<field name="amount" class="oe_inline"
attrs="{'invisible':[('type','in',('none', 'code', 'balance'))]}"/>
<label string="%%" attrs="{'invisible':[('type','&lt;&gt;','percent')]}"/>
<label string="%% ratio between 0-1" attrs="{'invisible':[('type','&lt;&gt;','percent')]}"/>
</div>
<field name="python_compute" attrs="{'invisible':[('type','!=','code')],'required':[('type','=','code')]}"/>
<field name="python_compute_inv" attrs="{'invisible':[('type','!=','code')],'required':[('type','=','code')]}"/>

View File

@ -548,6 +548,7 @@ class stock_picking(osv.osv):
_name = "stock.picking"
_inherit = ['mail.thread']
_description = "Picking List"
_order = "id desc"
def _set_maximum_date(self, cr, uid, ids, name, value, arg, context=None):
""" Calculates planned date if it is greater than 'value'.