[MERGE] merge from trunk addons
[odoo/odoo.git] / addons / l10n_fr / test / l10n_fr_report.yml
1 -
2   In order to test the PDF reports defined on a l10n_fr, we will print an Account Move Line Report for l10n_fr
3 -
4   !python {model: account.move.line}: |
5     import netsvc, tools, os, time
6     (data, format) = netsvc.LocalService('report.l10n.fr.bilan').create(cr, uid, [], {'model':'account.move.line', 'form':{'fiscalyear_id': ref('account.data_fiscalyear')}}, {})
7     if tools.config['test_report_directory']:
8         file(os.path.join(tools.config['test_report_directory'], 'l10n_fr-bilan_report.'+format), 'wb+').write(data)
9
10 -
11   In order to test the PDF reports defined on a l10n_fr, we will print a Compute Resultant Report for l10n_fr
12 -
13   !python {model: account.move.line}: |
14     import netsvc, tools, os,time
15     (data, format) = netsvc.LocalService('report.l10n.fr.compute_resultant').create(cr, uid, [], {'model':'account.move.line', 'form':{'fiscalyear_id': ref('account.data_fiscalyear')}}, {})
16     if tools.config['test_report_directory']:
17         file(os.path.join(tools.config['test_report_directory'], 'l10n_fr-compute_resultant_report.'+format), 'wb+').write(data)