From 9390f8a97f8f416d24d229fb9e9d5a44d07e2d41 Mon Sep 17 00:00:00 2001 From: Leonardo Pistone Date: Fri, 26 Sep 2014 11:43:27 +0200 Subject: [PATCH] Revert "[IMP] account_financial_report_webkit: in test, work around demo periods issue in 7.0" This revert is done intentionally to remove a workaround for 7.0 only, and not have it back in subsequent 7.0 -> 8.0 merges. For details see https://github.com/OCA/account-financial-reporting/pull/5#issuecomment-56939862 This reverts commit b71d8348f2f66fe04b3aa6462ef97a8af2abf43e. Conflicts: .travis.yml --- .../tests/general_ledger.yml | 33 ------------------- 1 file changed, 33 deletions(-) diff --git a/__unported__/account_financial_report_webkit/tests/general_ledger.yml b/__unported__/account_financial_report_webkit/tests/general_ledger.yml index 0e34b1f8..17f733d8 100644 --- a/__unported__/account_financial_report_webkit/tests/general_ledger.yml +++ b/__unported__/account_financial_report_webkit/tests/general_ledger.yml @@ -1,36 +1,3 @@ -- - I first fix the demo periods (7.0 only) - see https://code.launchpad.net/~acsone-openerp/openobject-addons/7.0-bug-1281579-sbi/+merge/207311 - which was merged in 8.0 -- - !python {model: account.period}: | - import time - if not self.search(cr, uid, [('special', '=', False), - ('fiscalyear_id', '=', ref('account.data_fiscalyear')), - ('company_id', '=', ref('base.main_company'))]): - cur_year = time.strftime('%Y') - self.create(cr, uid, { - 'code': '00/' + cur_year, - 'name': 'X 00/' + cur_year, - 'special': True, - 'fiscalyear_id': ref('account.data_fiscalyear'), - 'date_start': cur_year + '-01-01', - 'date_stop': cur_year + '-01-01', - 'company_id': ref('base.main_company'), - }) - self.write(cr, uid, ref('account.period_1'), {'special': False}) - self.write(cr, uid, ref('account.period_2'), {'special': False}) - self.write(cr, uid, ref('account.period_3'), {'special': False}) - self.write(cr, uid, ref('account.period_4'), {'special': False}) - self.write(cr, uid, ref('account.period_5'), {'special': False}) - self.write(cr, uid, ref('account.period_6'), {'special': False}) - self.write(cr, uid, ref('account.period_7'), {'special': False}) - self.write(cr, uid, ref('account.period_8'), {'special': False}) - self.write(cr, uid, ref('account.period_9'), {'special': False}) - self.write(cr, uid, ref('account.period_10'), {'special': False}) - self.write(cr, uid, ref('account.period_11'), {'special': False}) - self.write(cr, uid, ref('account.period_12'), {'special': False}) - - In order to test the PDF General Ledger webkit wizard I will print report with default setting -