bzr revid: rde-cafbfaa14b781dcbff0a246ac42aff240af447c6

This commit is contained in:
rde 2007-01-11 09:01:19 +00:00
parent c6758b2b2f
commit dc752715d9
1 changed files with 2 additions and 2 deletions

View File

@ -66,8 +66,8 @@ class account_analytic_budget_report(report_sxw.rml_parse):
self.cr.execute("SELECT COALESCE(SUM(debit-credit), 0) FROM account_move_line WHERE account_id=%d AND date>=%s AND date<=%s and state<>'draft'", (a.id, date1, date2))
achievements = float(self.cr.fetchone()[0]) * (post_obj.sens=='produit' and -1 or 1)
res.append({'name': a.name, 'code': a.code, 'achievements': achievements})
for c in a.child_ids: # FIXME : JUST AN IDEA doesn't work
res.extend(lines_rec(post_obj, date1, date2))
#for c in a.child_ids: # FIXME : JUST AN IDEA doesn't work
#res.extend(lines_rec(post_obj, date1, date2))
def lines(self, post_obj, date1, date2):
res = []