Browse Source
[ADD] compute parent_store before running tests
pull/303/head
Holger Brunn
8 years ago
No known key found for this signature in database
GPG Key ID: 1C9760FECA3AE18
1 changed files with
7 additions and
0 deletions
-
account_financial_report_webkit/report/common_balance_reports.py
|
@ -23,6 +23,7 @@ |
|
|
from operator import add |
|
|
from operator import add |
|
|
|
|
|
|
|
|
from .common_reports import CommonReportHeaderWebkit |
|
|
from .common_reports import CommonReportHeaderWebkit |
|
|
|
|
|
from openerp import tools |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CommonBalanceReportHeaderWebkit(CommonReportHeaderWebkit): |
|
|
class CommonBalanceReportHeaderWebkit(CommonReportHeaderWebkit): |
|
@ -88,6 +89,12 @@ class CommonBalanceReportHeaderWebkit(CommonReportHeaderWebkit): |
|
|
ctx.update({'date_from': start, |
|
|
ctx.update({'date_from': start, |
|
|
'date_to': stop}) |
|
|
'date_to': stop}) |
|
|
|
|
|
|
|
|
|
|
|
# in tests (when installing and testing at the same time), |
|
|
|
|
|
# the read below might fail because it relies on the order |
|
|
|
|
|
# given by parent_store |
|
|
|
|
|
if tools.config['test_enable']: |
|
|
|
|
|
account_obj._parent_store_compute(self.cursor) |
|
|
|
|
|
|
|
|
accounts = account_obj.read( |
|
|
accounts = account_obj.read( |
|
|
self.cursor, |
|
|
self.cursor, |
|
|
self.uid, |
|
|
self.uid, |
|
|