From ec4865d16701c067bfa57a725ee84eccaf245830 Mon Sep 17 00:00:00 2001 From: Mustufa Rangwala Date: Tue, 7 Sep 2010 10:09:49 +0530 Subject: [PATCH] [IMP] Account: Improve generaticing entries for clossing fiscal year => Also unlink moves bzr revid: mra@mra-laptop-20100907043949-0lx5h72m41vfc1o5 --- addons/account/wizard/account_fiscalyear_close.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/account/wizard/account_fiscalyear_close.py b/addons/account/wizard/account_fiscalyear_close.py index c0d0a3cab18..76e7eaad974 100644 --- a/addons/account/wizard/account_fiscalyear_close.py +++ b/addons/account/wizard/account_fiscalyear_close.py @@ -97,6 +97,7 @@ class account_fiscalyear_close(osv.osv_memory): unlink_ids += part_rec_ids if len(unlink_ids): obj_rec.unlink(cr, uid, unlink_ids) + obj_acc_move_line.unlink(cr, uid, move_ids, context=context) cr.execute("SELECT id FROM account_fiscalyear WHERE date_stop < %s", (str(new_fyear.date_start),)) result = cr.dictfetchall()