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.

51 lines
3.1 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_to': ref('account.period_12')}
  10. from openerp.tools import test_reports
  11. 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')
  12. -
  13. In order to test the PDF Aged Partner Balance Report webkit wizard I will print report with filters and currency
  14. -
  15. !python {model: account.account}: |
  16. from datetime import datetime
  17. ctx={}
  18. data_dict = {'chart_account_id':ref('account.chart0'), 'fiscalyear_id': ref('account.data_fiscalyear'),
  19. 'until_date': '%s-12-31' %(datetime.now().year), 'target_move': 'posted',
  20. 'amount_currency': True, 'result_selection': 'customer_supplier',
  21. 'period_to': ref('account.period_12')}
  22. from openerp.tools import test_reports
  23. 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')
  24. -
  25. In order to test the PDF Aged Partner Balance Report webkit wizard I will print report with filters on partners
  26. -
  27. !python {model: account.account}: |
  28. from datetime import datetime
  29. ctx={}
  30. data_dict = {'chart_account_id':ref('account.chart0'), 'fiscalyear_id': ref('account.data_fiscalyear'),
  31. 'until_date': '%s-12-31' %(datetime.now().year), 'target_move': 'posted',
  32. 'amount_currency': True, 'result_selection': 'customer_supplier',
  33. 'partner_ids': [ref('base.res_partner_2'), ref('base.res_partner_1')],
  34. 'period_to': ref('account.period_12')}
  35. from openerp.tools import test_reports
  36. 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')
  37. -
  38. In order to test the PDF Aged Partner Balance Report webkit wizard I will print report with filters on periods
  39. -
  40. !python {model: account.account}: |
  41. from datetime import datetime
  42. ctx={}
  43. data_dict = {'chart_account_id':ref('account.chart0'), 'fiscalyear_id': ref('account.data_fiscalyear'),
  44. 'until_date': '%s-12-31' %(datetime.now().year), 'target_move': 'posted',
  45. 'amount_currency': True, 'result_selection': 'customer_supplier',
  46. 'filter': 'filter_period', 'period_to': ref('account.period_12')}
  47. from openerp.tools import test_reports
  48. 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')