summaryrefslogtreecommitdiff
path: root/addons/website_google_map/static/src
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2016-07-26 18:12:14 +0200
committerNicolas Martinelli <nim@odoo.com>2016-07-26 18:12:14 +0200
commit6742d1fafe3ced17435c377037035d7b14162ff1 (patch)
tree05d5e0cd9b251709629af10fc71131ae605703a4 /addons/website_google_map/static/src
parentdbf44a968016c5cd9836686e75224c805f9d104f (diff)
[FIX] account: wrong initial balance in GL
When the General Ledger is printed, the initial balance is zero if the filtering is done by period. It appears that in this case, the method `_query_get` selects all the periods before the selected period range thanks to: `build_ctx_periods(cr, uid, first_period, context['period_from'])` On the other hand, `_query_get` builds the query as: `date_start <= %(date_start)s AND id NOT IN %(period_ids)s` That doesn't make sense since we first choose the periods before the selected period range, then we exclude them. What the method `_query_get` is doing seems wrong, but since this method is used in many reports, it is safer to only fix the GL report directly. Another solution could be https://gist.github.com/nim-odoo/453176d9ae820615e69f9a809a3780cc opw-681601
Diffstat (limited to 'addons/website_google_map/static/src')
0 files changed, 0 insertions, 0 deletions