Browse Source

[ADD] compute parent_store before running tests

pull/303/head
Holger Brunn 8 years ago
parent
commit
63b3f324cb
No known key found for this signature in database GPG Key ID: 1C9760FECA3AE18
  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