[IMP] made the code look cleaner and assigned context value to context in set_to_draft method of account_asset/account_asset.py

bzr revid: bde@tinyerp.com-20111216122211-7h4dgt9qf0kb5ema
This commit is contained in:
Bharat (OpenERP)
2011-12-16 17:52:11 +05:30
parent e3066c96da
commit 4e2350bf4c
+1 -3
View File
@@ -185,9 +185,7 @@ class account_asset_asset(osv.osv):
return self.write(cr, uid, ids, {'state': 'close'}, context=context)
def set_to_draft(self, cr, uid, ids, context=None):
return self.write(cr, uid, ids, {
'state':'draft'
}, context)
return self.write(cr, uid, ids, {'state': 'draft'}, context=context)
def _amount_residual(self, cr, uid, ids, name, args, context=None):
cr.execute("""SELECT