[REF]
bzr revid: mra@mra-laptop-20101228105555-0yq28foc2dxfum9l
This commit is contained in:
parent
1587a690ee
commit
bfd34971d0
|
@ -309,7 +309,7 @@ class account_move_line(osv.osv):
|
||||||
context = {}
|
context = {}
|
||||||
c = context.copy()
|
c = context.copy()
|
||||||
c['initital_bal'] = True
|
c['initital_bal'] = True
|
||||||
sql = """SELECT l2.id, SUM(l1.debit-l1.credit)
|
sql = """SELECT l2.id, SUM(l1.debit-l1.credit)
|
||||||
FROM account_move_line l1, account_move_line l2
|
FROM account_move_line l1, account_move_line l2
|
||||||
WHERE l2.account_id = l1.account_id
|
WHERE l2.account_id = l1.account_id
|
||||||
AND l1.id <= l2.id
|
AND l1.id <= l2.id
|
||||||
|
@ -318,8 +318,7 @@ class account_move_line(osv.osv):
|
||||||
" GROUP BY l2.id"
|
" GROUP BY l2.id"
|
||||||
|
|
||||||
cr.execute(sql, [tuple(ids)])
|
cr.execute(sql, [tuple(ids)])
|
||||||
res = dict(cr.fetchall())
|
return dict(cr.fetchall())
|
||||||
return res
|
|
||||||
|
|
||||||
def _invoice(self, cursor, user, ids, name, arg, context=None):
|
def _invoice(self, cursor, user, ids, name, arg, context=None):
|
||||||
invoice_obj = self.pool.get('account.invoice')
|
invoice_obj = self.pool.get('account.invoice')
|
||||||
|
@ -1284,4 +1283,4 @@ class account_move_line(osv.osv):
|
||||||
|
|
||||||
account_move_line()
|
account_move_line()
|
||||||
|
|
||||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
Loading…
Reference in New Issue