You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
3.3 KiB

  1. -
  2. In order to test the PDF Aged Partner Balance Report webkit wizard I will print report with default setting
  3. -
  4. !python {model: account.account}: |
  5. from datetime import datetime
  6. ctx={}
  7. data_dict = {'chart_account_id':ref('account.chart0'), 'until_date': '%s-12-31' %(datetime.now().year),
  8. 'fiscalyear_id': ref('account.data_fiscalyear'),
  9. 'period_from': ref('account.period_1'),
  10. 'period_to': ref('account.period_12')}
  11. from openerp.tools import test_reports
  12. test_reports.try_report_action(cr, uid, 'action_account_aged_trial_balance_menu_webkit',wiz_data=data_dict, context=ctx, our_module='account_financial_report_webkit')
  13. -
  14. In order to test the PDF Aged Partner Balance Report webkit wizard I will print report with filters and currency
  15. -
  16. !python {model: account.account}: |
  17. from datetime import datetime
  18. ctx={}
  19. data_dict = {'chart_account_id':ref('account.chart0'), 'fiscalyear_id': ref('account.data_fiscalyear'),
  20. 'until_date': '%s-12-31' %(datetime.now().year), 'target_move': 'posted',
  21. 'amount_currency': True, 'result_selection': 'customer_supplier',
  22. 'period_from': ref('account.period_1'),
  23. 'period_to': ref('account.period_12')}
  24. from openerp.tools import test_reports
  25. test_reports.try_report_action(cr, uid, 'action_account_aged_trial_balance_menu_webkit',wiz_data=data_dict, context=ctx, our_module='account_financial_report_webkit')
  26. -
  27. In order to test the PDF Aged Partner Balance Report webkit wizard I will print report with filters on partners
  28. -
  29. !python {model: account.account}: |
  30. from datetime import datetime
  31. ctx={}
  32. data_dict = {'chart_account_id':ref('account.chart0'), 'fiscalyear_id': ref('account.data_fiscalyear'),
  33. 'until_date': '%s-12-31' %(datetime.now().year), 'target_move': 'posted',
  34. 'amount_currency': True, 'result_selection': 'customer_supplier',
  35. 'partner_ids': [ref('base.res_partner_2'), ref('base.res_partner_1')],
  36. 'period_from': ref('account.period_1'),
  37. 'period_to': ref('account.period_12')}
  38. from openerp.tools import test_reports
  39. test_reports.try_report_action(cr, uid, 'action_account_aged_trial_balance_menu_webkit',wiz_data=data_dict, context=ctx, our_module='account_financial_report_webkit')
  40. -
  41. In order to test the PDF Aged Partner Balance Report webkit wizard I will print report with filters on periods
  42. -
  43. !python {model: account.account}: |
  44. from datetime import datetime
  45. ctx={}
  46. data_dict = {'chart_account_id':ref('account.chart0'), 'fiscalyear_id': ref('account.data_fiscalyear'),
  47. 'until_date': '%s-12-31' %(datetime.now().year), 'target_move': 'posted',
  48. 'amount_currency': True, 'result_selection': 'customer_supplier',
  49. 'filter': 'filter_period',
  50. 'period_from': ref('account.period_1'),
  51. 'period_to': ref('account.period_12')}
  52. from openerp.tools import test_reports
  53. test_reports.try_report_action(cr, uid, 'action_account_aged_trial_balance_menu_webkit',wiz_data=data_dict, context=ctx, our_module='account_financial_report_webkit')