[IMP] Account: Improve generaticing entries for clossing fiscal year => Also unlink moves

bzr revid: mra@mra-laptop-20100907043949-0lx5h72m41vfc1o5
This commit is contained in:
Mustufa Rangwala
2010-09-07 10:09:49 +05:30
parent ee7772b9e9
commit ec4865d167
@@ -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()