[FIX] l10n_fr: buildbot fixes for yaml

bzr revid: mra@mra-laptop-20110103103506-s1uude440q9d3cil
This commit is contained in:
MTR(OpenERP) 2011-01-03 16:05:06 +05:30 committed by Mustufa Rangwala
parent b7d5d7c008
commit 501673e54f
1 changed files with 1 additions and 15 deletions

View File

@ -1,23 +1,9 @@
-
In order to test Generate Fiscalyear Opening Entries wizard of OpenERP I first create a fiscalyear "Fiscal Year 2011" to which the entries will move
-
!record {model: account.fiscalyear, id: account_fiscalyear_01}:
code: FY2011
company_id: base.main_company
date_start: '2012-01-01'
date_stop: '2012-12-31'
name: Fiscal Year 2012
-
I create the fiscal periods
-
!python {model: account.fiscalyear}:
self.create_period(cr, uid, [ref('account_fiscalyear_01'),])
-
In order to test the PDF reports defined on a l10n_fr, we will print an Account Move Line Report for l10n_fr
-
!python {model: account.move.line}: |
import netsvc, tools, os, time
(data, format) = netsvc.LocalService('report.l10n.fr.bilan').create(cr, uid, [], {'model':'account.move.line', 'form':{'fiscalyear_id': ref('account_fiscalyear_01')}}, {})
(data, format) = netsvc.LocalService('report.l10n.fr.bilan').create(cr, uid, [], {'model':'account.move.line', 'form':{'fiscalyear_id': ref('account.data_fiscalyear')}}, {})
if tools.config['test_report_directory']:
file(os.path.join(tools.config['test_report_directory'], 'l10n_fr-bilan_report.'+format), 'wb+').write(data)