[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user