Browse Source

Merge pull request #303 from hbrunn/8.0-account_financial_report_webkit-compute_parent_store

[ADD] compute parent_store before running tests
pull/320/head
Adrien Peiffer (ACSONE) 8 years ago
committed by GitHub
parent
commit
4ba35cc4c0
  1. 7
      account_financial_report_webkit/report/common_balance_reports.py

7
account_financial_report_webkit/report/common_balance_reports.py

@ -23,6 +23,7 @@
from operator import add
from .common_reports import CommonReportHeaderWebkit
from openerp import tools
class CommonBalanceReportHeaderWebkit(CommonReportHeaderWebkit):
@ -88,6 +89,12 @@ class CommonBalanceReportHeaderWebkit(CommonReportHeaderWebkit):
ctx.update({'date_from': start,
'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(
self.cursor,
self.uid,

Loading…
Cancel
Save