From 4b8f8dff839a3601d1a23e36d4720bdb69c0813d Mon Sep 17 00:00:00 2001 From: "psi (Open ERP)" Date: Mon, 21 Jun 2010 18:49:12 +0530 Subject: [PATCH] [IMP] account_voucher:change in unlink method, account_report:bug fix in report bzr revid: psi@tinyerp.co.in-20100621131912-4zsaq43hl3nl943z --- addons/account_report/report/print_indicator.rml | 2 +- addons/account_voucher/voucher.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/account_report/report/print_indicator.rml b/addons/account_report/report/print_indicator.rml index f7277115529..929024fd54a 100644 --- a/addons/account_report/report/print_indicator.rml +++ b/addons/account_report/report/print_indicator.rml @@ -102,8 +102,8 @@ + [[ repeatIn(lines(data['form']),'o')]]
- [[ repeatIn(lines(data['form']),'o')]] [['.....'*(o['level']) ]][[ o['type']=='view' and setTag('para','para',{'fontName':'Helvetica-Bold','fontSize':'10.5'}) ]]()[[ o['name'] ]] ([[ o['code'] ]]) diff --git a/addons/account_voucher/voucher.py b/addons/account_voucher/voucher.py index 29fba798c55..5d1d1f95553 100644 --- a/addons/account_voucher/voucher.py +++ b/addons/account_voucher/voucher.py @@ -221,7 +221,7 @@ class account_voucher(osv.osv): self.write(cr, uid, ids, {'state':'draft'}) return True - def unlink(self, cr, uid, ids, context={}): + def unlink(self, cr, uid, ids, context=None): vouchers = self.read(cr, uid, ids, ['state']) unlink_ids = [] for t in vouchers: @@ -229,7 +229,7 @@ class account_voucher(osv.osv): unlink_ids.append(t['id']) else: raise osv.except_osv('Invalid action !', 'Cannot delete Voucher(s) which are already opened or paid !') - return super(account_voucher, self).unlink(self, cr, uid, unlink_ids) + return super(account_voucher, self).unlink(cr, uid, unlink_ids, context=context) def _get_analytic_lines(self, cr, uid, id): inv = self.browse(cr, uid, [id])[0]