[FIX]Wrong class name give in super call

bzr revid: vme@tinyerp.com-20130405055147-18jnqoyq9ja6n24j
This commit is contained in:
Vidhin Mehta 2013-04-05 11:21:47 +05:30
parent e483833793
commit 8ddd4f04b6
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ class account_asset_asset(osv.osv):
for asset in self.browse(cr, uid, ids, context=context):
if asset.account_move_line_ids:
raise osv.except_osv(_('Error!'), _('You cannot delete an asset that contains posted depreciation lines.'))
return super(account_account, self).unlink(cr, uid, ids, context=context)
return super(account_asset_asset, self).unlink(cr, uid, ids, context=context)
def _get_period(self, cr, uid, context=None):
periods = self.pool.get('account.period').find(cr, uid)